You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## BREAKING Changes
- Handling of PEP 639 changed, as the specification changed during
finalization.
- Handling of PEP 639 is always enabled, as Python Packing specification
2.4 [recognizes
it](https://packaging.python.org/en/latest/specifications/license-expression/).
- CLI parameter `environment --PEP-639` was removed.
## Changed
- License texts from files are always Base64-encoded. In the past, we
did best-effort text decoding; this was dropped for interoperability.
This is considered a non-breaking change, as no data was removed, it was
just transformed according to CycloneDX specification.
- License text gathering was streamlined across PEP639 and PEP621.
## Added
- Finalized implementation of PEP 639.
----
- fixes#843
- fixes#915
- fixes#931
----
TODO/ DONE
- [x] implement
- [x] add tests
---------
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: semantic-release <semantic-release@bot.local>
Co-authored-by: semantic-release <semantic-release@bot.local>
Copy file name to clipboardExpand all lines: cyclonedx_py/_internal/environment.py
+16-32Lines changed: 16 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -27,21 +27,18 @@
27
27
fromtextwrapimportdedent
28
28
fromtypingimportTYPE_CHECKING, Any, Optional
29
29
30
+
fromcyclonedx.factory.licenseimportLicenseFactory
30
31
fromcyclonedx.modelimportProperty
31
-
fromcyclonedx.model.componentimport ( # type:ignore[attr-defined] # ComponentEvidence was moved, but is still importable - ignore/wont-fix for backwards compatibility # noqa:E501
fromcyclonedx.model.componentimport ( # type:ignore[attr-defined] # ComponentEvidence was moved, but is still importable - ignore/wont-fix for backwards compatibility # noqa:E501
0 commit comments