Skip to content

Commit fa1a804

Browse files
committed
Facilitate packaging
1 parent 28956c2 commit fa1a804

File tree

5 files changed

+33
-4
lines changed

5 files changed

+33
-4
lines changed

.github/requirements-old.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ attrs==25.3.0
33
cattrs==25.1.1
44
matplotlib==3.10.3
55
numpy==2.3.1
6-
path==17.1.1
76
scipy==1.16.0

MANIFEST.in

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Keep essentials
2+
include LICENSE
3+
include README.md
4+
include pyproject.toml
5+
6+
# Ensure tests are included, useful for conda package
7+
graft tests
8+
9+
# Exclude non-essentials
10+
prune docs
11+
prune .github
12+
prune .pre-commit-config.yaml
13+
prune .markdownlint-cli2.jsonc
14+
prune .gitignore
15+
prune .editorconfig
16+
prune tools
17+
prune tests/outputs
18+
global-exclude *.py[cod] __pycache__ *.so

docs/source/development/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ and this project adheres to [Effort-based Versioning](https://jacobtomlinson.dev
1111

1212
(no changes yet)
1313

14+
(v1.1.1)=
15+
## [1.1.1] - 2025-11-18
16+
17+
Smaller source package (10x size reduction) and dependency simplification.
18+
19+
### Changed
20+
21+
- PyPI Package size reduction by a factor 10.
22+
Only essential files are now included in the package.
23+
- Remove path dependency to facilitate packaging and distribution.
24+
1425
(v1.1.0)=
1526
## [1.1.0] - 2025-11-10
1627

@@ -63,3 +74,5 @@ in the documentation and README files.
6374
[Unreleased]: https://github.com/molmod/stacie
6475
[1.0.0]: https://github.com/molmod/stacie/releases/tag/v1.0.0
6576
[1.0.0rc1]: https://github.com/molmod/stacie/releases/tag/v1.0.0rc1
77+
[1.1.0]: https://github.com/molmod/stacie/releases/tag/v1.1.0
78+
[1.1.1]: https://github.com/molmod/stacie/releases/tag/v1.1.1

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ dependencies = [
3333
"cattrs>=25.1.1",
3434
"matplotlib>=3.10.3",
3535
"numpy>=2.3.1",
36-
"path>=17.1.1",
3736
"scipy>=1.16.0",
3837
]
3938
dynamic = ["version"]

tests/test_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"""
2525

2626
from collections.abc import Callable
27+
from pathlib import Path
2728

2829
import numpy as np
2930
import pytest
30-
from path import Path
3131

3232
from stacie.cutoff import CV2LCriterion
3333
from stacie.estimate import Result, estimate_acint, summarize_results
@@ -53,7 +53,7 @@
5353
def output_test_result(prefix: str, res: Result | list[Result]):
5454
"""Dump results with STACIE's standard output formats."""
5555
dn_out = Path("tests/outputs")
56-
dn_out.makedirs_p()
56+
dn_out.mkdir(exist_ok=True)
5757
plot_results(dn_out / f"{prefix}.pdf", res)
5858
with open(dn_out / f"{prefix}.txt", "w") as fh:
5959
fh.write(summarize_results(res))

0 commit comments

Comments
 (0)