Skip to content

Commit

Permalink
chore!: version bump (fixes #1271 #1267 1233)
Browse files Browse the repository at this point in the history
BREAKING_CHANGE: This changeset has not breaking changes to the `indexed_enums` public API.
However, as a conservative measure concerning data preparation for large
population simulations, it has been marked as a major release.

Fixes #1271
Fixes #1267
Fixes #1233
  • Loading branch information
bonjourmauko committed Oct 14, 2024
1 parent ef85e1f commit a8b64ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .conda/openfisca-country-template/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ requirements:
run:
- numpy
- python
- openfisca-core >=42,<43
- openfisca-core >=43,<44

tests:
- python:
Expand Down
2 changes: 1 addition & 1 deletion .conda/openfisca-extension-template/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ requirements:
run:
- numpy
- python
- openfisca-country-template >=7,<8
- openfisca-country-template >=7.1.5,<8

tests:
- python:
Expand Down
27 changes: 9 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
# Changelog

### 42.1.1 [#1224](https://github.com/openfisca/openfisca-core/pull/1224)
# 43.0.0 [#1224](https://github.com/openfisca/openfisca-core/pull/1224)

#### Technical changes

- Add documentation to the `indexed_enums` module
- Fix type definitions in the enums module

## 42.1.0 [#1273](https://github.com/openfisca/openfisca-core/pull/1273)
- Fix doctests
- Fix bug in `Enum.encode` when passing a scalar
- Fix bug in `Enum.encode` when encoding values not present in the enum

#### New features

- Introduce `indexed_enums.EnumType`
- Allows for actually fancy indexing `indexed_enums.Enum`

#### Technical changes
#### Note

- Fix doctests
- Now `pytest openfisca_core/indexed_enums` runs without errors
- Fix bug in `Enum.encode` when passing a scalar
- Still raises `TypeError` but with an explanation of why it fails
- Fix bug in `Enum.encode` when encoding values not present in the enum
- When encoding values not present in an enum, `Enum.encode` always encoded
the first item of the enum
- Now, it correctly encodes only the values requested that exist in the enum
This changeset has not breaking changes to the `indexed_enums` public API.
However, as a conservative measure concerning data preparation for large
population simulations, it has been marked as a major release.

##### Before

Expand Down Expand Up @@ -53,12 +50,6 @@ TestEnum.encode([0,1,2,5])
# EnumArray([<TestEnum.ONE: 'one'> <TestEnum.TWO: 'two'>])
```

### 42.0.8 [#1272](https://github.com/openfisca/openfisca-core/pull/1272)

#### Documentation

- Add documentation to the `indexed_enums` module

### 42.0.7 [#1264](https://github.com/openfisca/openfisca-core/pull/1264)

#### Technical changes
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"StrEnum >=0.4.8, <0.5.0", # 3.11.x backport
"dpath >=2.1.4, <3.0",
"numexpr >=2.10.1, <3.0",
"numpy >=1.24.3, <2.0",
"numpy >=1.24.2, <2.0",
"pendulum >=3.0.0, <4.0.0",
"psutil >=5.9.4, <6.0",
"pytest >=8.3.3, <9.0",
Expand Down Expand Up @@ -69,7 +69,7 @@

setup(
name="OpenFisca-Core",
version="42.1.1",
version="43.0.0",
author="OpenFisca Team",
author_email="[email protected]",
classifiers=[
Expand Down

0 comments on commit a8b64ee

Please sign in to comment.