Skip to content

Commit 2724e35

Browse files
authored
Merge pull request #200 from light-curve/v0.7.x
v0.7.2
2 parents 9165688 + 7bd8615 commit 2724e35

File tree

6 files changed

+52
-36
lines changed

6 files changed

+52
-36
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
source <(cargo llvm-cov show-env --export-prefix)
185185
python -m venv venv
186186
source venv/bin/activate
187-
maturin develop --extras=test
187+
maturin develop --extras=test-no-bench,test
188188
python -m pytest
189189
cargo llvm-cov report --lcov --output-path lcov.info
190190
- name: Upload coverage to Codecov

CHANGELOG.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- Feature transformations via `transoform` constructor keyword. For most of the features it could accept string with a transformation name such as 'arcsinh' or 'clipped_lg', `True` or 'default' for the default transformation, `None` or `False` for no transformation https://github.com/light-curve/light-curve-python/issues/184 https://github.com/light-curve/light-curve-python/pull/188
12+
--
13+
14+
### Changed
15+
16+
--
17+
18+
### Deprecated
19+
20+
--
21+
22+
### Removed
23+
24+
--
25+
26+
### Fixed
27+
28+
--
29+
30+
### Security
31+
32+
--
33+
34+
35+
## [0.7.2] 2023-04-12
36+
37+
### Added
38+
39+
- Feature transformations via `transform` constructor keyword. For most of the features it could accept string with a transformation name such as 'arcsinh' or 'clipped_lg', `True` or 'default' for the default transformation, `None` or `False` for no transformation https://github.com/light-curve/light-curve-python/issues/184 https://github.com/light-curve/light-curve-python/pull/188
1340
- Binary wheels for x86_64 Windows built with no Ceres nor GSL features https://github.com/light-curve/light-curve-python/issues/12 https://github.com/light-curve/light-curve-python/pull/185
1441
- `enum-iterator` crate dependency https://github.com/light-curve/light-curve-python/pull/188
1542
- CI: code coverage with `codecov` https://github.com/light-curve/light-curve-python/pull/197
@@ -28,18 +55,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2855
- `BazinFit` and `VillarFit` constructors will not accept `None` for `mcmc_niter`, `ceres_niter`, and `lmsder_niter` arguments in the future, just do not specify them to use defaults instead. https://github.com/light-curve/light-curve-python/pull/195
2956
- `Periodogram` constructor will not accept `None` for `peaks`, `resolution`, `max_freq_factor`, `nyquist` and `fast` in the future, just do not specify them to use defaults instead. https://github.com/light-curve/light-curve-python/pull/195
3057

31-
### Removed
32-
33-
--
34-
3558
### Fixed
3659

3760
- `Bins` feature had non-optimal lower boundary check for time series length: it checked if it is at least unity for any underlying features. Now it takes underlying feature requirements into account. It was fixed by updating `light-curve-feature` to v0.5.5.
3861

39-
### Security
40-
41-
--
42-
4362

4463
## [0.7.1] 2023-03-17
4564

light-curve/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

light-curve/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "light-curve-python"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
authors = ["Konstantin Malanchev <hombit@gmail.com>", "Anastasia Lavrukhina <lavrukhina.ad@gmail.com>"]
55
description = "Feature extractor from noisy time series"
66
readme = "README.md"

light-curve/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We provide binary wheels via [PyPi](https://pypi.org/project/light-curve/) for n
2727
| **ppc64le** | wheel | not tested (no Rust toolchain) |||
2828

2929
- "wheel": binary wheel is available on pypi.org, local building is not required for the platform, the only pre-requirement is a recent `pip` version. For Linux x86-64 we provide binary wheels built with Intel MKL for better periodogram performance, which is not a default build option. For Windows x86-64 we provide wheel with no Ceres and no GSL support, which is not a default build option.
30-
- "src": the package is confirmed to be built and pass unit tests locally, but testing and package building is not supported by CI. It is required to have the [GNU scientific library (GSL)](https://www.gnu.org/software/gsl/) v2.1+ and the [Rust toolchain](https://rust-lang.org) v1.57+ to install it via `pip install`.
30+
- "src": the package is confirmed to be built and pass unit tests locally, but testing and package building is not supported by CI. It is required to have the [GNU scientific library (GSL)](https://www.gnu.org/software/gsl/) v2.1+ and the [Rust toolchain](https://rust-lang.org) v1.62+ to install it via `pip install`.
3131
- "not tested": building from the source code is not tested, please report us building status via issue/PR/email.
3232

3333
We build aarch64 macOS 12.0+ Python 3.8+ wheels locally and submit them running this command in `light-curve` directory:

light-curve/pyproject.toml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ classifiers = [
2121
]
2222

2323
[project.optional-dependencies]
24+
test-no-bench = [
25+
"pytest",
26+
"markdown-pytest",
27+
"pytest-benchmark", # We need it here because we use benchmark-specific command line options
28+
"pytest-subtests>=0.10",
29+
"numpy",
30+
"scipy",
31+
]
2432
test = [
33+
"light-curve[test-no-bench]",
2534
"feets",
2635
"joblib",
27-
"numpy",
2836
"pandas",
29-
"pytest",
30-
"pytest-benchmark",
31-
"markdown-pytest",
32-
"pytest-subtests",
3337
]
3438
dev = [
3539
"light-curve[test]",
@@ -121,22 +125,6 @@ commands =
121125
"""
122126

123127

124-
# Test
125-
# We skip benchmark tests, because it requires feets and its transitive
126-
# dependencies, which are tricky and slow to compile on marginal platforms.
127-
# For testing we use only platforms for which scipy binary wheels are available
128-
[[tool.cibuildwheel.overrides]]
129-
select = "cp*-manylinux_x86_64 cp*-manylinux_aarch64 cp*-macosx*"
130-
test-command = "pytest {package}/README.md {package}/light_curve/ {package}/tests/ --ignore {package}/tests/test_w_bench.py"
131-
test-requires = [
132-
"pytest",
133-
"pytest-benchmark",
134-
"markdown-pytest",
135-
"pytest-subtests",
136-
"numpy",
137-
"scipy",
138-
]
139-
140128
[tool.cibuildwheel]
141129
# We use our own images which include Rust, GSL and platform-optimised FFTW
142130
# Manylinux CPython
@@ -191,3 +179,12 @@ environment = { "MATURIN_PEP517_ARGS" = "--locked --no-default-features --featur
191179
select = "*linux_x86_64"
192180
# We use system Ceres because it is available as a static library in our build environment
193181
environment = { "PATH" = "$PATH:$HOME/.cargo/bin", "MATURIN_PEP517_ARGS" = "--locked --no-default-features --features ceres-system,fftw-mkl,gsl" }
182+
183+
# Test
184+
# We skip benchmark tests, because it requires feets and its transitive
185+
# dependencies, which are tricky and slow to compile on marginal platforms.
186+
# For testing we use only platforms for which scipy binary wheels are available
187+
[[tool.cibuildwheel.overrides]]
188+
select = "cp*-manylinux_x86_64 cp*-manylinux_aarch64 cp*-macosx*"
189+
test-command = "pytest {package}/README.md {package}/light_curve/ {package}/tests/ --ignore {package}/tests/test_w_bench.py"
190+
test-extras = ["test-no-bench"]

0 commit comments

Comments
 (0)