File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 66 push :
77
88concurrency :
9- group : ${{ github.workflow }}-${{ github.ref }}
9+ group : ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
1010 cancel-in-progress : true
1111
1212jobs :
@@ -45,16 +45,17 @@ jobs:
4545 with :
4646 update : true
4747 install : >-
48+ git
4849 mingw-w64-x86_64-gcc
4950 mingw-w64-x86_64-python-pip
5051 mingw-w64-x86_64-python-wheel
5152
5253 - uses : actions/checkout@v4
5354
54- - name : Install pybind11
55+ - name : Install requirements
5556 # This is required because --no-build-isolation disable dependences
5657 # installation
57- run : pip install pybind11
58+ run : pip install pybind11 setuptools_scm
5859
5960 - name : Build and install
6061 # --no-build-isolation is required because the vanilla setuptool does not
Original file line number Diff line number Diff line change 99 - published
1010
1111concurrency :
12- group : ${{ github.workflow }}-${{ github.ref }}
12+ group : ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
1313 cancel-in-progress : true
1414
1515jobs :
Original file line number Diff line number Diff line change 22requires = [
33 " setuptools>=42" ,
44 " pybind11>=2.10.0" ,
5+ " setuptools_scm[toml]>=6.2" ,
56]
67build-backend = " setuptools.build_meta"
78
9+ [tool .setuptools_scm ]
10+
811[tool .cibuildwheel ]
912test-command = " python {project}/tests/test.py"
1013test-skip = " *universal2:arm64"
Original file line number Diff line number Diff line change 22# Available at setup time due to pyproject.toml
33from pybind11 .setup_helpers import Pybind11Extension , build_ext
44from setuptools import setup
5+ from setuptools_scm import get_version
56
6- __version__ = "0.0.7"
7+ __version__ = get_version ()
78
89# The main interface is through Pybind11Extension.
910# * You can add cxx_std=11/14/17, and then build_ext can be removed.
You can’t perform that action at this time.
0 commit comments