Skip to content

Commit f4ce2aa

Browse files
committed
Use setuptools-scm for versioning
1 parent 179c59a commit f4ce2aa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ['setuptools ~= 41.0.1']
2+
requires = ['setuptools ~= 43.0.0', 'setuptools-scm ~= 3.5.0', 'wheel ~= 0.33.6']
33
build-backend = 'setuptools.build_meta'

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def read(fname):
1414

1515
setup(
1616
name='pytest-mypy',
17-
version='0.4.2',
17+
use_scm_version=True,
1818
author='Daniel Bader',
1919
author_email='[email protected]',
2020
maintainer='David Tucker',
@@ -30,6 +30,9 @@ def read(fname):
3030
for path in glob.glob('src/*.py')
3131
],
3232
python_requires='~=3.4',
33+
setup_requires=[
34+
'setuptools-scm>=3.5',
35+
],
3336
install_requires=[
3437
'filelock>=3.0',
3538
'pytest>=3.5,<4.7; python_version<"3.5"',

0 commit comments

Comments
 (0)