Skip to content

Commit

Permalink
Merge pull request #284 from django-nose/rel_1_4_5
Browse files Browse the repository at this point in the history
Release 1.4.5
  • Loading branch information
jwhitlock authored Aug 22, 2017
2 parents 14ffb02 + f746e5d commit 308237e
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 47 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ testapp.sqlite3

# Sphinx documentation build
docs/_build/*

# pyenv
.python-version
22 changes: 10 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -50,7 +48,7 @@ test:
./manage.py test

test-all:
tox --skip-missing-interpreters
COVERAGE=1 tox --skip-missing-interpreters

coverage-console:
coverage erase
Expand All @@ -62,17 +60,17 @@ coverage: coverage-console
coverage html
open htmlcov/index.html

release: clean
python setup.py sdist bdist_wheel upload
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`
5 changes: 1 addition & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---------

1.4.5 (2017-08-22)
~~~~~~~~~~~~~~~~~~
* Add Django 1.11 support

1.4.4 (2016-06-27)
~~~~~~~~~~~~~~~~~~
* Add Django 1.10 support
Expand Down
2 changes: 1 addition & 1 deletion django_nose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
assert NoseTestSuiteRunner
assert FastFixtureTestCase

VERSION = (1, 4, 4)
VERSION = (1, 4, 5)
__version__ = '.'.join(map(str, VERSION))
7 changes: 4 additions & 3 deletions django_nose/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def run_suite(self, nose_argv):
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
Expand All @@ -259,7 +260,6 @@ def run_tests(self, test_labels, extra_tests=None):
not the whole string.
Examples:
runner.run_tests( ('test.module',) )
runner.run_tests(['another.test:TestCase.test_method'])
runner.run_tests(['a.test:TestCase'])
Expand All @@ -271,6 +271,7 @@ def run_tests(self, test_labels, extra_tests=None):
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'):
Expand Down Expand Up @@ -435,7 +436,7 @@ def _get_models_for_connection(self, connection):
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
Expand Down
7 changes: 4 additions & 3 deletions django_nose/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -40,7 +41,7 @@ class Dummy(TransactionTestCase):
"""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')

Expand Down Expand Up @@ -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
35 changes: 14 additions & 21 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,37 @@
#

# Latest Django
Django==1.11
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
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def get_long_description(title):
""" % 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',
Expand Down
1 change: 1 addition & 0 deletions testapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
py{27,34,35}-django-{18,19,110}{,-postgres,-mysql}
py{27,34,35,36}-django-111{,-postgres,-mysql}
py{25,26}-django-master{,-postgres,-mysql}
py{35,36}-django-master{,-postgres,-mysql}
flake8
docs
skip_missing_interpreters = True
Expand All @@ -11,7 +11,7 @@ skip_missing_interpreters = True
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH COVERAGE RUNTEST_ARGS DATABASE_URL
commands =
./runtests.sh {env:RUNTEST_ARGS:}
coverage combine
- coverage combine
deps =
coveralls
dj-database-url
Expand Down

0 comments on commit 308237e

Please sign in to comment.