-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from trungdong/dev
Using pyproject.toml
- Loading branch information
Showing
12 changed files
with
107 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[bumpversion] | ||
current_version = 2.0.1 | ||
commit = True | ||
tag = True | ||
tag_name = {new_version} | ||
|
||
[bumpversion:file:src/prov/__init__.py] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
configuration: docs/conf.py | ||
|
||
formats: all | ||
|
||
python: | ||
version: 3 | ||
install: | ||
- requirements: requirements.txt | ||
install: | ||
- path: . | ||
extra_requirements: | ||
- xml | ||
- rdf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,77 @@ | ||
[project] | ||
name = "prov" | ||
dynamic = ["version"] | ||
description = "A library for W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)" | ||
readme = "README.rst" | ||
authors = [ | ||
{ name = "Trung Dong Huynh", email = "[email protected]" } | ||
] | ||
keywords = ["provenance", "graph", "model", "PROV", "PROV-DM", "PROV-JSON", "W3C", "PROV-XML", "PROV-N", "PROV-O", "RDF"] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Topic :: Security", | ||
"Topic :: System :: Logging", | ||
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"networkx>=2.0", | ||
# Supporting graphic outputs (e.g. PNG, SVG, PDF) - a local graphviz is required | ||
"pydot>=1.2.0", | ||
"python-dateutil>=2.2", # TODO: is this really needed? | ||
] | ||
|
||
[project.optional-dependencies] | ||
rdf = [ | ||
"rdflib>=4.2.1,<7", | ||
] | ||
xml = [ | ||
"lxml>=3.3.5", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/trungdong/prov" | ||
Documentation = "https://prov.readthedocs.io" | ||
Repository = "https://github.com/trungdong/prov" | ||
Issues = "https://github.com/trungdong/prov/issues" | ||
Changelog = "https://prov.readthedocs.io/en/latest/history.html" | ||
|
||
[build-system] | ||
requires = ["setuptools>=40.8.0", "wheel"] # PEP 508 specifications. | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "prov.__version__"} | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"black>=24.10.0", | ||
"bumpversion>=0.6.0", | ||
"coverage>=7.6.10", | ||
"flake8>=7.1.1", | ||
"setuptools>=75.8.0", | ||
"sphinx>=8.1.3", | ||
"tox>=4.23.2", | ||
"wheel>=0.45.1", | ||
] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py36'] | ||
target-version = ["py39", "py310", "py311", "py312"] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
( | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
[bumpversion] | ||
current_version = 2.0.1 | ||
commit = True | ||
tag = True | ||
tag_name = {new_version} | ||
|
||
[bumpversion:file:setup.py] | ||
|
||
[bumpversion:file:src/prov/__init__.py] | ||
|
||
[metadata] | ||
description-file = README.rst | ||
|
||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203, W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,5 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
from setuptools import setup, find_packages | ||
import pathlib | ||
|
||
here = pathlib.Path(__file__).parent.resolve() | ||
|
||
long_description = (here / "README.rst").read_text(encoding="utf-8") | ||
|
||
requirements = ["python-dateutil>=2.2", "networkx>=2.0", "lxml>=3.3.5", "rdflib>=4.2.1,<7"] | ||
|
||
test_requirements = ["pydot>=1.2.0"] | ||
from setuptools import setup | ||
|
||
setup( | ||
name="prov", | ||
version="2.0.1", | ||
description="A library for W3C Provenance Data Model supporting PROV-JSON, " | ||
"PROV-XML and PROV-O (RDF)", | ||
long_description=long_description, | ||
author="Trung Dong Huynh", | ||
author_email="[email protected]", | ||
url="https://github.com/trungdong/prov", | ||
project_urls={ | ||
"Bug Reports": "https://github.com/trungdong/prov/issues", | ||
"Source": "https://github.com/trungdong/prov", | ||
}, | ||
packages=find_packages(where="src"), | ||
package_dir={"": "src"}, | ||
python_requires=">=3.6, <4", | ||
scripts=["scripts/prov-convert", "scripts/prov-compare"], | ||
include_package_data=True, | ||
install_requires=requirements, | ||
extras_require={ | ||
"dot": ["pydot>=1.2.0"], | ||
}, | ||
license="MIT", | ||
zip_safe=False, | ||
keywords=[ | ||
"provenance", | ||
"graph", | ||
"model", | ||
"PROV", | ||
"PROV-DM", | ||
"PROV-JSON", | ||
"W3C", | ||
"PROV-XML", | ||
"PROV-N", | ||
"PROV-O", | ||
"RDF", | ||
], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Topic :: Security", | ||
"Topic :: System :: Logging", | ||
], | ||
test_suite="prov.tests", | ||
tests_require=test_requirements, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters