diff --git a/python-rdflib.spec b/python-rdflib.spec index bb7a17f9644d8b4e9d81612747e5ff29c8e06e54..768a96056a2e61337c937558e4f1da32a64391d0 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -1,13 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-rdflib -Version: 6.3.2 +Version: 7.0.0 Release: 1 Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information. License: BSD-3-clause URL: https://github.com/RDFLib/rdflib -Source0: https://files.pythonhosted.org/packages/c8/28/4d1f27c5d73f58e567ca1a14a4eab7d7978a09c4e117687f9f6c216d3366/rdflib-6.3.2.tar.gz -Source1: setup.py -Source2: setup.cfg +Source0: %{pypi_source rdflib} BuildArch: noarch Requires: python3-isodate @@ -42,6 +40,8 @@ Summary: RDFLib is a Python library for working with RDF, a simple yet powerful Provides: python-rdflib = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-poetry-core %description -n python3-rdflib RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information. @@ -54,13 +54,12 @@ Development documents and examples for rdflib %prep %autosetup -n rdflib-%{version} -cp %{SOURCE1} %{SOURCE2} ./ %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -89,11 +88,18 @@ mv %{buildroot}/doclist.lst . %files -n python3-rdflib -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/rdflib/__pycache__/*.pyc +%{python3_sitelib}/rdflib/*/__pycache__/*.pyc +%{python3_sitelib}/rdflib/plugins/*/__pycache__/*.pyc +%{python3_sitelib}/rdflib/plugins/*/*/__pycache__/*.pyc %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Sep 05 2024 Ge Wang - 7.0.0-1 +- Update package to version 7.0.0 + * Tue Apr 11 2023 jiangxinyu - 6.3.2-1 - Update package to version 6.3.2 diff --git a/rdflib-6.3.2.tar.gz b/rdflib-7.0.0.tar.gz similarity index 40% rename from rdflib-6.3.2.tar.gz rename to rdflib-7.0.0.tar.gz index 632773d7d1e23812cfd0ce58642f88f62a10b047..9730cdd727dfb6065547f7d663693f260181b38d 100644 Binary files a/rdflib-6.3.2.tar.gz and b/rdflib-7.0.0.tar.gz differ diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 8d599339d4e86d50e6cae759750525830d82876c..0000000000000000000000000000000000000000 --- a/setup.cfg +++ /dev/null @@ -1,87 +0,0 @@ -[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 - diff --git a/setup.py b/setup.py deleted file mode 100644 index 45eac275ae7552b8eca3b412236a62627b4a5214..0000000000000000000000000000000000000000 --- a/setup.py +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env python - -import codecs -import os -import re - -from setuptools import find_packages, setup - -kwargs = {} -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, -)