Skip to content

Commit ccd58d7

Browse files
committed
setuptools->flit for easy dynamic versioning
1 parent 234a0cd commit ccd58d7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pyproject.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[build-system]
22
# Minimum requirements for the build system to execute.
3-
build-backend = "setuptools.build_meta"
4-
requires = ["setuptools>=61.0"]
3+
build-backend = "flit_core.buildapi"
4+
requires = ["flit_core>=3.4,<4"]
55

6-
# This is configuration specific to the `setuptools` build backend.
6+
# This is configuration specific to the `flit` build backend.
77
# If you are using a different build backend, you will need to change this.
8-
[tool.setuptools.packages.find]
9-
exclude = ["causalpy.test*", "docs*"]
8+
[tool.flit.sdist]
9+
exclude = ["causalpy/test*", "docs/*"]
1010

11-
[tool.setuptools.package-data]
12-
"causalpy.data" = ["*.csv"]
11+
[tool.flit.external-data]
12+
directory = "causalpy/data"
1313

1414
[project]
1515
name = "CausalPy"
16-
version = "0.1.0"
16+
dynamic = ["version"]
1717
description = "Causal inference for quasi-experiments in Python"
1818
readme = "README.md"
1919
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)