Skip to content

Commit 93451f1

Browse files
committed
Use setuptools_scm to determine package version
1 parent 0cf0d8d commit 93451f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytest_django/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
__version__ = '2.8.0'

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def read(fname):
1818

1919
setup(
2020
name='pytest-django',
21-
version=__import__('pytest_django').__version__,
21+
use_scm_version=True,
2222
description='A Django plugin for py.test.',
2323
author='Andreas Pelme',
2424
author_email='[email protected]',
@@ -28,6 +28,7 @@ def read(fname):
2828
license='BSD-3-Clause',
2929
packages=['pytest_django'],
3030
long_description=read('README.rst'),
31+
setup_requires=['setuptools_scm==1.8.0'],
3132
install_requires=['pytest>=2.5'],
3233
classifiers=['Development Status :: 5 - Production/Stable',
3334
'Framework :: Django',

0 commit comments

Comments
 (0)