Skip to content

Commit

Permalink
use tag for package version (cihologramas#165)
Browse files Browse the repository at this point in the history
Co-authored-by: Günther Jena <guenther.jena@laseratwork.com>
  • Loading branch information
semiversus and Günther Jena authored Jun 22, 2024
1 parent adbe8fd commit 06d1744
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
python -m pip install --upgrade pip setuptools wheel twine setuptools_scm[toml]
pip install Cython==0.29.32 --config-settings="--install-option=--no-cython-compile"
pip install cibuildwheel
# The env variable CIBW_BUILD is set here to be able to format matrix.python-version correctly
# The env variable CIBW_BUILD is set here to be able to format matrix.python-version correctly
- name: Set CIBW_BUILD environment variable using Python
env:
PYTHON_VERSION: ${{ matrix.python-version }}
Expand All @@ -33,7 +33,7 @@ jobs:
python -m cibuildwheel --output-dir dist/
env:
# CIBW_BUILD: "cp${{ matrix.python-version }}*"
CIBW_SKIP: "*_i686 *musllinux* pp* *win32"
CIBW_SKIP: "*_i686 *musllinux* pp* *win32"

- name: Upload Distributions
uses: actions/upload-artifact@v3
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"Cython==0.29.32",
"setuptools>=70",
"setuptools_scm>=8",
"wheel",
"Cython==0.29.32",
"oldest-supported-numpy"
]

build-backend = "setuptools.build_meta"

[project]
name = "pyoptools"
version = "0.2.5"
dynamic = ["version"]
description = "Python tools for simulation of optical systems"
authors = [{ name = "Ricardo Amézquita Orozco", email = "ramezquitao@cihologramas.com" }]
license = {file = "LICENSE.txt"}
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ def create_extension(template, kwds: dict):
url="https://github.com/cihologramas/pyoptools/",
ext_modules=cythonize("pyoptools/**/*.pyx", language_level="2", create_extension=create_extension),
include_dirs=[numpy.get_include()],
use_scm_version=True,
)

0 comments on commit 06d1744

Please sign in to comment.