Skip to content

Commit 62b7c14

Browse files
author
Krish Patel
committed
fix: remove duplicate publish workflow, add pypi environment to release, bump version to 0.2.1
1 parent 5b8550c commit 62b7c14

5 files changed

Lines changed: 7 additions & 40 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
publish:
2727
needs: test
2828
runs-on: ubuntu-latest
29+
environment: pypi
2930
permissions:
3031
id-token: write
3132
steps:

‎aecp-python/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "aecp"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "Migrate a vector database to a new embedding model without re-embedding the corpus. Fits a linear map from ~2K calibration texts; 87-91% retrieval retention measured on BEIR."
99
readme = "README.md"
1010
license = "Apache-2.0"

‎aecp-python/src/aecp/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from aecp.mapping.base import Mapping, ValidationReport
1313
from aecp.mapping.linear import OrthogonalProcrustesMapping, RidgeMapping
1414

15-
__version__ = "0.2.0"
15+
__version__ = "0.2.1"
1616
__all__ = [
1717
"Mapping",
1818
"RidgeMapping",

‎aecp-python/tests/test_release.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestPackageImport:
2222
def test_import_aecp(self):
2323
import aecp
2424

25-
assert aecp.__version__ == "0.2.0"
25+
assert aecp.__version__ == "0.2.1"
2626

2727
def test_import_mapping(self):
2828
from aecp.mapping.linear import RidgeMapping
@@ -148,7 +148,7 @@ class TestCLI:
148148
def test_cli_version(self):
149149
result = _run_aecp("version")
150150
assert result.returncode == 0
151-
assert "0.2.0" in result.stdout
151+
assert "0.2.1" in result.stdout
152152

153153
def test_cli_help(self):
154154
result = _run_aecp("--help")
@@ -175,9 +175,9 @@ class TestVersionConsistency:
175175
def test_version_in_pyproject(self):
176176
pyproject = Path(__file__).parent.parent / "pyproject.toml"
177177
content = pyproject.read_text()
178-
assert 'version = "0.2.0"' in content
178+
assert 'version = "0.2.1"' in content
179179

180180
def test_version_in_init(self):
181181
init = Path(__file__).parent.parent / "src" / "aecp" / "__init__.py"
182182
content = init.read_text()
183-
assert "0.2.0" in content
183+
assert "0.2.1" in content

0 commit comments

Comments
 (0)