Skip to content

Commit f0f7426

Browse files
henryiiibrettcannon
authored andcommitted
use flit as a build backend (pypa#546)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Brett Cannon <brett@python.org>
1 parent eb48263 commit f0f7426

File tree

4 files changed

+44
-98
lines changed

4 files changed

+44
-98
lines changed

MANIFEST.in

-23
This file was deleted.

pyproject.toml

+44-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
11
[build-system]
2-
requires = ['setuptools >= 40.8.0', 'wheel']
3-
build-backend = 'setuptools.build_meta'
2+
requires = ["flit_core >=3.3"]
3+
build-backend = "flit_core.buildapi"
4+
5+
6+
[project]
7+
name = "packaging"
8+
description = "Core utilities for Python packages"
9+
version = "21.4.dev0"
10+
readme = "README.rst"
11+
requires-python = ">=3.7"
12+
authors = [{name = "Donald Stufft", email = "donald@stufft.io"}]
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: Apache Software License",
17+
"License :: OSI Approved :: BSD License",
18+
"Programming Language :: Python",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3 :: Only",
21+
"Programming Language :: Python :: 3.7",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: Implementation :: CPython",
27+
"Programming Language :: Python :: Implementation :: PyPy",
28+
]
29+
dependencies = [
30+
"pyparsing>=2.0.2,!=3.0.5",
31+
]
32+
33+
[project.urls]
34+
Documentation = "https://packaging.pypa.io/"
35+
Source = "https://github.com/pypa/packaging"
36+
37+
38+
[tool.flit.sdist]
39+
include = ["LICENSE*", "tests/", "docs/"]
40+
exclude = ["docs/_build", "tests/manylinux/build-hello-world.sh", "tests/musllinux/build.sh", "tests/hello-world.c", "tests/__pycache__", "build/__pycache__"]
441

542

643
[tool.coverage.run]
@@ -19,3 +56,8 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
1956
[[tool.mypy.overrides]]
2057
module = ["_manylinux"]
2158
ignore_missing_imports = true
59+
60+
61+
[tool.isort]
62+
profile = "black"
63+
combine_as_imports = true

setup.cfg

-3
This file was deleted.

setup.py

-70
This file was deleted.

0 commit comments

Comments
 (0)