From 94ecdb0ab69ed0fc1ec1c61729d96fe9cdca996a Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Mon, 29 Apr 2024 14:30:53 +0200 Subject: 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. --- wrappers/python/pyproject.toml | 21 --------------------- wrappers/python/setup.cfg | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 21 deletions(-) create mode 100644 wrappers/python/setup.cfg (limited to 'wrappers/python') 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 -- cgit v1.2.3