Skip to content

Commit 95f7cd2

Browse files
committed
fix: switch to dynamic license setting on build
1 parent 0f028f1 commit 95f7cd2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
[build-system]
22
requires = [
33
"setuptools>=67",
4-
"wheel",
54
]
65
build-backend = "setuptools.build_meta"
76

87
[project]
98
name = "OctoPrint-PiSupport"
109
version = "2023.10.10"
10+
dynamic = ["license"]
1111
description = "Provides additional information about your Pi in the UI"
1212
authors = [
1313
{ name = "Gina Häußge", email = "[email protected]" },
1414
]
15-
license = {text = "AGPL-3.0-or-later"}
16-
license-files = ["LICENSE"]
1715
requires-python = ">=3.7,<4"
1816
dependencies = []
1917

@@ -38,9 +36,9 @@ content-type = "markdown"
3836

3937
[tool.setuptools]
4038
include-package-data = true
41-
packages = [
42-
"octoprint_pi_support",
43-
]
39+
40+
[tool.setuptools.packages.find]
41+
include = ["octoprint_pi_support", "octoprint_pi_support.*"]
4442

4543
[tool.ruff]
4644
exclude = [

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import setuptools
2+
3+
# we define the license string like this to be backwards compatible to setuptools<77
4+
setuptools.setup(license="AGPL-3.0-or-later")

0 commit comments

Comments
 (0)