Skip to content

Commit e1665ea

Browse files
committed
fix build-and-publish GitHub Actions workflow (2)
1 parent 50f0717 commit e1665ea

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
# TO CREATE A NEW RELEASE, TAG A COMMIT WITH THE FOLLOWING FORMAT:
77
# git tag v1.X.Y
88
# git push origin v1.X.Y
9+
# IF THE TAG v1.X.Y ALREADY EXISTS, RUN THE FOLLOWING COMMANDS FIRST:
10+
# git tag -d v1.X.Y
11+
# git push origin :refs/tags/v1.X.Y
912

1013
name: Build and Publish
1114
permissions:
@@ -33,7 +36,7 @@ jobs:
3336
env:
3437
CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp314-*
3538
CIBW_SKIP: "*-musllinux_*"
36-
CIBW_BEFORE_BUILD: pip install mypy>=1.19.0 mypy-extensions>=1.1.0 types-regex types-keyboard prompt_toolkit>=3.0.41
39+
CIBW_BEFORE_BUILD: pip install setuptools>=80.0.0 wheel>=0.45.0 mypy>=1.19.0 mypy-extensions>=1.1.0 types-regex types-keyboard prompt_toolkit>=3.0.41
3740
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
3841
CIBW_ENVIRONMENT: XULBUX_USE_MYPYC=1
3942

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
[build-system]
2+
# SAME BUILD-DEPS ALSO NEED TO BE SPECIFIED IN CIBW_BEFORE_BUILD IN .github/workflows/build-and-publish.yml
23
requires = [
34
"setuptools>=80.0.0",
45
"wheel>=0.45.0",
5-
# OTHER BUILD-DEPS SPECIFIED IN CIBW_BEFORE_BUILD IN .github/workflows/build-and-publish.yml
6+
"mypy>=1.19.0",
7+
"mypy-extensions>=1.1.0",
8+
# TYPES FOR MyPy
9+
"types-regex",
10+
"types-keyboard",
11+
"prompt_toolkit>=3.0.41",
612
]
713
build-backend = "setuptools.build_meta"
814

0 commit comments

Comments
 (0)