diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 627a9f2..0e039f7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ jobs: - name: Build wheel and source tarball run: | - python setup.py sdist + python -m build - name: Publish to PyPI diff --git a/pyproject.toml b/pyproject.toml index af2cef1..523985a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ requires = [ "setuptools>=61.0", "wheel", - "setuptools-scm", + "setuptools_scm[toml]>=6.2", ] build-backend = "setuptools.build_meta" @@ -35,6 +35,7 @@ dependencies =[ [tool.setuptools_scm] # This activates use_scm_version to get the version number from git tags. +write_to = "ceci/_version.py" [tool.setuptools] packages = [ diff --git a/setup.py b/setup.py index 8bf1ba9..dadd006 100644 --- a/setup.py +++ b/setup.py @@ -1,2 +1,3 @@ +import setuptools_scm from setuptools import setup setup()