Skip to content

Commit

Permalink
General packaging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed Aug 2, 2022
1 parent 4568812 commit ef043f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
os:
- {name: 'macOS', image: 'macos-latest', wheel: 'macosx_*'}
- {name: 'Windows', image: 'windows-latest', wheel: 'win_amd64'}
- {name: 'Linux', image: 'ubuntu-latest', wheel: 'manylinux_2_17_x86_64.manylinux2014_x86_64'}
- {name: 'Linux', image: 'ubuntu-latest', wheel: 'manylinux2014_x86_64'}
python:
- {version: '3.7', wheel: 'cp37-cp37m'}
- {version: '3.8', wheel: 'cp38-cp38'}
Expand All @@ -133,12 +133,12 @@ jobs:
with:
name: python-package-distributions
path: dist/

- name: Install Python packages
run: python -m pip install --upgrade pip pytest

- name: install built wheel
run: python -m pip install dist/*-${{ matrix.python.wheel }}-${{ matrix.os.wheel }}.whl
run: python -m pip install dist/*-${{ matrix.python.wheel }}-*${{ matrix.os.wheel }}.whl
shell: bash

- name: test
Expand Down Expand Up @@ -166,6 +166,6 @@ jobs:

- name: Publish 📦 to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=44.0.0", "wheel>=0.34.2", "Cython>=0.29.21", "setuptools_scm[toml]>=3.4"]
requires = ["setuptools>=60.0.0", "Cython>=0.29.21", "setuptools_scm[toml]>=6.4"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def create_extension(template, kwds):
ext_module.include_dirs = custom_include_paths

setup(
use_scm_version=True,
use_scm_version={
"local_scheme": "no-local-version",
},
cmdclass={
'build_ext': CMakeBuild,
},
Expand Down

0 comments on commit ef043f9

Please sign in to comment.