Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ptex being included in all scies. #124

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## 0.11.2

This release fixes a bug introduced in the 0.11.0 release whereby a `ptex` binary was always
included in each built scie even when the scie did not use `ptex`. This was functionally harmless
but did bloat the size of the resulting scie binary by ~5MB.

## 0.11.1

This release brings two fixes for `science` on Windows:
Expand Down
2 changes: 1 addition & 1 deletion science/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

from packaging.version import Version

__version__ = "0.11.1"
__version__ = "0.11.2"

VERSION = Version(__version__)
2 changes: 2 additions & 0 deletions science/dataclass/deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def _parse_field(
),
),
)
if not data_value and default is None:
return cast(_F, None)
return cast(_F, parse(data_value, dataclass_type, custom_parsers=custom_parsers))

if type_.istype(int):
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.