Skip to content

Commit e09d3eb

Browse files
authored
Merge pull request #697 from libAtoms/fix-pypi-version-override
Fix PyPI version override for tagged releases
2 parents 03b6ef3 + 907a68a commit e09d3eb

11 files changed

Lines changed: 32 additions & 396 deletions

File tree

.github/workflows/Build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: |
6161
python -m pip install --upgrade pip
6262
pip install numpy ase meson-python build
63-
pip install 'git+https://github.com/jameskermode/f90wrap.git@master'
63+
pip install 'f90wrap>=0.3.0'
6464
env:
6565
FC: gfortran
6666
CC: gcc
@@ -92,10 +92,11 @@ jobs:
9292

9393
# Builds the QUIP docs webpage image. This only happens ON the public
9494
# branch, after tests pass and pull requests are completed
95+
# TEMPORARILY DISABLED - needs investigation
9596
docs:
9697
runs-on: ubuntu-latest
9798
needs: build
98-
if: github.ref == 'refs/heads/public'
99+
if: false # github.ref == 'refs/heads/public'
99100

100101
steps:
101102
- name: Checkout repository
@@ -141,10 +142,11 @@ jobs:
141142
# Builds the QUIP docker image. This takes about 1h 20min
142143
# this only happens ON the public branch, after pull requests
143144
# are completed
145+
# TEMPORARILY DISABLED - needs investigation
144146
docker:
145147
runs-on: ubuntu-latest
146148
needs: build # depends on the previous matrix jobs to succeed
147-
if: github.ref == 'refs/heads/public'
149+
if: false # github.ref == 'refs/heads/public'
148150

149151
steps:
150152
- name: Checkout repository

.github/workflows/build-wheels.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ jobs:
3434
- name: Install cibuildwheel
3535
run: python -m pip install cibuildwheel==2.21.1
3636

37+
- name: Set version from git tag
38+
if: startsWith(github.ref, 'refs/tags/v')
39+
run: |
40+
VERSION="${GITHUB_REF#refs/tags/v}"
41+
echo "Setting version to $VERSION from tag"
42+
echo "$VERSION" > quippy/VERSION
43+
# Update meson.build version (meson-python reads from project() call)
44+
# Only update the project version line, not meson_version
45+
sed -i.bak "s/^ version: '[^']*'/ version: '$VERSION'/" quippy/meson.build
46+
rm -f quippy/meson.build.bak
47+
echo "Updated quippy/meson.build:"
48+
head -5 quippy/meson.build
49+
3750
- name: Determine architecture
3851
id: arch
3952
run: |
@@ -69,7 +82,7 @@ jobs:
6982
env:
7083
# Skip Python 2.7, 3.5, 3.6, 3.7, 3.8, PyPy, and musllinux (requires Python >=3.9)
7184
CIBW_SKIP: "cp27-* cp35-* cp36-* cp37-* cp38-* pp* *musllinux*"
72-
CIBW_BUILD_VERBOSITY: 3
85+
CIBW_BUILD_VERBOSITY: 1
7386

7487
# Use manylinux2014 for Linux
7588
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"

0 commit comments

Comments
 (0)