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

Maintenance PR #397

Merged
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-message-body-max-length: 72
commit-message-body-min-length: 1
commit-message-subject-max-length: 50
commit-message-subject-max-length: 60
commit-message-subject-min-length: 10
re-commit-message-subject: ".+: .+"
re-pull-request-title: ".*"
Expand All @@ -27,7 +27,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion flict/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ def suggest_outbound_candidate(self):

allowed_licenses = [x for x in licenses if self.arbiter.license_allowed(x)]

lic_expr_list = [license_expression] if isinstance(license_expression, str) else license_expression

outbounds = []
try:
for outbound in allowed_licenses:
compats = self.arbiter.inbounds_outbound_check(outbound, [license_expression])
compats = self.arbiter.inbounds_outbound_check(outbound, lic_expr_list)
compat = compats['compatibility'] == 'Yes'
if compat:
outbounds.append(outbound)
Expand Down
8 changes: 4 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bump2version ~= 1.0
dataclasses ~= 0.6
dlint ~= 0.15
dlint ~= 0.16
flake8 ~= 7.1
flake8-2020 ~= 1.8
flake8-bandit ~= 4.1
Expand All @@ -9,15 +9,14 @@ flake8-bugbear ~= 24.8
flake8-builtins ~= 2.5
flake8-coding ~= 1.3
flake8-commas ~= 4.0
flake8-comprehensions ~= 3.15
flake8-comprehensions ~= 3.16
flake8-debugger ~= 4.1
flake8-docstrings ~= 1.7
flake8-eradicate ~= 1.5
flake8-executable ~= 2.1
flake8-fixme ~= 1.1
flake8-functions == 0.0.8
flake8-isort == 6.1.1
flake8-logging-format == 1.0.0
flake8-mutable ~= 1.2
flake8-pep3101 ~= 2.1
flake8-print ~= 5.0
Expand All @@ -27,13 +26,14 @@ flake8-string-format ~= 0.3
flake8-variables-names == 0.0.6
pytest ~= 8.3
pytest-bandit ~= 0.6
pytest-cov ~= 5.0
pytest-cov ~= 6.0
pytest-forked ~= 1.6
pytest-icdiff ~= 0.9
pytest-random-order ~= 1.1
pytest-socket ~= 0.7
pytest-sugar ~= 1.0
pytest-tldr ~= 0.2
pytest-xdist ~= 3.6
twine ~= 5.1
jsonschema ~= 4.23
reuse ~= 4.0
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
license-expression ~= 30.3
osadl-matrix==2024.5.7.50556
license-expression ~= 30.4
osadl-matrix==2024.5.22.10535
foss-flame ~= 0.20
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ addopts =
--no-header
--quiet
--random-order --random-order-bucket=global
--showlocals
--showlocals
-n auto
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Quality Assurance",
],
Expand Down
3 changes: 0 additions & 3 deletions tests/test_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ def _get_problems(inbound, outbound):
def test_problems_no():
assert len(_get_problems('MIT', 'GPL-2.0-only')) == 0

def test_problems_uknonwn():
assert len(_get_problems('HPND', 'GPL-2.0-only')) == 1

def test_problems_undefined():
assert len(_get_problems('NONESUCH', 'GPL-2.0-only')) == 1

Expand Down
2 changes: 1 addition & 1 deletion tests/test_simplified.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_simplify():
_test_expression(['MIT and MIT or BSD3'], '{"original": "MIT and MIT or BSD3", "simplified": "BSD-3-Clause OR MIT"}')
_test_expression(['GPL-2.0-only'], '{"original": "GPL-2.0-only", "simplified": "GPL-2.0-only"}')
_test_expression(['GPL-2.0-or-later'], '{"original": "GPL-2.0-or-later", "simplified": "GPL-2.0-only OR GPL-3.0-only"}')
_test_expression(['GPL-2.0-or-later and MIT'], '{"original": "GPL-2.0-or-later and MIT", "simplified": "MIT AND (GPL-2.0-only OR GPL-3.0-only)"}')
_test_expression(['GPL-2.0-or-later and MIT'], '{"original": "GPL-2.0-or-later and MIT", "simplified": "(GPL-2.0-only AND MIT) OR (GPL-3.0-only AND MIT)"}')
_test_expression(['MIT and GPL-2.0-only WITH Classpath-exception-2.0 and MIT'], '{"original": "MIT and GPL-2.0-only WITH Classpath-exception-2.0 and MIT", "simplified": "GPL-2.0-only WITH Classpath-exception-2.0 AND MIT"}')