Skip to content

Commit

Permalink
chore: Build with flit instead of setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Sep 20, 2024
1 parent 234ce48 commit 01343ea
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit_core >=3.9,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "multipart"
requires-python = ">=3.5"
dynamic = ["version"]
license = {file = "LICENSE"}
description = "Parser for multipart/form-data"
readme = "README.rst"
authors = [
{name = "Marcel Hellkamp", email = "[email protected]"},
]

dynamic = ["version"]
urls = { repository = "http://github.com/defnull/multipart" }

classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
Expand All @@ -26,6 +24,10 @@ classifiers = [
"Programming Language :: Python :: 3",
]

[project.urls]
Homepage = "https://pypi.org/project/multipart/"
Repository = "https://github.com/defnull/multipart"

[project.optional-dependencies]
dev = [
"pytest",
Expand All @@ -34,12 +36,11 @@ dev = [
"twine",
]

[tool.setuptools]
py-modules = ["multipart"]
platforms = ["any"]

[tool.setuptools.dynamic]
version = {attr = "multipart.__version__"}
[tool.flit.sdist]
include = [
"test/*.py",
"MAINTAINERS.rst"
]

[tool.pytest.ini_options]
addopts = "-ra"
Expand Down

0 comments on commit 01343ea

Please sign in to comment.