Skip to content

Commit

Permalink
issue #108
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtepkeev committed Oct 18, 2015
1 parent 995dbcc commit a807d1f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
---------

1.3.0 (2015-10-18)
++++++++++++++++++

- Added: `Issue #108 <https://github.com/maxtepkeev/python-redmine/issues/108>`__ (Tests are now
built-in into package distributed via PyPI)

1.2.0 (2015-07-09)
++++++++++++++++++

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
recursive-include tests *.py
include README.rst CHANGELOG.rst LICENSE
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[nosetests]
with-coverage=1
cover-erase=1
cover-package=redmine

[bdist_wheel]
universal=1
26 changes: 26 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from setuptools import setup
from setuptools.command.test import test
from pkg_resources import get_distribution, DistributionNotFound

try:
Expand All @@ -23,6 +24,29 @@
except DistributionNotFound:
pass

try:
import multiprocessing # https://bugs.python.org/issue15881
except ImportError:
pass


class NoseTests(test):
def finalize_options(self):
test.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
import nose
nose.run_exit(argv=['nosetests'])

tests_require = ['nose', 'coverage']

if sys.version_info[:2] < (3, 3):
tests_require.append('mock')
if sys.version_info[:2] == (2, 6):
tests_require.append('unittest2')

exec(open('redmine/version.py').read())

setup(
Expand All @@ -37,6 +61,8 @@
long_description=open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read(),
keywords='redmine',
install_requires=['requests >= 0.12.1'],
tests_require=tests_require,
cmdclass={'test': NoseTests},
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit a807d1f

Please sign in to comment.