Skip to content

Commit 27bf5c5

Browse files
committed
Move static metadata to a pyproject.toml file
1 parent 922f366 commit 27bf5c5

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = ["setuptools"]
4+
5+
[project]
6+
name = "httptools"
7+
dynamic = ["version"]
8+
classifiers = [
9+
"Intended Audience :: Developers",
10+
"Programming Language :: Python :: 3",
11+
"Operating System :: POSIX",
12+
"Operating System :: MacOS :: MacOS X",
13+
"Environment :: Web Environment",
14+
"Development Status :: 5 - Production/Stable",
15+
]
16+
requires-python = ">=3.8"
17+
authors = [
18+
{name = "Yury Selivanov", email="[email protected]"},
19+
]
20+
license = "MIT"
21+
description = "A collection of framework independent HTTP protocol utils."
22+
readme = "README.md"
23+
24+
[project.urls]
25+
Homepage = "https://github.com/MagicStack/httptools"

setup.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ def build_extensions(self):
145145
super().build_extensions()
146146

147147

148-
with open(str(ROOT / 'README.md')) as f:
149-
long_description = f.read()
150-
151-
152148
with open(str(ROOT / 'httptools' / '_version.py')) as f:
153149
for line in f:
154150
if line.startswith('__version__ ='):
@@ -169,27 +165,9 @@ def build_extensions(self):
169165

170166

171167
setup(
172-
name='httptools',
173168
version=VERSION,
174-
description='A collection of framework independent HTTP protocol utils.',
175-
long_description=long_description,
176-
long_description_content_type='text/markdown',
177-
url='https://github.com/MagicStack/httptools',
178-
classifiers=[
179-
'License :: OSI Approved :: MIT License',
180-
'Intended Audience :: Developers',
181-
'Programming Language :: Python :: 3',
182-
'Operating System :: POSIX',
183-
'Operating System :: MacOS :: MacOS X',
184-
'Environment :: Web Environment',
185-
'Development Status :: 5 - Production/Stable',
186-
],
187169
platforms=['macOS', 'POSIX', 'Windows'],
188-
python_requires='>=3.8.0',
189170
zip_safe=False,
190-
author='Yury Selivanov',
191-
author_email='[email protected]',
192-
license='MIT',
193171
packages=['httptools', 'httptools.parser'],
194172
cmdclass={
195173
'build_ext': httptools_build_ext,

0 commit comments

Comments
 (0)