Skip to content

Commit 4552d6e

Browse files
DimitriPapadopoulosastanin
authored andcommitted
A few fixes for flit builds
The build backend should be `flit_core`, not `flit`: https://flit.pypa.io/en/stable/pyproject_toml.html#build-system-section File `_version.py` should be part of sdist and wheel distributions.
1 parent e6a24aa commit 4552d6e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/tabulate/version.py
1+
/tabulate/_version.py
22

33
build
44
dist

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["flit>=3.12", "flit_scm"]
2+
requires = ["flit_core>=3.12", "flit_scm"]
33
build-backend = "flit_scm:buildapi"
44

55
[project]
@@ -34,7 +34,6 @@ tabulate = "tabulate:_main"
3434

3535
[tool.flit.sdist]
3636
include = ["CHANGELOG", "test/", "tox.ini"]
37-
exclude = ["tabulate/_version.py"]
3837

3938
[tool.setuptools_scm]
4039
write_to = "tabulate/_version.py"

0 commit comments

Comments
 (0)