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

feat!: 9.0.1 #777

Merged
merged 18 commits into from
Feb 26, 2025
Merged

feat!: 9.0.1 #777

merged 18 commits into from
Feb 26, 2025

Conversation

jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Feb 11, 2025

see milestone: https://github.com/CycloneDX/cyclonedx-python-lib/milestone/8


BREAKING Changes

  • Fix: model.vulnerability.VulnerabilityReference's properties are all mandatory (#790 via #792)
  • Refactor: Rename spdx.is_compund_expression -> spdx.is_expression (#779)
  • Behavior: BomRef affects comparison/hashing (#754 & #780)
    This is only a breaking change if you relied on ordering of elements.
  • Behavior: streamline comparison/hashing functions (#755)
    This is only a breaking change if you relied on ordering of elements.
  • Dependency: bump dependency py-serializable >=2 <3, was >=1.1.1 <2 (#775)
    This is only a breaking change if you have other packages depend on that specific version.

as of #754 & #780

as of #779

as of #792

we have different methods of object comparison here and there, some work
on tuples, other on hashes, other on different structures.

this PR streamlines this.

these changes might cause breaking changes for downstream users.

---------

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck added enhancement New feature or request breaking change labels Feb 11, 2025
Copy link

codacy-production bot commented Feb 11, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.12% 85.24% (target: 80.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (740aaf9) 5080 4752 93.54%
Head commit (7d22c37) 5164 (+84) 4837 (+85) 93.67% (+0.12%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#777) 271 231 85.24%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@jkowalleck jkowalleck added this to the 9.0.0 milestone Feb 11, 2025
jkowalleck and others added 4 commits February 11, 2025 13:29
bump to `py-serializable` v2.0.0:
<https://github.com/madpah/serializable/releases/tag/v2.0.0>
This is considered a breaking change, as downstream users might rely on
the same package's previous version.

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
For some this is considered a bug-fix, for others this is a feature - it
is a breaking change anyway since it modifies the order of things.

----

TODO:
- [x] **every** symbol that has a property `bom-ref` MUST utilize it for
dunder methods `hash`,`eq`,`gt`,`lt`,...
- [x] add new test cases from #753
- [x] add new test cases from #540
- [x] add new test cases from #677
- [x] create new tests snapshots (if applicable)

----

> [!important]
> depends on #755

supersedes #678
closes #678

fixes #753
fixes #540
fixes #677

---------

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Co-authored-by: wkoot <3715211+wkoot@users.noreply.github.com>
@jkowalleck jkowalleck marked this pull request as ready for review February 12, 2025 13:05
@jkowalleck jkowalleck requested a review from a team as a code owner February 12, 2025 13:05
@jkowalleck jkowalleck changed the title [WIP] 9.0.0 9.0.0 Feb 12, 2025
@jkowalleck jkowalleck changed the title 9.0.0 feat!: 9.0.0 Feb 12, 2025
semantic-release and others added 6 commits February 12, 2025 13:09
Automatically generated by python-semantic-release

Signed-off-by: semantic-release <semantic-release@bot.local>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
…#779)

fixes #765

---------

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
closes #781

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Automatically generated by python-semantic-release

Signed-off-by: semantic-release <semantic-release@bot.local>
@jkowalleck jkowalleck changed the title feat!: 9.0.0 feat!: 9.0.1 Feb 13, 2025
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
Copy link
Member Author

planend release is early next week

@jkowalleck jkowalleck added bug Something isn't working dependencies labels Feb 25, 2025
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck merged commit e6f91fa into main Feb 26, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment