scm_versioning MANIFEST.in and pyproject.toml

MANIFEST.in and pyproject.toml
This commit is contained in:
jdegenstein 2023-02-21 21:00:25 -06:00 committed by GitHub
parent 0ba23ed3e6
commit 1bbdef2bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

2
MANIFEST.in Normal file
View file

@ -0,0 +1,2 @@
# exclude build123d._dev from sdists
prune src/build123d/_dev

View file

@ -1,13 +1,17 @@
[build-system] [build-system]
requires = [ requires = [
"setuptools>=42", "setuptools>=45",
"wheel", "wheel",
"setuptools_scm[toml]>=6.2",
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
name = "build123d" name = "build123d"
version = "0.1.0" #version = "0.1.0" # Uncomment this for the next release?
dynamic = ["version"]
authors = [ authors = [
{name = "Roger Maitland", email = "gumyr9@gmail.com"}, {name = "Roger Maitland", email = "gumyr9@gmail.com"},
] ]
@ -39,3 +43,12 @@ dependencies = [
"svgpathtools >= 1.5.1, <2", "svgpathtools >= 1.5.1, <2",
"anytree >= 2.8.0, <3" "anytree >= 2.8.0, <3"
] ]
[tool.setuptools.packages.find]
where = ["src"]
# exclude build123d._dev from wheels
exclude = ["_dev"]
[tool.setuptools_scm]
write_to = "src/build123d/_version.py"