Initial package for RHEL 9

This commit is contained in:
Miro Hrončok 2023-03-09 18:00:39 +00:00
parent b3fc390e37
commit 9a5ee63fcd
2 changed files with 52 additions and 43 deletions

View File

@ -7,6 +7,11 @@ License: MIT
URL: https://pypi.org/project/tomli/ URL: https://pypi.org/project/tomli/
Source0: https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz 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 BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
@ -29,6 +34,8 @@ Summary: %{summary}
%prep %prep
%autosetup -p1 -n tomli-%{version} %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 %generate_buildrequires
@ -52,49 +59,14 @@ Summary: %{summary}
%files -n python3-tomli -f %{pyproject_files} %files -n python3-tomli -f %{pyproject_files}
%doc README.md %doc README.md
%doc CHANGELOG.md %doc CHANGELOG.md
%license LICENSE
%changelog %changelog
* Fri Oct 07 2022 Maxwell G <gotmax@e.email> - 2.0.1-5 * Wed Mar 08 2023 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-5
- Remove incorrect python3-dateutil test BuildRequires - Initial package for RHEL 9
- Resolves: rhbz#2175213
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4 - Fedora+EPEL contributions by:
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Maxwell G <gotmax@e.email>
Michel Alexandre Salim <salimma@fedoraproject.org>
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.1-3 Miro Hrončok <miro@hroncok.cz>
- Rebuilt for Python 3.11 Petr Viktorin <pviktori@redhat.com>
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.1-2
- Bootstrap for Python 3.11
* Thu Mar 03 2022 Petr Viktorin <pviktori@redhat.com> - 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 <pviktori@redhat.com> - 1.2.3-1
- Update to 1.2.3
- Allow lower case "t" and "z" in datetimes
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Oct 29 2021 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-2
- Allow a bootstrap build without flit_core
* Wed Oct 27 2021 Petr Viktorin <pviktori@redhat.com> - 1.2.2-1
- Update to version 1.2.2
* Wed Aug 18 2021 Petr Viktorin <pviktori@redhat.com> - 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 <pviktori@redhat.com> - 1.1.0-1
- Update to version 1.1.0
- `load` can now take a binary file object
* Thu Jul 22 2021 Petr Viktorin <pviktori@redhat.com> - 1.0.4-1
- Initial package

37
tomli-setup.py Normal file
View File

@ -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",
},
)