Skip to content

Commit

Permalink
[issue-407] make rdflib required
Browse files Browse the repository at this point in the history
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
  • Loading branch information
meretp committed Jan 27, 2023
1 parent 6acaebb commit cd0d4bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/install_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
python -m build -nwx .
python -m pip install --upgrade ./dist/*.whl
python -m pip install pytest
python -m pip install rdflib
shell: bash
- name: Run tests
run: pytest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ instead of `bin`.
* PyYAML: https://pypi.org/project/PyYAML/ for handling YAML.
* xmltodict: https://pypi.org/project/xmltodict/ for handling XML.
* click: https://pypi.org/project/click/ for creating the CLI interface.
* rdflib: https://pypi.python.org/pypi/rdflib/ for handling RDF.
* typeguard: https://pypi.org/project/typeguard/ for using typehints.
* uritools: https://pypi.org/project/uritools/ for validation of URIs.

Expand Down
17 changes: 8 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"

[project]
name = "spdx-tools"
authors = [{name = "Ahmed H. Ismail", email = "ahm3d.hisham@gmail.com"}]
authors = [{ name = "Ahmed H. Ismail", email = "ahm3d.hisham@gmail.com" }]
maintainers = [
{name = "Philippe Ombredanne", email = "pombredanne@gmail.com"},
{name = "SPDX group at the Linux Foundation and others"},
{ name = "Philippe Ombredanne", email = "pombredanne@gmail.com" },
{ name = "SPDX group at the Linux Foundation and others" },
]
license = {text = "Apache-2.0"}
license = { text = "Apache-2.0" }
description = "SPDX parser and tools."
readme = "README.md"
classifiers = [
Expand All @@ -22,14 +22,13 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
urls = {Homepage = "https://github.com/spdx/tools-python"}
urls = { Homepage = "https://github.com/spdx/tools-python" }
requires-python = ">=3.7"
dependencies = ["click", "pyyaml","xmltodict", "typeguard", "uritools"]
dependencies = ["click", "pyyaml", "xmltodict", "rdflib", "typeguard", "uritools"]
dynamic = ["version"]

[project.optional-dependencies]
test = ["pytest", "rdflib"]
rdf = ["rdflib"]
test = ["pytest"]

[project.scripts]
pyspdxtools = "spdx.clitools.pyspdxtools:main"
Expand All @@ -42,7 +41,7 @@ include-package-data = true
where = ["src"]

[tool.setuptools_scm]
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v[0-9]*"] # `python3.6` tag falsely matches to the default one, clearly a bug in setuptools_scm
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v[0-9]*"] # `python3.6` tag falsely matches to the default one, clearly a bug in setuptools_scm

[tool.aliases]
release = "clean --all sdist --formats=gztar bdist_wheel"

0 comments on commit cd0d4bc

Please sign in to comment.