!6 Update package to version 6.3.2
From: @jxy_git Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
f2d32bd65e
@ -1,13 +1,13 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-rdflib
|
Name: python-rdflib
|
||||||
Version: 6.3.0
|
Version: 6.3.2
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
|
Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
|
||||||
License: BSD-3-clause
|
License: BSD-3-clause
|
||||||
URL: https://github.com/RDFLib/rdflib
|
URL: https://github.com/RDFLib/rdflib
|
||||||
Source0: https://files.pythonhosted.org/packages/b9/ca/1eefdac73ef3c33b108df79fcfe86cd6afc0afaf50d48c94991964f5a6b9/rdflib-6.3.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/c8/28/4d1f27c5d73f58e567ca1a14a4eab7d7978a09c4e117687f9f6c216d3366/rdflib-6.3.2.tar.gz
|
||||||
Source1: setup.py
|
Source1: setup.py
|
||||||
|
Source2: setup.cfg
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-isodate
|
Requires: python3-isodate
|
||||||
@ -39,7 +39,7 @@ RDF, a simple yet powerful language for representing information.
|
|||||||
|
|
||||||
%package -n python3-rdflib
|
%package -n python3-rdflib
|
||||||
Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
|
Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
|
||||||
Provides: python-rdflib
|
Provides: python-rdflib = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
%description -n python3-rdflib
|
%description -n python3-rdflib
|
||||||
@ -54,7 +54,7 @@ Development documents and examples for rdflib
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n rdflib-%{version}
|
%autosetup -n rdflib-%{version}
|
||||||
cp %{SOURCE1} ./
|
cp %{SOURCE1} %{SOURCE2} ./
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -94,6 +94,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 11 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 6.3.2-1
|
||||||
|
- Update package to version 6.3.2
|
||||||
|
|
||||||
* Fri Apr 7 2023 wubijie <wubijie@kylinos.cn> - 6.3.0-1
|
* Fri Apr 7 2023 wubijie <wubijie@kylinos.cn> - 6.3.0-1
|
||||||
- Update package to version 6.3.0
|
- Update package to version 6.3.0
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
rdflib-6.3.2.tar.gz
Normal file
BIN
rdflib-6.3.2.tar.gz
Normal file
Binary file not shown.
87
setup.cfg
Normal file
87
setup.cfg
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
[options.package_data]
|
||||||
|
rdflib = py.typed
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
exclude =
|
||||||
|
.git,
|
||||||
|
__pycache__,
|
||||||
|
.venv,
|
||||||
|
.tox,
|
||||||
|
var,
|
||||||
|
.mypy_cache,
|
||||||
|
test/data/suites/, # does not contain python
|
||||||
|
test/jsonld/1.1/, # does not contain python
|
||||||
|
test/jsonld/test-suite/, # does not contain python
|
||||||
|
test/data/variants/, # does not contain python
|
||||||
|
test/data/translate_algebra/, # does not contain python
|
||||||
|
docs/rdf_terms.rst, # This file is causing an error on GitHub actions
|
||||||
|
extend-ignore =
|
||||||
|
E501, # line too long
|
||||||
|
E203, # Whitespace before ':'
|
||||||
|
W503, # Line break occurred before a binary operator
|
||||||
|
|
||||||
|
[coverage:run]
|
||||||
|
branch = True
|
||||||
|
source = rdflib
|
||||||
|
omit =
|
||||||
|
*/_type_checking.py
|
||||||
|
|
||||||
|
[coverage:report]
|
||||||
|
exclude_lines =
|
||||||
|
pragma: no cover
|
||||||
|
|
||||||
|
^ +if (False|TYPE_CHECKING):
|
||||||
|
^ +\.\.\.$
|
||||||
|
|
||||||
|
if 0:
|
||||||
|
if __name__ == .__main__.:
|
||||||
|
if __name__==.__main__.:
|
||||||
|
|
||||||
|
[mypy]
|
||||||
|
files = rdflib,test
|
||||||
|
python_version = 3.7
|
||||||
|
warn_unused_configs = True
|
||||||
|
ignore_missing_imports = True
|
||||||
|
disallow_subclassing_any = False
|
||||||
|
warn_unreachable = True
|
||||||
|
warn_unused_ignores = True
|
||||||
|
exclude = (?x)(
|
||||||
|
^.*test/plugins/.*/setup.py$
|
||||||
|
)
|
||||||
|
|
||||||
|
[mypy-pyparsing.*]
|
||||||
|
follow_imports = skip
|
||||||
|
|
||||||
|
[isort]
|
||||||
|
profile = black
|
||||||
|
py_version = 37
|
||||||
|
line_length = 88
|
||||||
|
src_paths = rdflib,test
|
||||||
|
supported_extensions =
|
||||||
|
pyw
|
||||||
|
pyi
|
||||||
|
py
|
||||||
|
skip =
|
||||||
|
.eggs, # exclude a few common directories in the
|
||||||
|
.git, # root of the project
|
||||||
|
.hg,
|
||||||
|
.mypy_cache,
|
||||||
|
.pytest_cache,
|
||||||
|
.tox,
|
||||||
|
.venv,
|
||||||
|
.github,
|
||||||
|
_build,
|
||||||
|
htmlcov,
|
||||||
|
benchmarks,
|
||||||
|
examples, # No need to Black examples
|
||||||
|
test_reports,
|
||||||
|
rdflib.egg-info,
|
||||||
|
buck-out,
|
||||||
|
build,
|
||||||
|
dist,
|
||||||
|
venv,
|
||||||
|
|
||||||
|
[egg_info]
|
||||||
|
tag_build =
|
||||||
|
tag_date = 0
|
||||||
|
|
||||||
110
setup.py
110
setup.py
@ -1,9 +1,109 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from setuptools import setup
|
import codecs
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
|
||||||
if __name__ == "__main__":
|
from setuptools import find_packages, setup
|
||||||
setup(
|
|
||||||
name = "rdflib", # name
|
kwargs = {}
|
||||||
version = "6.3.0", # version
|
kwargs["install_requires"] = [
|
||||||
|
"isodate",
|
||||||
|
"pyparsing",
|
||||||
|
"setuptools",
|
||||||
|
"importlib-metadata; python_version < '3.8.0'",
|
||||||
|
]
|
||||||
|
kwargs["tests_require"] = [
|
||||||
|
"html5lib",
|
||||||
|
"pytest",
|
||||||
|
"pytest-cov",
|
||||||
|
]
|
||||||
|
kwargs["extras_require"] = {
|
||||||
|
"html": ["html5lib"],
|
||||||
|
"tests": kwargs["tests_require"],
|
||||||
|
"docs": [
|
||||||
|
"myst-parser",
|
||||||
|
"sphinx < 6",
|
||||||
|
"sphinxcontrib-apidoc",
|
||||||
|
"sphinxcontrib-kroki",
|
||||||
|
"sphinx-autodoc-typehints",
|
||||||
|
],
|
||||||
|
"berkeleydb": ["berkeleydb"],
|
||||||
|
"networkx": ["networkx"],
|
||||||
|
"dev": [
|
||||||
|
"black==22.6.0",
|
||||||
|
"flake8",
|
||||||
|
"flakeheaven; python_version >= '3.8.0'",
|
||||||
|
"isort",
|
||||||
|
"mypy",
|
||||||
|
"pep8-naming",
|
||||||
|
"types-setuptools",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def find_version(filename):
|
||||||
|
_version_re = re.compile(r'__version__ = "(.*)"')
|
||||||
|
for line in open(filename):
|
||||||
|
version_match = _version_re.match(line)
|
||||||
|
if version_match:
|
||||||
|
return version_match.group(1)
|
||||||
|
|
||||||
|
|
||||||
|
def open_local(paths, mode="r", encoding="utf8"):
|
||||||
|
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), *paths)
|
||||||
|
return codecs.open(path, mode, encoding)
|
||||||
|
|
||||||
|
|
||||||
|
with open_local(["README.md"], encoding="utf-8") as readme:
|
||||||
|
long_description = readme.read()
|
||||||
|
|
||||||
|
version = find_version("rdflib/__init__.py")
|
||||||
|
|
||||||
|
packages = find_packages(exclude=("examples*", "test*"))
|
||||||
|
|
||||||
|
if os.environ.get("READTHEDOCS", None):
|
||||||
|
# if building docs for RTD
|
||||||
|
# install examples, to get docstrings
|
||||||
|
packages.append("examples")
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="rdflib",
|
||||||
|
version=version,
|
||||||
|
description="RDFLib is a Python library for working with RDF, a "
|
||||||
|
"simple yet powerful language for representing information.",
|
||||||
|
author="Daniel 'eikeon' Krech",
|
||||||
|
author_email="eikeon@eikeon.com",
|
||||||
|
maintainer="RDFLib Team",
|
||||||
|
maintainer_email="rdflib-dev@googlegroups.com",
|
||||||
|
url="https://github.com/RDFLib/rdflib",
|
||||||
|
license="bsd-3-clause",
|
||||||
|
platforms=["any"],
|
||||||
|
python_requires=">=3.7",
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.7",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"License :: OSI Approved :: BSD License",
|
||||||
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Natural Language :: English",
|
||||||
|
],
|
||||||
|
long_description=long_description,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
|
packages=packages,
|
||||||
|
entry_points={
|
||||||
|
"console_scripts": [
|
||||||
|
"rdfpipe = rdflib.tools.rdfpipe:main",
|
||||||
|
"csv2rdf = rdflib.tools.csv2rdf:main",
|
||||||
|
"rdf2dot = rdflib.tools.rdf2dot:main",
|
||||||
|
"rdfs2dot = rdflib.tools.rdfs2dot:main",
|
||||||
|
"rdfgraphisomorphism = rdflib.tools.graphisomorphism:main",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user