From 032ee8fab103becd50ceee37b124ac3ad4fc1f7f Mon Sep 17 00:00:00 2001 From: wfondrie Date: Fri, 19 Jun 2020 22:06:30 -0700 Subject: [PATCH] Auto versioning working --- .github/workflows/publish.yml | 4 ++-- pyproject.toml | 3 ++- setup.py | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 38762bf..a21ce6f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,11 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel twine pep517 - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m pep517.build --source --out-dir dist . twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index b478c0d..1cd983f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,5 @@ [build-system] requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] +build-backend = "setuptools.build_meta" -[tool.setuptools_scm] \ No newline at end of file +[tool.setuptools_scm] diff --git a/setup.py b/setup.py index 2a2b696..4d0ae08 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,6 @@ setuptools.setup( name="ppx", - use_scm_version=True, author="William E Fondrie", author_email="fondriew@gmail.com", description="A Python interface to the ProteomeXchange Repository",