Skip to content

Commit e6daf69

Browse files
KOLANICHnicoweidner
authored andcommitted
Moved the metadata into PEP 621-compliant pyproject.toml.
Signed-off-by: KOLANICH <KOLANICH@users.noreply.github.com>
1 parent 47105e9 commit e6daf69

File tree

2 files changed

+44
-47
lines changed

2 files changed

+44
-47
lines changed

pyproject.toml

+44-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,49 @@
11
[build-system]
2-
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
2+
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "spdx-tools"
7+
authors = [{name = "Ahmed H. Ismail", email = "ahm3d.hisham@gmail.com"}]
8+
maintainers = [
9+
{name = "Philippe Ombredanne", email = "pombredanne@gmail.com"},
10+
{name = "SPDX group at the Linux Foundation and others"},
11+
]
12+
license = {text = "Apache-2.0"}
13+
description = "SPDX parser and tools."
14+
readme = "README.md"
15+
classifiers = [
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: System Administrators",
18+
"License :: OSI Approved :: Apache Software License",
19+
"Programming Language :: Python :: 3.6",
20+
"Programming Language :: Python :: 3.7",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
]
26+
urls = {Homepage = "https://github.com/spdx/tools-python"}
27+
requires-python = ">=3.6"
28+
dependencies = ["ply", "rdflib", "click", "pyyaml", "xmltodict"]
29+
dynamic = ["version"]
30+
31+
[project.optional-dependencies]
32+
test = ["pytest"]
33+
34+
[project.scripts]
35+
pyspdxtools_convertor = "spdx.cli_tools.convertor:main"
36+
pyspdxtools_parser = "spdx.cli_tools.parser:main"
37+
38+
[tool.setuptools]
39+
zip-safe = false # because of the uses of __file__: https://github.com/spdx/tools-python/issues/257
40+
include-package-data = true
41+
42+
[tool.setuptools.packages.find]
43+
include = ["spdx", "spdx.*"]
44+
545
[tool.setuptools_scm]
646
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v[0-9]*"] # `python3.6` tag falsely matches to the default one, clrearly a bug in setuptools_scm
47+
48+
[tool.aliases]
49+
release = "clean --all sdist --formats=gztar bdist_wheel"

setup.cfg

-46
This file was deleted.

0 commit comments

Comments
 (0)