diff --git a/Makefile b/Makefile index c807619..4dc79ca 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,7 @@ dev: $(VENV)/pyvenv.cfg $(VENV)/pyvenv.cfg: pyproject.toml # Create our Python 3 virtual environment - python3 -m venv env - # NOTE(ekilmer): interrogate v1.5.0 needs setuptools when using Python 3.12+. - # This should be fixed when the next release is made - $(VENV_BIN)/python -m pip install --upgrade pip setuptools + python -m venv env $(VENV_BIN)/python -m pip install -e .[$(INSTALL_EXTRA)] .PHONY: lint diff --git a/pyproject.toml b/pyproject.toml index dfa5d8a..6a70bd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,3 @@ -[build-system] -requires = ["flit_core >=3.5,<4"] -build-backend = "flit_core.buildapi" - [project] name = "rfc8785" dynamic = ["version"] @@ -19,6 +15,9 @@ classifiers = [ dependencies = [] requires-python = ">=3.8" +[tool.setuptools.dynamic] +version = { attr = "rfc8785.__version__" } + [project.optional-dependencies] doc = ["pdoc"] test = ["pytest", "pytest-cov", "coverage"]