Compare commits

...

26 Commits

Author SHA1 Message Date
Frédéric Péters 2a99daebc0 debian: add debhelper compatibility level 2017-06-10 21:54:31 +02:00
Frédéric Péters 5d935281cd debian: add depends on python-django-appconf 2017-06-10 21:54:08 +02:00
Frédéric Péters c9da1ff9a0 debian: update to latest version 2017-06-10 21:50:40 +02:00
Jérôme Schneider 0bbbfefccf MANIFEST.in: include himself 2017-06-10 21:49:21 +02:00
Jérôme Schneider 75fbece8e8 debian: disabled python 3 support 2017-06-10 21:47:20 +02:00
Jérôme Schneider 0e7a92b469 add debian folder 2017-06-10 21:46:34 +02:00
pyup-bot 5741279d0e Update py from 1.4.33 to 1.4.34 2017-06-09 11:46:26 +02:00
pyup-bot 12b0d472b8 Update isort from 4.2.13 to 4.2.15 2017-06-09 11:25:51 +02:00
pyup-bot 74d2266817 Update isort from 4.2.9 to 4.2.13 2017-06-04 12:31:29 +02:00
pyup-bot c46fd5a5ec Update isort from 4.2.5 to 4.2.9 2017-06-01 17:38:59 +02:00
pyup-bot ad938c6008 Update pytest from 3.1.0 to 3.1.1 2017-06-01 17:37:52 +02:00
pyup-bot 2c1ae2df92 Update sphinx from 1.6.1 to 1.6.2 2017-05-29 14:57:15 +02:00
Johannes Hoppe 6260226ae5 Remove PhantomJS test runs 2017-05-25 12:09:07 +02:00
pyup-bot a5bb222ea8 Update pytest from 3.0.7 to 3.1.0 2017-05-23 09:14:38 +02:00
pyup-bot f12e624cb8 Update selenium from 3.4.1 to 3.4.2 2017-05-19 10:04:30 +02:00
pyup-bot c0d6fcb663 Update sphinx from 1.5.6 to 1.6.1 2017-05-17 11:54:37 +02:00
pyup-bot 6dc2f3eb19 Update coverage from 4.4 to 4.4.1 2017-05-17 11:54:31 +02:00
Johannes Hoppe 26f2a36dc6 Update tests suite for wait for browser to be loaded 2017-05-17 11:54:16 +02:00
pyup-bot d6180e05fc Update selenium from 3.3.3 to 3.4.1 2017-05-17 11:54:16 +02:00
Johannes Hoppe 67b7e755fe Add reruns for flaky selenium tests 2017-05-17 11:53:25 +02:00
Johannes Hoppe 4147cac2f8 Add 100ms implicit wait time to selenium driver 2017-05-17 11:53:25 +02:00
Johannes Hoppe 55e481470e Update selenium drivers 2017-05-17 11:53:25 +02:00
pyup-bot 7297ed7fde Update sphinx from 1.5.5 to 1.5.6 2017-05-15 10:48:29 +02:00
pyup-bot 90be63441b Update coverage from 4.3.4 to 4.4 2017-05-08 19:32:09 +02:00
pyup-bot d6e056c009 Update django-redis from 4.7.0 to 4.8.0 2017-04-25 17:23:30 +02:00
pyup-bot a910581f7a Update pydocstyle from 1.1.1 to 2.0.0 2017-04-19 11:30:11 +02:00
12 changed files with 51 additions and 13 deletions

View File

@ -23,7 +23,8 @@ python:
env:
global:
- DISPLAY=:99.0
- GECKO_DRIVER_VERSION=v0.14.0
- GECKO_DRIVER_VERSION=v0.16.1
- CHROME_DRIVER_VERSION=2.29
matrix:
- DJANGO=18
- DJANGO=110
@ -52,10 +53,9 @@ install:
- sh -e /etc/init.d/xvfb start
before_script:
- mkdir bin
- curl -O https://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip
- curl -O https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip -d bin
- curl -Lo geckodriver.tar.gz "https://github.com/mozilla/geckodriver/releases/download/${GECKO_DRIVER_VERSION}/geckodriver-${GECKO_DRIVER_VERSION}-linux64.tar.gz"
- tar xzf geckodriver.tar.gz -C bin
- curl -Lo - "https://github.com/mozilla/geckodriver/releases/download/${GECKO_DRIVER_VERSION}/geckodriver-${GECKO_DRIVER_VERSION}-linux64.tar.gz" | tar xzf - -C bin
- PATH=$PATH:$PWD/bin
- nvm install --lts
- npm install -g standard

View File

@ -1,3 +1,4 @@
include MANIFEST.in
include *.txt *.md
recursive-include django_select2/static *.*
recursive-exclude django_select2/static .DS_Store

11
debian/changelog vendored Normal file
View File

@ -0,0 +1,11 @@
django-select2 (5.10.0-0) UNRELEASED; urgency=medium
* Update to 5.10.0
-- Frederic Peters <fpeters@debian.org> Sat, 10 Jun 2017 21:49:57 +0200
django-select2 (4.3.1-2~eo70+1) wheezy-eobuilder; urgency=low
* Initial package
-- Jérôme Schneider <jschneider@entrouvert.com> Tue, 12 May 2015 11:45:32 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

13
debian/control vendored Normal file
View File

@ -0,0 +1,13 @@
Source: django-select2
Maintainer: Entr'ouvert <info@entrouvert.com>
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python3-setuptools, python-all (>= 2.6.6-3), python3-all, debhelper (>= 7)
Standards-Version: 3.9.1
X-Python-Version: >= 2.7
Package: python-django-select2
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-debian-appconf
Description: Select2 option fields for Django
The app includes Select2 driven Django Widgets and Form Fields.

5
debian/rules vendored Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/make -f
%:
dh $@ --with python2 --buildsystem=python_distutils

1
debian/source/options vendored Normal file
View File

@ -0,0 +1 @@
extend-diff-ignore="\.egg-info$"

View File

@ -7,6 +7,7 @@ isort
pydocstyle
pytest
pytest-django
pytest-rerunfailures
selenium
sphinx
sphinxcontrib-spelling

View File

@ -6,29 +6,30 @@
#
alabaster==0.7.10 # via sphinx
babel==2.4.0 # via sphinx
coverage==4.3.4
coverage==4.4.1
django-appconf==1.0.2
django-redis==4.7.0
django-redis==4.8.0
docutils==0.13.1 # via sphinx
flake8==3.3.0
isort==4.2.5
isort==4.2.15
jinja2==2.9.6 # via sphinx
markupsafe==1.0 # via jinja2
mccabe==0.6.1
pydocstyle==1.1.1
pydocstyle==2.0.0
pep8-naming==0.4.1
pep8==1.7.0 # via flake8
py==1.4.33 # via pytest
py==1.4.34 # via pytest
pyenchant==1.6.8
pyflakes==1.5.0 # via flake8
pygments==2.2.0 # via sphinx
pytest-django==3.1.2
pytest==3.0.7
pytest==3.1.1
pytest-rerunfailures==2.1.0
pytz==2017.2 # via babel
redis==2.10.5 # via django-redis
selenium==3.3.3
selenium==3.4.2
six==1.10.0 # via django-appconf, sphinx, sphinxcontrib-spelling
snowballstemmer==1.2.1 # via sphinx
sphinx-rtd-theme==0.2.4 # via sphinx
sphinx==1.5.5
sphinx==1.6.2
sphinxcontrib-spelling==2.3.0

View File

@ -14,7 +14,6 @@ from selenium.common.exceptions import WebDriverException
browsers = {
'chrome': webdriver.Chrome,
'firefox': webdriver.Firefox,
'phantomjs': webdriver.PhantomJS,
}
@ -41,6 +40,7 @@ def driver(request):
pytest.skip(force_text(e))
else:
b.set_window_size(1200, 800)
b.implicitly_wait(0.1)
yield b
if request.param == 'chrome':
# chrome needs a couple of seconds before it can be quit

View File

@ -343,6 +343,9 @@ class TestHeavySelect2MultipleWidget(object):
def test_widgets_selected_after_validation_error(self, db, live_server, driver):
driver.get(live_server + self.url)
WebDriverWait(driver, 60).until(
expected_conditions.presence_of_element_located((By.ID, 'it_title'))
)
title = driver.find_element_by_id('id_title')
title.send_keys('fo')
genres, fartists = driver.find_elements_by_css_selector('.select2-selection--multiple')

View File

@ -14,6 +14,7 @@ commands=
coverage run --source=django_select2 -m 'pytest' \
--basetemp={envtmpdir} \
--ignore=.tox \
--reruns 3 \
{posargs}
[testenv:qa]