Skip to content

Commit

Permalink
Release version 0.0.0.dev7
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 13, 2024
1 parent 758cf9c commit 1b1cca1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev6"
version = "0.0.0.dev7"
name = "LicenseMan"
requires-python = ">=3.10"
dependencies = [
"LoggerMan == 0.0.0.dev50",
"PyLinks == 0.0.0.dev34",
"PkgData",
"PySerials == 0.0.0.dev24",
"MDit == 0.0.0.dev21",
"ExceptionMan == 0.0.0.dev21",
"LoggerMan == 0.0.0.dev51",
"PyLinks == 0.0.0.dev35",
"PkgData == 0.0.0.dev5",
"PySerials == 0.0.0.dev25",
"MDit == 0.0.0.dev22",
"ExceptionMan == 0.0.0.dev22",
"platformdirs >= 4.3, < 5",
]
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LoggerMan == 0.0.0.dev50
PyLinks == 0.0.0.dev34
PkgData
PySerials == 0.0.0.dev24
MDit == 0.0.0.dev21
ExceptionMan == 0.0.0.dev21
LoggerMan == 0.0.0.dev51
PyLinks == 0.0.0.dev35
PkgData == 0.0.0.dev5
PySerials == 0.0.0.dev25
MDit == 0.0.0.dev22
ExceptionMan == 0.0.0.dev22
platformdirs >= 4.3, < 5
2 changes: 1 addition & 1 deletion src/licenseman/spdx/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,5 @@ def _xml_str(element: _ElementTree.Element):
return _ElementTree.tostring(
optional_copy,
encoding='unicode',
xml_declaration=False,
xml_declaration=True,
)
2 changes: 1 addition & 1 deletion src/licenseman/spdx/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def exception_ids(expression: str) -> tuple[list[str], list[str]]:

def _get_ids(expression: str, exception: bool):
list_ = _spdx._get_global_exception_list() if exception else _spdx._get_global_license_list()
ids = list_.ids
ids = sorted(list_.ids, key=len, reverse=True) # Sort by length to match longest IDs first, e.g. 'GPL-3.0-only' before 'GPL-3.0'
registered = _re.findall(
rf"({'|'.join(_re.escape(exception_id) for exception_id in ids)})",
expression
Expand Down

0 comments on commit 1b1cca1

Please sign in to comment.