Skip to content

Commit 33a3fc6

Browse files
authored
Merge pull request #73 from mgorny/flit_core
Switch the build system to flit_core
2 parents 8a7c8fc + 8608ab5 commit 33a3fc6

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

README-dist.rst

-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ Installation
137137
required:
138138

139139
- `build`_ (>=0.6.0)
140-
- `setuptools`_ (>=40.8.0)
141140

142141
*pathspec* can then be built and installed with::
143142

@@ -146,7 +145,6 @@ required:
146145

147146
.. _`PyPI`: http://pypi.python.org/pypi/pathspec
148147
.. _`build`: https://pypi.org/project/build/
149-
.. _`setuptools`: https://pypi.org/project/setuptools/
150148

151149

152150
Documentation

README.rst

-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ Installation
137137
required:
138138

139139
- `build`_ (>=0.6.0)
140-
- `setuptools`_ (>=40.8.0)
141140

142141
*pathspec* can then be built and installed with::
143142

@@ -146,7 +145,6 @@ required:
146145

147146
.. _`PyPI`: http://pypi.python.org/pypi/pathspec
148147
.. _`build`: https://pypi.org/project/build/
149-
.. _`setuptools`: https://pypi.org/project/setuptools/
150148

151149

152150
Documentation

prebuild.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ def generate_setup_cfg() -> None:
5050
'long_description_content_type': "text/x-rst",
5151
'name': config['project']['name'],
5252
'url': config['project']['urls']['Source Code'],
53-
'version': f"attr: {config['tool']['setuptools']['dynamic']['version']['attr']}",
53+
'version': "attr: pathspec._meta.__version__",
5454
}
5555
output['options'] = {
5656
'packages': "find:",
5757
'python_requires': config['project']['requires-python'],
58-
'setup_requires': ", ".join(config['build-system']['requires']),
58+
'setup_requires': "setuptools>=40.8.0",
5959
'test_suite': "tests",
6060
}
6161
output['options.packages.find'] = {
62-
'include': ", ".join(config['tool']['setuptools']['packages']['find']['include'])
62+
'include': "pathspec, pathspec.*",
6363
}
6464

6565
with open("setup.cfg", 'w', encoding='utf8') as fh:

pyproject.toml

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
build-backend = "setuptools.build_meta"
3-
requires = ["setuptools>=40.8.0"]
2+
build-backend = "flit_core.buildapi"
3+
requires = ["flit_core >=3.2,<4"]
44

55
[project]
66
authors = [
@@ -34,9 +34,3 @@ requires-python = ">=3.7"
3434
"Source Code" = "https://github.com/cpburnz/python-pathspec"
3535
"Documentation" = "https://python-path-specification.readthedocs.io/en/latest/index.html"
3636
"Issue Tracker" = "https://github.com/cpburnz/python-pathspec/issues"
37-
38-
[tool.setuptools.dynamic]
39-
version = {attr = "pathspec._meta.__version__"}
40-
41-
[tool.setuptools.packages.find]
42-
include = ["pathspec", "pathspec.*"]

0 commit comments

Comments
 (0)