Skip to content

Commit e23e955

Browse files
committed
Migrate build and setup from setup.py to pyproject.toml
1 parent 181a322 commit e23e955

File tree

6 files changed

+83
-81
lines changed

6 files changed

+83
-81
lines changed

README.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,13 @@ If you want to test:
2424

2525
.. code-block:: bash
2626
27-
$ pip install -r requirements.txt
27+
$ pip install '.[dev]'
2828
$ pytest
29+
30+
How to build
31+
------------
32+
33+
.. code-block:: bash
34+
35+
$ pip install --upgrade build
36+
$ python -m build

docs_requirements.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

multipart/_version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
__version__ = '0.0.5'
1+
import pkg_resources
2+
3+
__version__ = pkg_resources.get_distribution("python-multipart").version

pyproject.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "python-multipart"
7+
version = "0.0.5"
8+
description = "A streaming multipart parser for Python"
9+
authors = [
10+
{name = "Andrew Dunham"},
11+
]
12+
readme = "README.rst"
13+
requires-python = ">=3.7"
14+
license = {text = "Apache"}
15+
classifiers = [
16+
'Development Status :: 5 - Production/Stable',
17+
'Environment :: Web Environment',
18+
'Intended Audience :: Developers',
19+
'License :: OSI Approved :: Apache Software License',
20+
'Operating System :: OS Independent',
21+
'Programming Language :: Python :: 3 :: Only',
22+
'Programming Language :: Python :: 3',
23+
'Programming Language :: Python :: 3.7',
24+
'Programming Language :: Python :: 3.8',
25+
'Programming Language :: Python :: 3.9',
26+
'Programming Language :: Python :: 3.10',
27+
'Programming Language :: Python :: 3.11',
28+
'Topic :: Software Development :: Libraries :: Python Modules'
29+
]
30+
dependencies = [
31+
"atomicwrites==1.2.1",
32+
"attrs==19.2.0",
33+
"coverage==4.5.1",
34+
"more-itertools==4.3.0",
35+
"pbr==4.3.0",
36+
"pluggy==1.0.0",
37+
"py==1.11.0",
38+
"pytest==7.2.0",
39+
"PyYAML==5.1",
40+
]
41+
42+
[project.urls]
43+
"Homepage" = 'https://github.com/andrew-d/python-multipart'
44+
45+
[project.optional-dependencies]
46+
dev = [
47+
"pytest",
48+
"pytest-cov",
49+
"PyYAML"
50+
]
51+
doc = [
52+
"Jinja2==2.11.3",
53+
"PyYAML==5.1",
54+
"Pygments==2.7.4",
55+
"Sphinx==1.2b1",
56+
"cov-core==1.7",
57+
"coverage==3.6",
58+
"distribute==0.6.34",
59+
"docutils==0.10",
60+
"invoke==0.2.0",
61+
"pexpect-u==2.5.1",
62+
"py==1.10.0",
63+
"pytest==6.2.6",
64+
"pytest-capturelog==0.7",
65+
"pytest-cov==1.6",
66+
"pytest-timeout==0.3",
67+
"sphinx-bootstrap-theme==0.2.0",
68+
"tox==1.4.3",
69+
"virtualenv==1.9.1",
70+
"wsgiref==0.1.2",
71+
]

requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)