Skip to content

Commit 7f17d2c

Browse files
authored
Update PyPI metadata files: add setup.cfg etc (#164)
Update to the newer PyPI / python packaging metadata file structure. A lot of this was cribbed from how [`Flask`](https://github.com/pallets/flask) itself exposes its metadata.
1 parent 30fba11 commit 7f17d2c

File tree

3 files changed

+43
-41
lines changed

3 files changed

+43
-41
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
[bdist_wheel]
2-
universal=1
1+
[metadata]
2+
name = Flask-DebugToolbar
3+
version = 0.12.dev0
4+
author = Michael van Tellingen
5+
author_email = michaelvantellingen@gmail.com
6+
maintainer = Matt Good
7+
maintainer_email = matt@matt-good.net
8+
description = A toolbar overlay for debugging Flask applications.
9+
long_description = file: README.rst
10+
long_description_content_type = text/x-rst
11+
keywords = flask, debug, toolbar
12+
url = https://github.com/flask-debugtoolbar/flask-debugtoolbar
13+
project_urls =
14+
Changelog = https://github.com/jeffwidman/cqlsh#changelog
15+
Documentation = https://github.com/flask-debugtoolbar/flask-debugtoolbar/blob/master/CHANGES.rst
16+
classifiers =
17+
Development Status :: 4 - Beta
18+
Environment :: Web Environment
19+
Framework :: Flask
20+
Intended Audience :: Developers
21+
License :: OSI Approved :: BSD License
22+
Operating System :: OS Independent
23+
Programming Language :: Python
24+
Topic :: Internet :: WWW/HTTP :: Dynamic Content
25+
Topic :: Software Development :: Libraries :: Python Modules
26+
27+
[options]
28+
packages = find:
29+
package_dir = = flask_debugtoolbar
30+
include_package_data = True
31+
python_requires = >=2.7
32+
# Dependencies are in setup.py for GitHub's dependency graph.
33+
34+
[options.packages.find]
35+
where = flask_debugtoolbar

setup.py

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,12 @@
1-
import os
21
from setuptools import setup
32

4-
5-
here = os.path.abspath(os.path.dirname(__file__))
6-
7-
try:
8-
README = open(os.path.join(here, 'README.rst')).read()
9-
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
10-
except Exception:
11-
README = ''
12-
CHANGES = ''
13-
14-
3+
# Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
154
setup(
16-
name='Flask-DebugToolbar',
17-
version='0.12.dev0',
18-
url='https://flask-debugtoolbar.readthedocs.io/',
19-
license='BSD',
20-
author='Michael van Tellingen',
21-
author_email='michaelvantellingen@gmail.com',
22-
maintainer='Matt Good',
23-
maintainer_email='matt@matt-good.net',
24-
description='A toolbar overlay for debugging Flask applications.',
25-
long_description=README + '\n\n' + CHANGES,
26-
zip_safe=False,
27-
platforms='any',
28-
include_package_data=True,
29-
packages=[
30-
'flask_debugtoolbar',
31-
'flask_debugtoolbar.panels'
32-
],
5+
name="Flask-DebugToolbar",
336
install_requires=[
347
'Flask>=0.8',
358
'Blinker',
369
'itsdangerous',
3710
'werkzeug',
3811
],
39-
classifiers=[
40-
'Development Status :: 4 - Beta',
41-
'Environment :: Web Environment',
42-
'Intended Audience :: Developers',
43-
'License :: OSI Approved :: BSD License',
44-
'Operating System :: OS Independent',
45-
'Programming Language :: Python',
46-
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
47-
'Topic :: Software Development :: Libraries :: Python Modules'
48-
]
4912
)

0 commit comments

Comments
 (0)