diff --git a/python-tomli.spec b/python-tomli.spec index a7bb6d8..d5248b3 100644 --- a/python-tomli.spec +++ b/python-tomli.spec @@ -7,6 +7,11 @@ License: MIT URL: https://pypi.org/project/tomli/ Source0: https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz +# Upstream tomli uses flit, but we want to use setuptools on RHEL 9. +# This a downstream-only setup.py manually created from pyproject.toml metadata. +# It contains a @@VERSION@@ placeholder. +Source1: tomli-setup.py + BuildArch: noarch BuildRequires: python3-devel @@ -29,6 +34,8 @@ Summary: %{summary} %prep %autosetup -p1 -n tomli-%{version} +sed 's/@@VERSION@@/%{version}/' %{SOURCE1} > setup.py +rm pyproject.toml # force the PEP 517 fallback build backend (setuptools) %generate_buildrequires @@ -52,49 +59,14 @@ Summary: %{summary} %files -n python3-tomli -f %{pyproject_files} %doc README.md %doc CHANGELOG.md -%license LICENSE %changelog -* Fri Oct 07 2022 Maxwell G - 2.0.1-5 -- Remove incorrect python3-dateutil test BuildRequires - -* Fri Jul 22 2022 Fedora Release Engineering - 2.0.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 2.0.1-3 -- Rebuilt for Python 3.11 - -* Mon Jun 13 2022 Python Maint - 2.0.1-2 -- Bootstrap for Python 3.11 - -* Thu Mar 03 2022 Petr Viktorin - 2.0.1-1 -- Version 2.0.1 - - Removed support for text file objects as load input - - First argument of load and loads can no longer be passed by keyword - - Raise an error when dotted keys define values outside the "current table" - - Prepare for inclusion in stdlib - -* Wed Feb 02 2022 Petr Viktorin - 1.2.3-1 -- Update to 1.2.3 - - Allow lower case "t" and "z" in datetimes - -* Fri Jan 21 2022 Fedora Release Engineering - 1.2.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Oct 29 2021 Miro Hrončok - 1.2.2-2 -- Allow a bootstrap build without flit_core - -* Wed Oct 27 2021 Petr Viktorin - 1.2.2-1 -- Update to version 1.2.2 - -* Wed Aug 18 2021 Petr Viktorin - 1.2.1-1 -- Update to version 1.2.1 - - loading text (as opposed to binary) files is deprecated - -* Thu Jul 29 2021 Petr Viktorin - 1.1.0-1 -- Update to version 1.1.0 - - `load` can now take a binary file object - -* Thu Jul 22 2021 Petr Viktorin - 1.0.4-1 -- Initial package +* Wed Mar 08 2023 Miro Hrončok - 2.0.1-5 +- Initial package for RHEL 9 +- Resolves: rhbz#2175213 +- Fedora+EPEL contributions by: + Maxwell G + Michel Alexandre Salim + Miro Hrončok + Petr Viktorin diff --git a/tomli-setup.py b/tomli-setup.py new file mode 100644 index 0000000..5dd3968 --- /dev/null +++ b/tomli-setup.py @@ -0,0 +1,37 @@ +import pathlib +from setuptools import setup + +setup( + name="tomli", + version="@@VERSION@@", + description="A lil' TOML parser", + long_description=pathlib.Path("README.md").read_text(), + long_description_content_type="text/markdown", + packages=["tomli"], + package_dir={"": "src"}, + package_data={"tomli": ["py.typed"]}, + python_requires=">=3.7", + author="Taneli Hukkinen", + author_email="hukkin@users.noreply.github.com", + license="MIT", + classifiers=[ + "License :: OSI Approved :: MIT License", + "Operating System :: MacOS", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "Topic :: Software Development :: Libraries :: Python Modules", + "Typing :: Typed", + ], + keywords=["toml"], + project_urls={ + "Homepage": "https://github.com/hukkin/tomli", + "Changelog": "https://github.com/hukkin/tomli/blob/master/CHANGELOG.md", + }, +)