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.
Files changed (67) hide show
  1. {saiph-2.0.4 → saiph-2.0.6}/PKG-INFO +1 -1
  2. {saiph-2.0.4 → saiph-2.0.6}/justfile +1 -1
  3. {saiph-2.0.4 → saiph-2.0.6}/pyproject.toml +4 -1
  4. {saiph-2.0.4 → saiph-2.0.6}/release.py +11 -3
  5. {saiph-2.0.4 → saiph-2.0.6}/saiph/__init__.py +1 -1
  6. {saiph-2.0.4 → saiph-2.0.6}/uv.lock +1 -1
  7. {saiph-2.0.4 → saiph-2.0.6}/.github/workflows/pr-title.yml +0 -0
  8. {saiph-2.0.4 → saiph-2.0.6}/.github/workflows/release.yml +0 -0
  9. {saiph-2.0.4 → saiph-2.0.6}/.github/workflows/saiph-ci.yml +0 -0
  10. {saiph-2.0.4 → saiph-2.0.6}/.gitignore +0 -0
  11. {saiph-2.0.4 → saiph-2.0.6}/.pre-commit-config.yaml +0 -0
  12. {saiph-2.0.4 → saiph-2.0.6}/.readthedocs.yaml +0 -0
  13. {saiph-2.0.4 → saiph-2.0.6}/.tool-versions +0 -0
  14. {saiph-2.0.4 → saiph-2.0.6}/CONTRIBUTING.md +0 -0
  15. {saiph-2.0.4 → saiph-2.0.6}/LICENSE +0 -0
  16. {saiph-2.0.4 → saiph-2.0.6}/README.md +0 -0
  17. {saiph-2.0.4 → saiph-2.0.6}/bin/create_csv.py +0 -0
  18. {saiph-2.0.4 → saiph-2.0.6}/docs/conf.py +0 -0
  19. {saiph-2.0.4 → saiph-2.0.6}/docs/index.rst +0 -0
  20. {saiph-2.0.4 → saiph-2.0.6}/docs/requirements.txt +0 -0
  21. {saiph-2.0.4 → saiph-2.0.6}/docs/source/example/README.rst +0 -0
  22. {saiph-2.0.4 → saiph-2.0.6}/docs/source/example/plot_example.py +0 -0
  23. {saiph-2.0.4 → saiph-2.0.6}/docs/source/reference.rst +0 -0
  24. {saiph-2.0.4 → saiph-2.0.6}/fixtures/iris.csv +0 -0
  25. {saiph-2.0.4 → saiph-2.0.6}/fixtures/wbcd.csv +0 -0
  26. {saiph-2.0.4 → saiph-2.0.6}/ruff.toml +0 -0
  27. {saiph-2.0.4 → saiph-2.0.6}/saiph/conftest.py +0 -0
  28. {saiph-2.0.4 → saiph-2.0.6}/saiph/contribution.py +0 -0
  29. {saiph-2.0.4 → saiph-2.0.6}/saiph/contribution_test.py +0 -0
  30. {saiph-2.0.4 → saiph-2.0.6}/saiph/exception.py +0 -0
  31. {saiph-2.0.4 → saiph-2.0.6}/saiph/inverse_transform.py +0 -0
  32. {saiph-2.0.4 → saiph-2.0.6}/saiph/inverse_transform_test.py +0 -0
  33. {saiph-2.0.4 → saiph-2.0.6}/saiph/lib/size.py +0 -0
  34. {saiph-2.0.4 → saiph-2.0.6}/saiph/models.py +0 -0
  35. {saiph-2.0.4 → saiph-2.0.6}/saiph/projection.py +0 -0
  36. {saiph-2.0.4 → saiph-2.0.6}/saiph/projection_test.py +0 -0
  37. {saiph-2.0.4 → saiph-2.0.6/saiph}/py.typed +0 -0
  38. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/__init__.py +0 -0
  39. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd.py +0 -0
  40. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd_sparse.py +0 -0
  41. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd_sparse_test.py +0 -0
  42. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/famd_test.py +0 -0
  43. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/mca.py +0 -0
  44. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/mca_test.py +0 -0
  45. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/pca.py +0 -0
  46. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/pca_test.py +0 -0
  47. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/__init__.py +0 -0
  48. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/common.py +0 -0
  49. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/common_test.py +0 -0
  50. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/svd.py +0 -0
  51. {saiph-2.0.4 → saiph-2.0.6}/saiph/reduction/utils/svd_test.py +0 -0
  52. {saiph-2.0.4 → saiph-2.0.6}/saiph/serializer.py +0 -0
  53. {saiph-2.0.4 → saiph-2.0.6}/saiph/serializer_test.py +0 -0
  54. {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/__init_.py +0 -0
  55. {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/benchmark_test.py +0 -0
  56. {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/profile_cpu.py +0 -0
  57. {saiph-2.0.4 → saiph-2.0.6}/saiph/tests/profile_memory.py +0 -0
  58. {saiph-2.0.4 → saiph-2.0.6}/saiph/visualization.py +0 -0
  59. {saiph-2.0.4 → saiph-2.0.6}/setup.cfg +0 -0
  60. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/breast_cancer_wisconsin.csv +0 -0
  61. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/breast_cancer_wisconsin_supplemental.csv +0 -0
  62. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/iris.csv +0 -0
  63. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/iris_factomineR_contributions.csv +0 -0
  64. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/iris_factomineR_cos2.csv +0 -0
  65. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/wbcd_supplemental_coordinates_famd.csv +0 -0
  66. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/wbcd_supplemental_coordinates_mca.csv +0 -0
  67. {saiph-2.0.4 → saiph-2.0.6}/tests/fixtures/wbcd_supplemental_coordinates_pca.csv +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: saiph
3
- Version: 2.0.4
3
+ Version: 2.0.6
4
4
  Summary: A projection package
5
5
  Author-email: Octopize <help@octopize.io>
6
6
  License: Apache-2.0
@@ -11,7 +11,7 @@ install:
11
11
 
12
12
  # Prepare a new release of saiph
13
13
  prepare-release:
14
- uv run python release.py --bump-type patch
14
+ uv run python release.py
15
15
 
16
16
  # Run the notebook
17
17
  notebook:
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "saiph"
3
3
  # Also modify in saiph/__init__.py
4
- version = "2.0.4"
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(f'{key} = "(\d+)\.(\d+)\.(\d+)"') # noqa W905
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(bump_type: BumpType = typer.Option(BumpType.PATCH)) -> Any:
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
 
@@ -2,7 +2,7 @@ from .inverse_transform import inverse_transform
2
2
  from .projection import fit, fit_transform, stats, transform
3
3
 
4
4
  # Also modify in pyproject.toml
5
- __version__ = "2.0.4"
5
+ __version__ = "2.0.6"
6
6
 
7
7
  __all__ = [
8
8
  "__version__",
@@ -2075,7 +2075,7 @@ wheels = [
2075
2075
 
2076
2076
  [[package]]
2077
2077
  name = "saiph"
2078
- version = "2.0.4"
2078
+ version = "2.0.6"
2079
2079
  source = { editable = "." }
2080
2080
  dependencies = [
2081
2081
  { name = "msgspec" },
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