Skip to content

Commit 9ed2448

Browse files
committed
Use setuptools_scm and add extras
1 parent dc98fae commit 9ed2448

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

setup.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
1111
long_description = f.read()
1212

13-
VERSION='0.1.0'
14-
1513
setuptools.setup(
1614
name='cmd2-myplugin',
17-
version=VERSION,
15+
use_scm_version=True,
16+
1817
description='A template used to build plugins for cmd2',
1918
long_description=long_description,
19+
long_description_content_type='text/markdown',
2020
keywords='cmd2 plugin',
2121

2222
author='Kotfu',
@@ -27,7 +27,8 @@
2727
packages=['cmd2_myplugin'],
2828

2929
python_requires='>=3.4',
30-
install_requires=['cmd2 >= 0.9.3, <=2'],
30+
install_requires=['cmd2 >= 0.9.4, <=2'],
31+
setup_requires=['setuptools_scm']
3132

3233
classifiers=[
3334
'Development Status :: 4 - Beta',
@@ -45,6 +46,7 @@
4546
# dependencies for development and testing
4647
# $ pip install -e .[dev]
4748
extras_require={
48-
'dev': ['pytest']
49+
'dev': ['setuptools_scm', 'pytest', 'codecov', 'pytest-cov',
50+
'pylint', 'invoke', 'wheel', 'twine']
4951
},
5052
)

0 commit comments

Comments
 (0)