Skip to content

Commit d0bed88

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

File tree

4 files changed

+42
-97
lines changed

4 files changed

+42
-97
lines changed

MANIFEST.in

-23
This file was deleted.

pyproject.toml

+42-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,41 @@
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+
31+
[project.urls]
32+
Documentation = "https://packaging.pypa.io/"
33+
Source = "https://github.com/pypa/packaging"
34+
35+
36+
[tool.flit.sdist]
37+
include = ["LICENSE*", "tests/", "docs/"]
38+
exclude = ["docs/_build", "tests/manylinux/build-hello-world.sh", "tests/musllinux/build.sh", "tests/hello-world.c", "tests/__pycache__", "build/__pycache__"]
439

540

641
[tool.coverage.run]
@@ -19,3 +54,8 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
1954
[[tool.mypy.overrides]]
2055
module = ["_manylinux"]
2156
ignore_missing_imports = true
57+
58+
59+
[tool.isort]
60+
profile = "black"
61+
combine_as_imports = true

setup.cfg

-3
This file was deleted.

setup.py

-69
This file was deleted.

0 commit comments

Comments
 (0)