Skip to content

Commit f830b37

Browse files
authored
Specify BSD license and add license files (#62)
Fixes license specifiers according to https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files This allows automatic license inspection tools like pip-licenses to correctly categorize this package. Also attempts to fix the test pipeline. Closes #55 #58 #63
2 parents ff8bc63 + e3b8bb1 commit f830b37

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: [ubuntu-latest]
25-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
25+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
2626
include:
2727
#- os: macos-latest
2828
# python-version: "3.14"
@@ -39,7 +39,10 @@ jobs:
3939
python-version: ${{ matrix.python-version }}
4040

4141
- name: Install package with test dependencies
42-
run: pip install .[test]
42+
# matplotlib is not a dependency but tests need it
43+
run: |
44+
pip install .[test]
45+
pip install matplotlib
4346
4447
- name: Test installation without nbdime
4548
run: pytest -v

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ keywords = [
3939
"matplotlib",
4040
"python",
4141
]
42-
license = {file = "LICENSE"}
42+
license = "BSD-3-Clause"
43+
license-files = ["LICENSE"]
4344
readme = "README.md"
4445
requires-python = ">=3.9"
4546

0 commit comments

Comments
 (0)