Skip to content

Commit 33e009d

Browse files
committed
feat: allow pip install roundup[jinja2,extras,test,charting]
Add some optional dependencies to setup.py for roundup. I am using them for testing and they may be generally useful. For right not I am not documenting them. They are for internal use. Also fix formatting of a kwarg.
1 parent 14b20f8 commit 33e009d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def main():
212212
license="OSI Approved: MIT License, Zope Public License, Python Software Foundation License",
213213
long_description=long_description,
214214
long_description_content_type='text/x-rst',
215+
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
215216
url='https://www.roundup-tracker.org',
216217
download_url='https://pypi.org/project/roundup',
217218
classifiers=['Development Status :: 5 - Production/Stable',
@@ -242,14 +243,20 @@ def main():
242243
'Programming Language :: Python :: 3.10',
243244
'Programming Language :: Python :: 3.11',
244245
'Programming Language :: Python :: 3.12',
246+
'Programming Language :: Python :: Implementation :: CPython',
245247
'Topic :: Communications :: Email',
246248
'Topic :: Office/Business',
247249
'Topic :: Software Development :: Bug Tracking',
248250
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
249251
],
250-
252+
extras_require={
253+
"charting": ['pygal'],
254+
"jinja2": ['jinja2'],
255+
"extras": [ 'brotli', 'pytz'],
256+
"test": ['pytest > 7.0.0'],
257+
},
251258
# Override certain command classes with our own ones
252-
cmdclass= {'build_doc': build_doc,
259+
cmdclass={'build_doc': build_doc,
253260
'build': build,
254261
'bdist_rpm': bdist_rpm,
255262
'install_lib': install_lib,

0 commit comments

Comments
 (0)