diff --git a/.gitignore b/.gitignore index 85ffe03..6726598 100644 --- a/.gitignore +++ b/.gitignore @@ -7,10 +7,6 @@ docs/generated/ docs/make.bat docs/Makefile -# PyPi -build/ +# PyPI dist/ krank.egg-info/ - -# src -src/krank/_version.py diff --git a/pyproject.toml b/pyproject.toml index 9f4f8f2..f7417fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=61.0", "wheel", "setuptools_scm>=8"] +requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -44,6 +44,9 @@ dev = [ "pydata-sphinx-theme", # Needs to be in requirements.txt also (for docs.yml). ] +[tool.setuptools.dynamic] +version = {attr = "krank.__version__"} + [tool.setuptools] include-package-data = true @@ -56,8 +59,3 @@ krank = [ "krank/data/lexicons.json", "krank/data/tables.json", ] - -[tool.setuptools_scm] -version_scheme = "python-simplified-semver" -local_scheme = "no-local-version" -version_file = "src/krank/_version.py" diff --git a/src/krank/__init__.py b/src/krank/__init__.py index b1b054b..25903ed 100644 --- a/src/krank/__init__.py +++ b/src/krank/__init__.py @@ -5,3 +5,6 @@ from . import lexicons from . import liwc from . import tables + + +__version__ = "0.0.1.dev4"