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

[PoC] Add Core Metadata API (as a dataclass) #498

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
991f08f
Add implementation of core metadata as a dataclass
abravalheri Jan 16, 2022
db51418
Make Requirement hashable
abravalheri Jan 16, 2022
b421d1d
Add tests for core metadata
abravalheri Jan 16, 2022
598288a
Remove positonal only arguments
abravalheri Jan 16, 2022
e8b51d2
Remove custom mapping class in metadata
abravalheri Jan 18, 2022
800844c
Remove micro-optmisation (cache) from metadata
abravalheri Jan 18, 2022
3aaa73e
Use flags in examples for metadata tests
abravalheri Jan 18, 2022
50c13b7
Improve grammar for comment in metadata
abravalheri Jan 18, 2022
147592b
Improve condition in metadata
abravalheri Jan 18, 2022
3c89525
Remove unused instructions in metadata
abravalheri Jan 18, 2022
0b7442c
Preserve order fields are defined in metadata
abravalheri Jan 18, 2022
7dce2a3
Make email headers don't leak into the metadata
abravalheri Jan 18, 2022
10439f0
Ensure serialized metadata is not empty
abravalheri Jan 18, 2022
dd57033
Rename _read_pkg_info to _parse_pkg_info
abravalheri Jan 18, 2022
991d65f
Use a plain tuple to represent emails in metadata
abravalheri Jan 18, 2022
dda204b
Revert "Make Requirement hashable"
abravalheri Jan 18, 2022
f1625d3
Change metadata tests to not rely on __hash__/__eq__
abravalheri Jan 18, 2022
95638b3
Use inspect.clean doc to unescape description in core metadata
abravalheri Jan 31, 2022
31f1d22
Remove __post_init__
abravalheri Jan 31, 2022
adb8ec1
Extract url parsing in its own method
abravalheri Feb 2, 2022
dd6db44
Fix dynamic validation
abravalheri Feb 2, 2022
f020115
Separate required fields validation
abravalheri Feb 2, 2022
bac39bc
Remove unused _setattr
abravalheri Feb 2, 2022
1ed4123
Remove 'frozen' behaviour from metadata
abravalheri Feb 2, 2022
1ca3573
Unify {to/from}_pkg_info with {to/from}_dist_info_metadata
abravalheri Feb 2, 2022
73eef47
Use type_extensions in TYPE_CHECKING guard
abravalheri Feb 4, 2022
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ _build/
build/
dist/
htmlcov/
tests/downloads
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v0.931
hooks:
- id: mypy
exclude: '^(docs|tasks|tests)|setup\.py'
Expand Down
Loading