Skip to content

Commit

Permalink
Merge pull request #211 from mwcraig/use-setuptools-scm
Browse files Browse the repository at this point in the history
Use setuptools_scm instead of versioneer
  • Loading branch information
mwcraig committed Jul 11, 2022
2 parents 4101321 + 33da356 commit 5b0557e
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 1,009 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
Expand All @@ -37,15 +39,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest Cython wheel
- name: Build sdist
run: |
python setup.py sdist
pip install pytest Cython wheel build
- name: Build wheel
- name: Build sdist and wheel
run: |
python setup.py bdist_wheel
python -m build
- name: Install vpython
run: |
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/upload_pypi.yml
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
Expand All @@ -27,20 +29,22 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine Cython
pip install setuptools wheel twine Cython build
- name: Build and publish wheel
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
run: |
python setup.py bdist_wheel
twine upload dist/*
python -m build
twine upload dist/*.whl
linux_wheels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand All @@ -58,7 +62,7 @@ jobs:
uses: RalfG/python-wheels-manylinux-build@v0.4.2
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'setuptools cython'
build-requirements: 'setuptools cython setuptools_scm'
- name: Build and publish wheel
env:
TWINE_USERNAME: __token__
Expand All @@ -70,6 +74,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand All @@ -85,7 +91,7 @@ jobs:
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_aarch64
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'setuptools cython'
build-requirements: 'setuptools cython setuptools_scm'
- name: Build and publish wheel
env:
TWINE_USERNAME: __token__
Expand All @@ -104,11 +110,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine Cython
pip install setuptools wheel twine Cython build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
run: |
python setup.py sdist
twine upload dist/*
python -m build
twine upload dist/*.tar.gz
3 changes: 0 additions & 3 deletions MANIFEST.in
@@ -1,7 +1,4 @@
include CHANGES.txt
include LICENSE.txt
include README.md
include ez_setup.py
include versioneer.py
include vpython/_version.py
include vpython/cyvector.pyx

0 comments on commit 5b0557e

Please sign in to comment.