Skip to content

Commit ecc2550

Browse files
committed
ci: fix publish workflow; remove sync step; bump to 0.2.5
1 parent 70f9bc9 commit ecc2550

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ jobs:
4040
python -m pip install --upgrade pip
4141
pip install build maturin
4242
43-
- name: Sync Python __version__ from Cargo.toml
44-
shell: bash
45-
run: |
46-
python -c "import tomllib, re; from pathlib import Path; c=tomllib.loads(Path('crates/codex_native/Cargo.toml').read_text()); v=c['package']['version']; p=Path('codex/__init__.py'); s=p.read_text(encoding='utf-8'); s=re.sub(r'__version__\\s*=\\s*\"[^\"]*\"', f'__version__ = \"{v}\"', s); p.write_text(s, encoding='utf-8'); print('Synced __version__ =', v)"
47-
4843
- name: Build wheels with PEP 517 (maturin backend)
4944
env:
5045
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: '1'
@@ -77,11 +72,6 @@ jobs:
7772
python -m pip install --upgrade pip
7873
pip install build maturin
7974
80-
- name: Sync Python __version__ from Cargo.toml
81-
shell: bash
82-
run: |
83-
python -c "import tomllib, re; from pathlib import Path; c=tomllib.loads(Path('crates/codex_native/Cargo.toml').read_text()); v=c['package']['version']; p=Path('codex/__init__.py'); s=p.read_text(encoding='utf-8'); s=re.sub(r'__version__\\s*=\\s*\"[^\"]*\"', f'__version__ = \"{v}\"', s); p.write_text(s, encoding='utf-8'); print('Synced __version__ =', v)"
84-
8575
- name: Build sdist (PEP 517)
8676
run: |
8777
python -m build --sdist

codex/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
]
3232

3333
# Package version. Kept in sync with Cargo.toml via CI before builds.
34-
__version__ = "0.2.4"
34+
__version__ = "0.2.5"

crates/codex_native/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codex_native"
3-
.2.4"
3+
version = "0.2.5"
44
edition = "2021"
55

66
[lib]

0 commit comments

Comments
 (0)