Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
update CI, setup workflow to release to pypi (#13)
Browse files Browse the repository at this point in the history
* fix

* fix CI

* fix CI

* skip musllinux
  • Loading branch information
district10 authored Mar 3, 2023
1 parent b309dd0 commit fddc8ea
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build_script:
- ps: |
python -m build -s
cd dist
python -m pip install --verbose cubao_cmake_example-0.0.1.tar.gz
python -m pip install --verbose cubao_cmake_example-0.0.2.tar.gz
cd ..
test_script:
- ps: python -m pytest
4 changes: 2 additions & 2 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
platform: [ubuntu-20.04, windows-2019, macos-11]
python-version: ["3.8", "3.9", "3.10"]

runs-on: ${{ matrix.platform }}

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ jobs:

- uses: pypa/cibuildwheel@v2.12.0
env:
CIBW_ARCHS_MACOS: auto universal2
CIBW_ARCHS: auto64
CIBW_BEFORE_BUILD: pip install numpy --prefer-binary
# https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip
CIBW_SKIP: pp* *i686
CIBW_SKIP: pp* *i686 *musllinux*
CIBW_TEST_SKIP: "*macosx*"

- name: Verify clean directory
run: git diff --exit-code
Expand Down Expand Up @@ -77,4 +79,4 @@ jobs:

- uses: pypa/gh-action-pypi-publish@v1.6.4
with:
password: ${{ secrets.pypi_password }}
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 4 additions & 0 deletions docs/about/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ To upgrade `cubao_cmake_example` to the latest version, use pip:
pip install -U cubao_cmake_example
```

## Version 0.0.2 (2023-03-03)

* Release to pypi on GitHub workflow

## Version 0.0.1 (2022-10-14)

* First release to pypi
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ def build_extension(self, ext):
# logic and declaration, and simpler if you include description/version in a file.
setup(
name="cubao_cmake_example",
version="0.0.1",
version="0.0.2",
author="tzx",
author_email="dvorak4tzx@gmail.com",
url="https://cmake-example.readthedocs.io",
description="A test project using pybind11 and CMake",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


def test_main():
assert m.__version__ == "0.0.1"
assert m.__version__ == "0.0.2"
assert m.add(1, 2) == 3
assert m.subtract(1, 2) == -1

0 comments on commit fddc8ea

Please sign in to comment.