saiph 2.0.4__tar.gz → 2.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {saiph-2.0.4 → saiph-2.0.6}/PKG-INFO +1 -1
- {saiph-2.0.4 → saiph-2.0.6}/justfile +1 -1
- {saiph-2.0.4 → saiph-2.0.6}/pyproject.toml +4 -1
- {saiph-2.0.4 → saiph-2.0.6}/release.py +11 -3
- {saiph-2.0.4 → saiph-2.0.6}/saiph/__init__.py +1 -1
- {saiph-2.0.4 → saiph-2.0.6}/uv.lock +1 -1
- {saiph-2.0.4 → saiph-2.0.6}/.github/workflows/pr-title.yml +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/.github/workflows/release.yml +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/.github/workflows/saiph-ci.yml +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/.gitignore +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/.pre-commit-config.yaml +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/.readthedocs.yaml +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/.tool-versions +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/CONTRIBUTING.md +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/LICENSE +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/README.md +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/bin/create_csv.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/docs/conf.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/docs/index.rst +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/docs/requirements.txt +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/docs/source/example/README.rst +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/docs/source/example/plot_example.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/docs/source/reference.rst +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/fixtures/iris.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/fixtures/wbcd.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/ruff.toml +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/conftest.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/contribution.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/contribution_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/exception.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/inverse_transform.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/inverse_transform_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/lib/size.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/models.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/projection.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/projection_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6/saiph}/py.typed +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/__init__.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd_sparse.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd_sparse_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/mca.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/mca_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/pca.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/pca_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/__init__.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/common.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/common_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/svd.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/svd_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/serializer.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/serializer_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/__init_.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/benchmark_test.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/profile_cpu.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/profile_memory.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/saiph/visualization.py +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/setup.cfg +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/breast_cancer_wisconsin.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/breast_cancer_wisconsin_supplemental.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/iris.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/iris_factomineR_contributions.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/iris_factomineR_cos2.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/wbcd_supplemental_coordinates_famd.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/wbcd_supplemental_coordinates_mca.csv +0 -0
- {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/wbcd_supplemental_coordinates_pca.csv +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "saiph"
|
|
3
3
|
# Also modify in saiph/__init__.py
|
|
4
|
-
version = "2.0.
|
|
4
|
+
version = "2.0.6"
|
|
5
5
|
description = "A projection package"
|
|
6
6
|
authors = [
|
|
7
7
|
{name = "Octopize", email = "help@octopize.io"}
|
|
@@ -44,6 +44,9 @@ doc = [
|
|
|
44
44
|
"matplotlib>=3.5.2,<4",
|
|
45
45
|
]
|
|
46
46
|
|
|
47
|
+
[tool.hatchling.build.targets.wheel]
|
|
48
|
+
packages = ["saiph"]
|
|
49
|
+
|
|
47
50
|
[build-system]
|
|
48
51
|
requires = ["hatchling"]
|
|
49
52
|
build-backend = "hatchling.build"
|
|
@@ -13,6 +13,7 @@ app = typer.Typer()
|
|
|
13
13
|
|
|
14
14
|
PYPROJECT_TOML = Path("pyproject.toml")
|
|
15
15
|
INIT_PY = Path("saiph/__init__.py")
|
|
16
|
+
UV_LOCK = Path("uv.lock")
|
|
16
17
|
|
|
17
18
|
TAG_PREFIX = "saiph-v"
|
|
18
19
|
|
|
@@ -28,7 +29,7 @@ class BumpType(enum.Enum):
|
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
def get_version_pattern(key: str) -> Pattern: # type: ignore[type-arg]
|
|
31
|
-
pattern = re.compile(
|
|
32
|
+
pattern = re.compile(rf'{key} = "(\d+)\.(\d+)\.(\d+)"') # noqa W905
|
|
32
33
|
return pattern
|
|
33
34
|
|
|
34
35
|
|
|
@@ -109,6 +110,10 @@ def bump_version(bump_type: BumpType) -> None:
|
|
|
109
110
|
bump_version_in_file(INIT_PY, key="__version__", bump_type=bump_type)
|
|
110
111
|
|
|
111
112
|
|
|
113
|
+
def run_uv_lock():
|
|
114
|
+
subprocess.run(["uv", "lock"]) # noqa: S603, S607
|
|
115
|
+
|
|
116
|
+
|
|
112
117
|
def commit_and_tag() -> None:
|
|
113
118
|
match = get_version_from_file(PYPROJECT_TOML)
|
|
114
119
|
if not match:
|
|
@@ -117,7 +122,7 @@ def commit_and_tag() -> None:
|
|
|
117
122
|
new_version = ".".join(match.groups())
|
|
118
123
|
tag = TAG_PREFIX + new_version
|
|
119
124
|
|
|
120
|
-
files_to_add = [str(PYPROJECT_TOML), str(INIT_PY)]
|
|
125
|
+
files_to_add = [str(PYPROJECT_TOML), str(INIT_PY), str(UV_LOCK)]
|
|
121
126
|
DoCommand: TypeAlias = list[str]
|
|
122
127
|
UndoCommand: TypeAlias = list[str]
|
|
123
128
|
commands: list[tuple[DoCommand, UndoCommand]] = [
|
|
@@ -193,7 +198,9 @@ def check_preconditions() -> None:
|
|
|
193
198
|
|
|
194
199
|
|
|
195
200
|
@app.command()
|
|
196
|
-
def release(
|
|
201
|
+
def release(
|
|
202
|
+
bump_type: BumpType = typer.Option(default=BumpType.PATCH.value),
|
|
203
|
+
) -> Any:
|
|
197
204
|
proc = subprocess.Popen(
|
|
198
205
|
args=("git", "branch", "--show-current"), stdout=PIPE, text=True
|
|
199
206
|
)
|
|
@@ -207,6 +214,7 @@ def release(bump_type: BumpType = typer.Option(BumpType.PATCH)) -> Any:
|
|
|
207
214
|
|
|
208
215
|
check_preconditions()
|
|
209
216
|
bump_version(bump_type)
|
|
217
|
+
run_uv_lock()
|
|
210
218
|
commit_and_tag()
|
|
211
219
|
push()
|
|
212
220
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|