--- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,3 @@ [build-system] requires = ["setuptools>=50.3.2", "wheel", "setuptools-declarative-requirements", "setuptools_scm[toml]>=3.4"] build-backend = "setuptools.build_meta" - -[tool.setuptools_scm] -write_to = "src/pytest_helpers_namespace/version.py" -write_to_template = "__version__ = \"{version}\"" --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,5 @@ [metadata] +version = @PV@ name = pytest-helpers-namespace description = Pytest Helpers Namespace Plugin long_description = file: README.rst @@ -34,21 +35,12 @@ packages = find: python_requires = >= 3.5 setup_requires = setuptools>=50.3.2 - setuptools_scm[toml]>=3.4 - setuptools-declarative-requirements [options.packages.find] where = src exclude = tests -[requirements-files] -install_requires = requirements/base.txt -extras_require = - docs = requirements/docs.txt - lint = requirements/lint.txt - tests = requirements/tests.txt - [options.entry_points] pytest11 = helpers_namespace = pytest_helpers_namespace.plugin --- a/setup.py +++ b/setup.py @@ -2,4 +2,4 @@ import setuptools if __name__ == "__main__": - setuptools.setup(use_scm_version=True) + setuptools.setup()