From eba5319fdb65ae8dd95b6b50430ab52fb2787e3f Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 18 Aug 2015 08:29:23 +0200 Subject: [PATCH] clean up setup.py and use setuptools_scm --- setup.py | 27 ++++++++++++++------------- xdist/__init__.py | 3 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/setup.py b/setup.py index f08d288..a5cd0fd 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="pytest-xdist", - version='1.13.dev1', + use_scm_version={'write_to': 'xdist/_version.py'}, description='py.test xdist plugin for distributed testing and loop-on-failing modes', long_description=open('README.txt').read(), license='MIT', @@ -19,18 +19,19 @@ setup( ], }, zip_safe=False, - install_requires = ['execnet>=1.1', 'pytest>=2.4.2', 'py>=1.4.22'], + install_requires=['execnet>=1.1', 'pytest>=2.4.2', 'py>=1.4.22'], + setup_requires=['setuptools_scm'], classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX', - 'Operating System :: Microsoft :: Windows', - 'Operating System :: MacOS :: MacOS X', - 'Topic :: Software Development :: Testing', - 'Topic :: Software Development :: Quality Assurance', - 'Topic :: Utilities', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Operating System :: POSIX', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: MacOS :: MacOS X', + 'Topic :: Software Development :: Testing', + 'Topic :: Software Development :: Quality Assurance', + 'Topic :: Utilities', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', ], ) diff --git a/xdist/__init__.py b/xdist/__init__.py index c3d999b..2df2481 100644 --- a/xdist/__init__.py +++ b/xdist/__init__.py @@ -1,2 +1 @@ -# -__version__ = '1.13.dev1' +from xdist._version import version as __version__