[Python-modules-commits] [django-nose] 01/01: New upstream version 1.4.5

Michael Fladischer fladi at moszumanska.debian.org
Tue Oct 17 18:09:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch upstream
in repository django-nose.

commit dd1b3a191944466355a542587df30358b6e34131
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Tue Oct 17 18:11:59 2017 +0200

    New upstream version 1.4.5
---
 .gitignore                                |  28 ++++++
 .travis.yml                               |  83 ++++++++++++++++
 Makefile                                  |  24 +++--
 PKG-INFO                                  | 155 ------------------------------
 README.rst                                |   9 +-
 changelog.rst                             |   6 +-
 django_nose.egg-info/PKG-INFO             | 155 ------------------------------
 django_nose.egg-info/SOURCES.txt          |  55 -----------
 django_nose.egg-info/dependency_links.txt |   1 -
 django_nose.egg-info/not-zip-safe         |   1 -
 django_nose.egg-info/requires.txt         |   1 -
 django_nose.egg-info/top_level.txt        |   2 -
 django_nose/__init__.py                   |   2 +-
 django_nose/runner.py                     |  11 ++-
 django_nose/tools.py                      |   7 +-
 docs/usage.rst                            |   6 +-
 requirements-rtd.txt                      |   3 +-
 requirements.txt                          |  35 +++----
 setup.cfg                                 |  16 +--
 setup.py                                  |   3 +-
 testapp/migrations/0001_initial.py        |   2 +-
 testapp/models.py                         |   2 +-
 testapp/settings.py                       |   1 +
 tox.ini                                   |  41 ++++++++
 24 files changed, 213 insertions(+), 436 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7cb0d5a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,28 @@
+# Python binaries
+*.py[cod]
+
+# Editor backups, OS files
+*.swp
+*~
+.DS_Store
+
+# Distutils cruft
+*.egg-info
+South-*.egg/
+build/
+dist/
+
+# Unit test / coverage reports
+.tox/
+.coverage
+.coverage.*
+.noseids
+nosetests.xml
+htmlcov/
+testapp.sqlite3
+
+# Sphinx documentation build
+docs/_build/*
+
+# pyenv
+.python-version
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..a2b75af
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,83 @@
+sudo: false
+language: python
+env:
+    global:
+        - COVERAGE=1 RUNTEST_ARGS="-v --noinput"
+matrix:
+    include:
+        # Quality checks
+        - env: TOXENV=flake8
+          python: "2.7"
+        - env: TOXENV=docs
+          python: "2.7"
+        # Supported Python / Django versions w/ SQLite
+        - env: TOXENV=py27-django-111
+          python: "2.7"
+        - env: TOXENV=py36-django-111
+          python: "3.6"
+        - env: TOXENV=py27-django-110
+          python: "2.7"
+        - env: TOXENV=py35-django-110
+          python: "3.5"
+        - env: TOXENV=py27-django-19
+          python: "2.7"
+        - env: TOXENV=py35-django-19
+          python: "3.5"
+        - env: TOXENV=py27-django-18
+          python: "2.7"
+        - env: TOXENV=py34-django-18
+          python: "3.4"
+        # Test with PostgreSQL
+        - env: TOXENV=py27-django-111-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-111-postgres"
+          python: "2.7"
+        - env: TOXENV=py36-django-111-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-111-postgres"
+          python: "3.6"
+        - env: TOXENV=py27-django-110-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-110-postgres"
+          python: "2.7"
+        - env: TOXENV=py35-django-110-postgres DATABASE_URL="postgres://postgres@localhost:5432/py35-django-110-postgres"
+          python: "3.5"
+        - env: TOXENV=py27-django-19-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-19-postgres"
+          python: "2.7"
+        - env: TOXENV=py35-django-19-postgres DATABASE_URL="postgres://postgres@localhost:5432/py35-django-19-postgres"
+          python: "3.5"
+        - env: TOXENV=py27-django-18-postgres DATABASE_URL="postgres://postgres@localhost:5432/py27-django-18-postgres"
+          python: "2.7"
+        # Test with MySQL
+        - env: TOXENV=py27-django-111-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-111-mysql"
+          python: "2.7"
+        - env: TOXENV=py36-django-111-mysql DATABASE_URL="mysql://travis@localhost:3306/py36-django-111-mysql"
+          python: "3.6"
+        - env: TOXENV=py27-django-110-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-110-mysql"
+          python: "2.7"
+        - env: TOXENV=py35-django-110-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-110-mysql"
+          python: "3.5"
+        - env: TOXENV=py27-django-19-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-19-mysql"
+          python: "2.7"
+        - env: TOXENV=py35-django-19-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-19-mysql"
+          python: "3.5"
+        - env: TOXENV=py27-django-18-mysql DATABASE_URL="mysql://travis@localhost:3306/py27-django-18-mysql"
+          python: "2.7"
+        # Django master is allowed to fail
+        - env: TOXENV=py35-django-master
+          python: "3.5"
+        - env: TOXENV=py36-django-master
+          python: "3.6"
+        - env: TOXENV=py35-django-master-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-master-mysql"
+          python: "3.5"
+        - env: TOXENV=py36-django-master-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-master-postgres"
+          python: "3.6"
+    allow_failures:
+        # Master is allowed to fail
+        - env: TOXENV=py35-django-master
+        - env: TOXENV=py36-django-master
+        - env: TOXENV=py35-django-master-mysql DATABASE_URL="mysql://travis@localhost:3306/py35-django-master-mysql"
+        - env: TOXENV=py36-django-master-postgres DATABASE_URL="postgres://postgres@localhost:5432/py36-django-master-postgres"
+
+install:
+    - pip install tox coveralls
+before_script:
+    - coverage erase
+    - bash -c "if [[ \"$DATABASE_URL\" == postgres* ]]; then psql -c 'create database \"$TOXENV\";' -U postgres; fi"
+    - bash -c "if [[ \"$DATABASE_URL\" == mysql* ]]; then mysql -e 'create database IF NOT EXISTS \`$TOXENV\`;'; fi"
+script: tox
+after_success: coveralls
diff --git a/Makefile b/Makefile
index 98e39c5..90b2ad0 100644
--- a/Makefile
+++ b/Makefile
@@ -28,10 +28,8 @@ clean-build:
 	rm -fr *.egg-info
 
 clean-pyc:
-	find . -name '*.pyc' -exec rm -f {} +
-	find . -name '*.pyo' -exec rm -f {} +
-	find . -name '*~' -exec rm -f {} +
-	find . -name '__pycache__' -exec rm -fr {} +
+	find . \( -name \*.pyc -o -name \*.pyo -o -name __pycache__ \) -delete
+	find . -name '*~' -delete
 
 clean-test:
 	rm -fr .tox/
@@ -50,7 +48,7 @@ test:
 	./manage.py test
 
 test-all:
-	tox --skip-missing-interpreters
+	COVERAGE=1 tox --skip-missing-interpreters
 
 coverage-console:
 	coverage erase
@@ -62,17 +60,17 @@ coverage: coverage-console
 	coverage html
 	open htmlcov/index.html
 
-release: clean
-	python setup.py sdist bdist_wheel upload
-	python -m webbrowser -n https://testpypi.python.org/pypi/django-nose
+release: sdist
+	twine upload dist/*
+	python -m webbrowser -n https://pypi.python.org/pypi/django-nose
 
-test-release:
-	python setup.py register -r https://testpypi.python.org/pypi
-	python setup.py sdist bdist_wheel upload -r https://testpypi.python.org/pypi
+# Add [test] section to ~/.pypirc, https://test.pypi.org/legacy/
+test-release: sdist
+	twine upload --repository test dist/*
 	python -m webbrowser -n https://testpypi.python.org/pypi/django-nose
 
 sdist: clean
-	python setup.py sdist
+	python setup.py sdist bdist_wheel
 	ls -l dist
 	check-manifest
-	pyroma dist/`ls -t dist | head -n1`
+	pyroma dist/`ls -t dist | grep tar.gz | head -n1`
diff --git a/PKG-INFO b/PKG-INFO
deleted file mode 100644
index d926585..0000000
--- a/PKG-INFO
+++ /dev/null
@@ -1,155 +0,0 @@
-Metadata-Version: 1.1
-Name: django-nose
-Version: 1.4.4
-Summary: Makes your Django tests simple and snappy
-Home-page: http://github.com/django-nose/django-nose
-Author: Erik Rose
-Author-email: erikrose at grinchcentral.com
-License: BSD
-Description: 
-        ===========
-        django-nose
-        ===========
-        
-        
-        **django-nose** provides all the goodness of `nose`_ in your Django tests, like:
-        
-          * Testing just your apps by default, not all the standard ones that happen to
-            be in ``INSTALLED_APPS``
-          * Running the tests in one or more specific modules (or apps, or classes, or
-            folders, or just running a specific test)
-          * Obviating the need to import all your tests into ``tests/__init__.py``.
-            This not only saves busy-work but also eliminates the possibility of
-            accidentally shadowing test classes.
-          * Taking advantage of all the useful `nose plugins`_
-        
-        .. _nose: https://nose.readthedocs.org/en/latest/
-        .. _nose plugins: http://nose-plugins.jottit.com/
-        
-        It also provides:
-        
-          * Fixture bundling, an optional feature which speeds up your fixture-based
-            tests by a factor of 4
-          * Reuse of previously created test DBs, cutting 10 seconds off startup time
-          * Hygienic TransactionTestCases, which can save you a DB flush per test
-          * Support for various databases. Tested with MySQL, PostgreSQL, and SQLite.
-            Others should work as well.
-        
-        django-nose requires nose 1.2.1 or later, and the `latest release`_ is
-        recommended.  It follows the `Django's support policy`_, supporting:
-        
-          * Django 1.8 (LTS) with Python 2.7, 3.4, or 3.5
-          * Django 1.9 with Python 2.7, 3.4, or 3.5
-          * Django 1.10 with Python 2.7, 3.4, or 3.5
-        
-        .. _latest release: https://pypi.python.org/pypi/nose
-        .. _Django's support policy: https://docs.djangoproject.com/en/1.8/internals/release-process/#supported-versions
-        
-        Development
-        -----------
-        :Code:   https://github.com/django-nose/django-nose
-        :Issues: https://github.com/django-nose/django-nose/issues?state=open
-        :Docs:   https://django-nose.readthedocs.org
-        
-        
-        Changelog
-        ---------
-        
-        1.4.4 (2016-06-27)
-        ~~~~~~~~~~~~~~~~~~
-        * Add Django 1.10 support
-        * Drop Django 1.4, 1.7, and Python 2.6 support
-        * Drop South support
-        
-        1.4.3 (2015-12-28)
-        ~~~~~~~~~~~~~~~~~~
-        * Add Django 1.9 support
-        * Support long options without equals signs, such as "--attr selected"
-        * Support nose plugins using callback options
-        * Support nose options without default values (jsatt)
-        * Remove Django from install dependencies, to avoid accidental upgrades
-          (jsocol, willkg)
-        * Setting REUSE_DB to an empty value now disables REUSE_DB, instead of
-          enabling it (wdoekes)
-        
-        1.4.2 (2015-10-07)
-        ~~~~~~~~~~~~~~~~~~
-        * Warn against using REUSE_DB=1 and FastFixtureTestCase in docs
-        * REUSE_DB=1 uses new transaction management in Django 1.7, 1.8 (scottsexton)
-        * Try to avoid accidentally using production database with REUSE_DB=1 (alexjg, eroninjapan)
-        * Supported Django versions limited to current supported Django version 1.4,
-          1.7, and 1.8, as well as relevant Python versions.
-        
-        1.4.1 (2015-06-29)
-        ~~~~~~~~~~~~~~~~~~
-        * Fix version number (ezarowny)
-        * Fix choice options, unbreaking nose-cover (aamirtharaj-rpx, jwhitlock)
-        * Support 1.8 app loading system (dgladkov)
-        * Support non-ASCII file names (singingwolfboy)
-        * Better PEP8'd assertion names (roganov)
-        
-        1.4 (2015-04-23)
-        ~~~~~~~~~~~~~~~~
-        * Django 1.8 support (timc3, adepue, jwhitlock)
-        * Support --testrunner option (st4lk)
-        * Fix REUSE_DB second run in py3k (edrmp)
-        
-        1.3 (2014-12-05)
-        ~~~~~~~~~~~~~~~~
-        * Django 1.6 and 1.7 support (conrado, co3k, Nepherhotep, mbertheau)
-        * Python 3.3 and 3.4 testing and support (frewsxcv, jsocol)
-        
-        1.2 (2013-07-23)
-        ~~~~~~~~~~~~~~~~
-        * Python 3 support (melinath and jonashaag)
-        * Django 1.5 compat (fabiosantoscode)
-        
-        1.1 (2012-05-19)
-        ~~~~~~~~~~~~~~~~
-        * Django TransactionTestCases don't clean up after themselves; they leave
-          junk in the DB and clean it up only on ``_pre_setup``. Thus, Django makes
-          sure these tests run last. Now django-nose does, too. This means one fewer
-          source of failures on existing projects. (Erik Rose)
-        * Add support for hygienic TransactionTestCases. (Erik Rose)
-        * Support models that are used only for tests. Just put them in any file
-          imported in the course of loading tests. No more crazy hacks necessary.
-          (Erik Rose)
-        * Make the fixture bundler more conservative, fixing some conceivable
-          situations in which fixtures would not appear as intended if a
-          TransactionTestCase found its way into the middle of a bundle. (Erik Rose)
-        * Fix an error that would surface when using SQLAlchemy with connection
-          pooling. (Roger Hu)
-        * Gracefully ignore the new ``--liveserver`` option introduced in Django 1.4;
-          don't let it through to nose. (Adam DePue)
-        
-        1.0 (2012-03-12)
-        ~~~~~~~~~~~~~~~~
-        * New fixture-bundling plugin for avoiding needless fixture setup (Erik Rose)
-        * Moved FastFixtureTestCase in from test-utils, so now all the
-          fixture-bundling stuff is in one library. (Erik Rose)
-        * Added the REUSE_DB setting for faster startup and shutdown. (Erik Rose)
-        * Fixed a crash when printing options with certain verbosities. (Daniel Abel)
-        * Broke hard dependency on MySQL. Support PostgreSQL. (Roger Hu)
-        * Support SQLite, both memory- and disk-based. (Roger Hu and Erik Rose)
-        * Nail down versions of the package requirements. (Daniel Mizyrycki)
-        
-        
-        
-        _(Older changes can be found in the full documentation)._
-        
-Keywords: d,j,a,n,g,o, ,n,o,s,e, ,d,j,a,n,g,o,-,n,o,s,e
-Platform: UNKNOWN
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: Environment :: Web Environment
-Classifier: Framework :: Django
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.6
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Topic :: Software Development :: Testing
diff --git a/README.rst b/README.rst
index 047ab35..30605fe 100644
--- a/README.rst
+++ b/README.rst
@@ -6,10 +6,6 @@ django-nose
     :alt: The PyPI package
     :target: https://pypi.python.org/pypi/django-nose
 
-.. image:: https://img.shields.io/pypi/dw/django-nose.svg
-    :alt: PyPI download statistics
-    :target: https://pypi.python.org/pypi/django-nose
-
 .. image:: https://img.shields.io/travis/django-nose/django-nose/master.svg
     :alt: TravisCI Build Status
     :target: https://travis-ci.org/django-nose/django-nose
@@ -31,7 +27,7 @@ django-nose
     accidentally shadowing test classes.
   * Taking advantage of all the useful `nose plugins`_
 
-.. _nose: https://nose.readthedocs.org/en/latest/
+.. _nose: https://nose.readthedocs.io/en/latest/
 .. _nose plugins: http://nose-plugins.jottit.com/
 
 It also provides:
@@ -49,6 +45,7 @@ recommended.  It follows the `Django's support policy`_, supporting:
   * Django 1.8 (LTS) with Python 2.7, 3.4, or 3.5
   * Django 1.9 with Python 2.7, 3.4, or 3.5
   * Django 1.10 with Python 2.7, 3.4, or 3.5
+  * Django 1.11 (LTS) with Python 2.7, 3.4, 3.5, or 3.6
 
 .. _latest release: https://pypi.python.org/pypi/nose
 .. _Django's support policy: https://docs.djangoproject.com/en/1.8/internals/release-process/#supported-versions
@@ -57,4 +54,4 @@ Development
 -----------
 :Code:   https://github.com/django-nose/django-nose
 :Issues: https://github.com/django-nose/django-nose/issues?state=open
-:Docs:   https://django-nose.readthedocs.org
+:Docs:   https://django-nose.readthedocs.io
diff --git a/changelog.rst b/changelog.rst
index 1512d4e..8e63182 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -1,10 +1,14 @@
 Changelog
 ---------
 
+1.4.5 (2017-08-22)
+~~~~~~~~~~~~~~~~~~
+* Add Django 1.11 support
+
 1.4.4 (2016-06-27)
 ~~~~~~~~~~~~~~~~~~
 * Add Django 1.10 support
-* Drop Django 1.4, 1.7, and Python 2.6 support
+* Drop Django 1.4 - 1.7, and Python 2.6 support
 * Drop South support
 
 1.4.3 (2015-12-28)
diff --git a/django_nose.egg-info/PKG-INFO b/django_nose.egg-info/PKG-INFO
deleted file mode 100644
index d926585..0000000
--- a/django_nose.egg-info/PKG-INFO
+++ /dev/null
@@ -1,155 +0,0 @@
-Metadata-Version: 1.1
-Name: django-nose
-Version: 1.4.4
-Summary: Makes your Django tests simple and snappy
-Home-page: http://github.com/django-nose/django-nose
-Author: Erik Rose
-Author-email: erikrose at grinchcentral.com
-License: BSD
-Description: 
-        ===========
-        django-nose
-        ===========
-        
-        
-        **django-nose** provides all the goodness of `nose`_ in your Django tests, like:
-        
-          * Testing just your apps by default, not all the standard ones that happen to
-            be in ``INSTALLED_APPS``
-          * Running the tests in one or more specific modules (or apps, or classes, or
-            folders, or just running a specific test)
-          * Obviating the need to import all your tests into ``tests/__init__.py``.
-            This not only saves busy-work but also eliminates the possibility of
-            accidentally shadowing test classes.
-          * Taking advantage of all the useful `nose plugins`_
-        
-        .. _nose: https://nose.readthedocs.org/en/latest/
-        .. _nose plugins: http://nose-plugins.jottit.com/
-        
-        It also provides:
-        
-          * Fixture bundling, an optional feature which speeds up your fixture-based
-            tests by a factor of 4
-          * Reuse of previously created test DBs, cutting 10 seconds off startup time
-          * Hygienic TransactionTestCases, which can save you a DB flush per test
-          * Support for various databases. Tested with MySQL, PostgreSQL, and SQLite.
-            Others should work as well.
-        
-        django-nose requires nose 1.2.1 or later, and the `latest release`_ is
-        recommended.  It follows the `Django's support policy`_, supporting:
-        
-          * Django 1.8 (LTS) with Python 2.7, 3.4, or 3.5
-          * Django 1.9 with Python 2.7, 3.4, or 3.5
-          * Django 1.10 with Python 2.7, 3.4, or 3.5
-        
-        .. _latest release: https://pypi.python.org/pypi/nose
-        .. _Django's support policy: https://docs.djangoproject.com/en/1.8/internals/release-process/#supported-versions
-        
-        Development
-        -----------
-        :Code:   https://github.com/django-nose/django-nose
-        :Issues: https://github.com/django-nose/django-nose/issues?state=open
-        :Docs:   https://django-nose.readthedocs.org
-        
-        
-        Changelog
-        ---------
-        
-        1.4.4 (2016-06-27)
-        ~~~~~~~~~~~~~~~~~~
-        * Add Django 1.10 support
-        * Drop Django 1.4, 1.7, and Python 2.6 support
-        * Drop South support
-        
-        1.4.3 (2015-12-28)
-        ~~~~~~~~~~~~~~~~~~
-        * Add Django 1.9 support
-        * Support long options without equals signs, such as "--attr selected"
-        * Support nose plugins using callback options
-        * Support nose options without default values (jsatt)
-        * Remove Django from install dependencies, to avoid accidental upgrades
-          (jsocol, willkg)
-        * Setting REUSE_DB to an empty value now disables REUSE_DB, instead of
-          enabling it (wdoekes)
-        
-        1.4.2 (2015-10-07)
-        ~~~~~~~~~~~~~~~~~~
-        * Warn against using REUSE_DB=1 and FastFixtureTestCase in docs
-        * REUSE_DB=1 uses new transaction management in Django 1.7, 1.8 (scottsexton)
-        * Try to avoid accidentally using production database with REUSE_DB=1 (alexjg, eroninjapan)
-        * Supported Django versions limited to current supported Django version 1.4,
-          1.7, and 1.8, as well as relevant Python versions.
-        
-        1.4.1 (2015-06-29)
-        ~~~~~~~~~~~~~~~~~~
-        * Fix version number (ezarowny)
-        * Fix choice options, unbreaking nose-cover (aamirtharaj-rpx, jwhitlock)
-        * Support 1.8 app loading system (dgladkov)
-        * Support non-ASCII file names (singingwolfboy)
-        * Better PEP8'd assertion names (roganov)
-        
-        1.4 (2015-04-23)
-        ~~~~~~~~~~~~~~~~
-        * Django 1.8 support (timc3, adepue, jwhitlock)
-        * Support --testrunner option (st4lk)
-        * Fix REUSE_DB second run in py3k (edrmp)
-        
-        1.3 (2014-12-05)
-        ~~~~~~~~~~~~~~~~
-        * Django 1.6 and 1.7 support (conrado, co3k, Nepherhotep, mbertheau)
-        * Python 3.3 and 3.4 testing and support (frewsxcv, jsocol)
-        
-        1.2 (2013-07-23)
-        ~~~~~~~~~~~~~~~~
-        * Python 3 support (melinath and jonashaag)
-        * Django 1.5 compat (fabiosantoscode)
-        
-        1.1 (2012-05-19)
-        ~~~~~~~~~~~~~~~~
-        * Django TransactionTestCases don't clean up after themselves; they leave
-          junk in the DB and clean it up only on ``_pre_setup``. Thus, Django makes
-          sure these tests run last. Now django-nose does, too. This means one fewer
-          source of failures on existing projects. (Erik Rose)
-        * Add support for hygienic TransactionTestCases. (Erik Rose)
-        * Support models that are used only for tests. Just put them in any file
-          imported in the course of loading tests. No more crazy hacks necessary.
-          (Erik Rose)
-        * Make the fixture bundler more conservative, fixing some conceivable
-          situations in which fixtures would not appear as intended if a
-          TransactionTestCase found its way into the middle of a bundle. (Erik Rose)
-        * Fix an error that would surface when using SQLAlchemy with connection
-          pooling. (Roger Hu)
-        * Gracefully ignore the new ``--liveserver`` option introduced in Django 1.4;
-          don't let it through to nose. (Adam DePue)
-        
-        1.0 (2012-03-12)
-        ~~~~~~~~~~~~~~~~
-        * New fixture-bundling plugin for avoiding needless fixture setup (Erik Rose)
-        * Moved FastFixtureTestCase in from test-utils, so now all the
-          fixture-bundling stuff is in one library. (Erik Rose)
-        * Added the REUSE_DB setting for faster startup and shutdown. (Erik Rose)
-        * Fixed a crash when printing options with certain verbosities. (Daniel Abel)
-        * Broke hard dependency on MySQL. Support PostgreSQL. (Roger Hu)
-        * Support SQLite, both memory- and disk-based. (Roger Hu and Erik Rose)
-        * Nail down versions of the package requirements. (Daniel Mizyrycki)
-        
-        
-        
-        _(Older changes can be found in the full documentation)._
-        
-Keywords: d,j,a,n,g,o, ,n,o,s,e, ,d,j,a,n,g,o,-,n,o,s,e
-Platform: UNKNOWN
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: Environment :: Web Environment
-Classifier: Framework :: Django
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.6
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
-Classifier: Programming Language :: Python :: 3.5
-Classifier: Topic :: Software Development :: Testing
diff --git a/django_nose.egg-info/SOURCES.txt b/django_nose.egg-info/SOURCES.txt
deleted file mode 100644
index 836b5ec..0000000
--- a/django_nose.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-AUTHORS.rst
-CONTRIBUTING.rst
-LICENSE
-MANIFEST.in
-Makefile
-README.rst
-changelog.rst
-contribute.json
-manage.py
-requirements-rtd.txt
-requirements.txt
-runtests.sh
-setup.cfg
-setup.py
-django_nose/__init__.py
-django_nose/fixture_tables.py
-django_nose/plugin.py
-django_nose/runner.py
-django_nose/testcases.py
-django_nose/tools.py
-django_nose/utils.py
-django_nose.egg-info/PKG-INFO
-django_nose.egg-info/SOURCES.txt
-django_nose.egg-info/dependency_links.txt
-django_nose.egg-info/not-zip-safe
-django_nose.egg-info/requires.txt
-django_nose.egg-info/top_level.txt
-django_nose/management/__init__.py
-django_nose/management/commands/__init__.py
-django_nose/management/commands/test.py
-docs/Makefile
-docs/authors.rst
-docs/changelog.rst
-docs/conf.py
-docs/contributing.rst
-docs/index.rst
-docs/installation.rst
-docs/make.bat
-docs/upgrading.rst
-docs/usage.rst
-docs/_static/.keep
-testapp/__init__.py
-testapp/custom_runner.py
-testapp/models.py
-testapp/plugins.py
-testapp/runtests.py
-testapp/settings.py
-testapp/test_for_nose.py
-testapp/test_only_this.py
-testapp/tests.py
-testapp/fixtures/testdata.json
-testapp/migrations/0001_initial.py
-testapp/migrations/__init__.py
-testapp/plugin_t/test_with_plugins.py
-unittests/test_databases.py
\ No newline at end of file
diff --git a/django_nose.egg-info/dependency_links.txt b/django_nose.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/django_nose.egg-info/dependency_links.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/django_nose.egg-info/not-zip-safe b/django_nose.egg-info/not-zip-safe
deleted file mode 100644
index 8b13789..0000000
--- a/django_nose.egg-info/not-zip-safe
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/django_nose.egg-info/requires.txt b/django_nose.egg-info/requires.txt
deleted file mode 100644
index 18980ba..0000000
--- a/django_nose.egg-info/requires.txt
+++ /dev/null
@@ -1 +0,0 @@
-nose>=1.2.1
diff --git a/django_nose.egg-info/top_level.txt b/django_nose.egg-info/top_level.txt
deleted file mode 100644
index a9b9ba1..0000000
--- a/django_nose.egg-info/top_level.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-django_nose
-testapp
diff --git a/django_nose/__init__.py b/django_nose/__init__.py
index 07d9bcb..beda667 100644
--- a/django_nose/__init__.py
+++ b/django_nose/__init__.py
@@ -8,5 +8,5 @@ assert BasicNoseRunner
 assert NoseTestSuiteRunner
 assert FastFixtureTestCase
 
-VERSION = (1, 4, 4)
+VERSION = (1, 4, 5)
 __version__ = '.'.join(map(str, VERSION))
diff --git a/django_nose/runner.py b/django_nose/runner.py
index 14a26f4..d37b9dd 100644
--- a/django_nose/runner.py
+++ b/django_nose/runner.py
@@ -89,6 +89,10 @@ class BaseRunner(DiscoverRunner):
         '--keepdb', '--reverse', '--debug-sql',
         # 1.9 arguments
         '--parallel',
+        # 1.10 arguments
+        '--tag', '--exclude-tag',
+        # 1.11 arguments
+        '--debug-mode',
     ]
 
     #
@@ -242,7 +246,8 @@ class BasicNoseRunner(BaseRunner):
         return result_plugin.result
 
     def run_tests(self, test_labels, extra_tests=None):
-        """Run the unit tests for all the test names in the provided list.
+        """
+        Run the unit tests for all the test names in the provided list.
 
         Test names specified may be file or module names, and may optionally
         indicate the test case to run by separating the module or file name
@@ -255,7 +260,6 @@ class BasicNoseRunner(BaseRunner):
         not the whole string.
 
         Examples:
-
         runner.run_tests( ('test.module',) )
         runner.run_tests(['another.test:TestCase.test_method'])
         runner.run_tests(['a.test:TestCase'])
@@ -267,6 +271,7 @@ class BasicNoseRunner(BaseRunner):
         but the extra tests will not be run.  Maybe later.
 
         Returns the number of tests that failed.
+
         """
         nose_argv = (['nosetests'] + list(test_labels))
         if hasattr(settings, 'NOSE_ARGS'):
@@ -431,7 +436,7 @@ class NoseTestSuiteRunner(BasicNoseRunner):
                 m._meta.db_table in tables]
 
     def setup_databases(self):
-        """Setup databases, skipping DB creation if requested and possible."""
+        """Set up databases. Skip DB creation if requested and possible."""
         for alias in connections:
             connection = connections[alias]
             creation = connection.creation
diff --git a/django_nose/tools.py b/django_nose/tools.py
index 4469691..c341a1d 100644
--- a/django_nose/tools.py
+++ b/django_nose/tools.py
@@ -14,6 +14,7 @@ def _get_nose_vars():
             new_names[t] = getattr(tools, t)
     return new_names
 
+
 for _name, _value in _get_nose_vars().items():
     vars()[_name] = _value
 
@@ -40,7 +41,7 @@ def _get_django_vars():
         """A dummy test case for gathering current assertion helpers."""
 
         def nop():
-            """A dummy test to get an initialized test case."""
+            """Do nothing, dummy test to get an initialized test case."""
             pass
     dummy_test = Dummy('nop')
 
@@ -86,5 +87,5 @@ def assert_mail_count(count, msg=None):
     if msg is None:
         msg = ', '.join([e.subject for e in mail.outbox])
         msg = '%d != %d %s' % (len(mail.outbox), count, msg)
-    # assert_equals is dynamicaly added above
-    assert_equals(len(mail.outbox), count, msg)  # nopep8
+    # assert_equals is dynamicaly added above. F821 is undefined name error
+    assert_equals(len(mail.outbox), count, msg)  # noqa: F821
diff --git a/docs/usage.rst b/docs/usage.rst
index 219d190..6e5a95e 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -7,7 +7,7 @@ test`` as usual.
 See ``./manage.py help test`` for all the options nose provides, and look to
 the `nose docs`_ for more help with nose.
 
-.. _nose docs: https://nose.readthedocs.org
+.. _nose docs: https://nose.readthedocs.io/en/latest/
 
 Enabling Database Reuse
 -----------------------
@@ -185,7 +185,7 @@ setup.cfg`_ (as usual) or you can specify them in settings.py like this::
 
     NOSE_ARGS = ['--failed', '--stop']
 
-.. _nose.cfg or setup.cfg: https://nose.readthedocs.org/en/latest/usage.html#configuration
+.. _nose.cfg or setup.cfg: https://nose.readthedocs.io/en/latest/usage.html#configuration
 
 
 Custom Plugins
@@ -203,5 +203,5 @@ Just like middleware or anything else, each string must be a dot-separated,
 importable path to an actual class. Each plugin class will be instantiated and
 added to the Nose test runner.
 
-.. _make custom plugins: https://nose.readthedocs.org/en/latest/plugins.html#writing-plugins
+.. _make custom plugins: https://nose.readthedocs.io/en/latest/plugins.html#writing-plugins
 
diff --git a/requirements-rtd.txt b/requirements-rtd.txt
index bf4f197..f95ea8b 100644
--- a/requirements-rtd.txt
+++ b/requirements-rtd.txt
@@ -1,4 +1,5 @@
 # Requirements for ReadTheDocs
-# None right now, but avoid installing gnureadline, etc.
 # Must be set in the RTD Admin, at:
 # https://readthedocs.org/dashboard/django-nose/advanced/
+Django>=1.10,<1.11
+nose
diff --git a/requirements.txt b/requirements.txt
index fa345d8..16da17d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,44 +3,37 @@
 #
 
 # Latest Django
-Django==1.8.5
+Django>=1.11,<2.0
 
 # This project
 -e .
 
 # Load database config from environment
-dj-database-url==0.3.0
+dj-database-url==0.4.2
 
 # Packaging
-wheel==0.26.0
+wheel==0.29.0
+twine==1.9.1
 
 # PEP8, PEP257, and static analysis
-mccabe==0.3.1
-pep8==1.6.2
-pyflakes==1.0.0
-flake8==2.5.0
-pep257==0.7.0
-flake8-docstrings==0.2.1
+flake8==3.4.1
+flake8-docstrings==1.1.0
 
 # Code coverage
-coverage==4.0
+coverage==4.4.1
 
 # Documentation
-Pygments==2.0.2
-Sphinx==1.3.1
-docutils==0.12
+Sphinx==1.6.3
 
 # Packaging Linters
-check-manifest==0.25
-pyroma==1.8.2
+check-manifest==0.35
+pyroma==2.2
 
 # Multi-env test runner
-virtualenv==13.1.2
-py==1.4.30
-tox==2.1.1
+tox==2.7.0
 
 # Better interactive debugging
 gnureadline==6.3.3
-ipython==4.0.0
-ipdb==0.8.1
-ipdbplugin==1.4.2
+ipython==5.4.1
+ipdb==0.10.3
+ipdbplugin==1.4.5
diff --git a/setup.cfg b/setup.cfg
index bc1ae5c..6fe40b5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,24 +1,18 @@
 [check-manifest]
-ignore = 
-	.travis.yml
-	tox.ini
+ignore =
+    .travis.yml
+    tox.ini
 
 [coverage:run]
 branch = True
 source = django_nose,testapp,unittests
 
 [coverage:report]
-omit = 
-	testapp/migrations/*.py
+omit =
+    testapp/migrations/*.py
 
 [flake8]
 exclude = .tox/*,build/*
 
 [wheel]
 universal = 1
-
-[egg_info]
-tag_build = 
-tag_date = 0
-tag_svn_revision = 0
-
diff --git a/setup.py b/setup.py
index e9ff421..d02e383 100644
--- a/setup.py
+++ b/setup.py
@@ -34,9 +34,10 @@ _(Older changes can be found in the full documentation)._
 """ % locals()
     return long_description
 
+
 setup(
     name='django-nose',
-    version='1.4.4',
+    version='1.4.5',
     description='Makes your Django tests simple and snappy',
     long_description=get_long_description('django-nose'),
     author='Jeff Balogh',
diff --git a/testapp/migrations/0001_initial.py b/testapp/migrations/0001_initial.py
index b1dc553..fafc22f 100644
--- a/testapp/migrations/0001_initial.py
+++ b/testapp/migrations/0001_initial.py
@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
         migrations.AddField(
             model_name='choice',
             name='question',
-            field=models.ForeignKey(to='testapp.Question'),
+            field=models.ForeignKey(to='testapp.Question', on_delete=models.CASCADE),
             preserve_default=True,
         ),
     ]
diff --git a/testapp/models.py b/testapp/models.py
index f4b398e..9f471bf 100644
--- a/testapp/models.py
+++ b/testapp/models.py
@@ -21,7 +21,7 @@ class Question(models.Model):
 class Choice(models.Model):
     """A poll answer."""
 
-    question = models.ForeignKey(Question)
+    question = models.ForeignKey(Question, on_delete=models.CASCADE)
     choice_text = models.CharField(max_length=200)
     votes = models.IntegerField(default=0)
 
diff --git a/testapp/settings.py b/testapp/settings.py
index 51a157f..a803307 100644
--- a/testapp/settings.py
+++ b/testapp/settings.py
@@ -20,6 +20,7 @@ def rel_path(*subpaths):
     """Construct the full path given a relative path."""
     return path.join(BASE_DIR, *subpaths)
 
+
 DATABASES = {
     'default':
         dj_database_url.config(
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..af4df74
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,41 @@
+[tox]
+envlist =
+    py{27,34,35}-django-{18,19,110}{,-postgres,-mysql}
+    py{27,34,35,36}-django-111{,-postgres,-mysql}
+    py{35,36}-django-master{,-postgres,-mysql}
+    flake8
+    docs
+skip_missing_interpreters = True
+
+[testenv]
+passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH COVERAGE RUNTEST_ARGS DATABASE_URL
+commands =
+    ./runtests.sh {env:RUNTEST_ARGS:}
+    - coverage combine
+deps =
+    coveralls
+    dj-database-url
+    django-18: Django>=1.8,<1.9
+    django-19: Django>=1.9,<1.10
+    django-110: Django==1.10,<1.11
+    django-111: Django==1.11,<1.12
+    django-master: https://github.com/django/django/archive/master.tar.gz
+    postgres: psycopg2
+    mysql: mysqlclient
+
+[testenv:flake8]
+deps =
+    Django
+    pep257==0.7.0
+    pep8==1.6.2
+    flake8==2.5.0
+    flake8-docstrings==0.2.1
+commands = flake8
+
+[testenv:docs]
... 6 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-nose.git



More information about the Python-modules-commits mailing list