summaryrefslogtreecommitdiff
path: root/wrappers/python
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2024-04-29 14:30:53 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-04-30 11:47:33 +0000
commit94ecdb0ab69ed0fc1ec1c61729d96fe9cdca996a (patch)
tree53fc4e5da5b89041a44169b3bdc52d8671446127 /wrappers/python
parent32b81ae9ec90d8beccc101cf456841615216b793 (diff)
Python: Store metadata in setup.cfg
When building for older distros such as Debian 11 it is problematic when metadata is in pyproject.toml. Let's store the metadata needed for building in setup.cfg, that is supported.
Diffstat (limited to 'wrappers/python')
-rw-r--r--wrappers/python/pyproject.toml21
-rw-r--r--wrappers/python/setup.cfg18
2 files changed, 18 insertions, 21 deletions
diff --git a/wrappers/python/pyproject.toml b/wrappers/python/pyproject.toml
index 1ffefc9..863ce8c 100644
--- a/wrappers/python/pyproject.toml
+++ b/wrappers/python/pyproject.toml
@@ -2,27 +2,6 @@
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
-[project]
-name = "eduvpn_common"
-version = "1.99.2"
-description = "eduvpn-common library"
-authors = [
- {name = "Jeroen Wijenbergh", email = "jeroen.wijenbergh@geant.org"},
-]
-requires-python = ">=3.6"
-readme = "README.md"
-license = {text = "MIT"}
-
-[project.urls]
-Homepage = "https://github.com/eduvpn/eduvpn-common"
-
-[project.optional-dependencies]
-lint = ["ruff" ]
-mypy = [ "mypy" ]
-
-[tool.setuptools.packages.find]
-include = ["eduvpn_common*"]
-
[tool.ruff]
line-length = 120
diff --git a/wrappers/python/setup.cfg b/wrappers/python/setup.cfg
new file mode 100644
index 0000000..ad9755b
--- /dev/null
+++ b/wrappers/python/setup.cfg
@@ -0,0 +1,18 @@
+[metadata]
+name = eduvpn_common
+version = 1.99.2
+author = Jeroen Wijenbergh
+author_email = jeroen.wijenbergh@geant.org
+long_description = README.md
+url = https://github.com/eduvpn/eduvpn-common
+license = MIT
+
+[options]
+packages = eduvpn_common
+
+[options.package_data]
+eduvpn_common = lib/*.so, py.typed
+
+[options.extras_require]
+lint = ruff
+mypy = mypy