diff --git a/0001-modify-the-operator-of-version-required-to-gt.patch b/0001-modify-the-operator-of-version-required-to-gt.patch new file mode 100644 index 0000000..404c6d5 --- /dev/null +++ b/0001-modify-the-operator-of-version-required-to-gt.patch @@ -0,0 +1,34 @@ +From 0d9c9c67d594622394dc730741f59ffda24549d1 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Wed, 21 Jun 2023 09:39:01 +0800 +Subject: [PATCH] modify the operator of version required to gt + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 433de46..e50c713 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -18,7 +18,7 @@ classifiers = [ + "Topic :: Software Development :: Build Tools", + ] + dependencies = [ +- "flit-core~=3.5", ++ "flit-core>=3.5", + "setuptools_scm>=6.4", + "tomli; python_version < '3.11'", + ] +@@ -33,7 +33,7 @@ repository = "https://gitlab.com/WillDaSilva/flit_scm" + + [build-system] + requires = [ +- "flit-core~=3.5", ++ "flit-core>=3.5", + "setuptools_scm>=6.4", + "tomli; python_version < '3.11'", + ] +-- +2.33.0 + diff --git a/flit_scm-1.7.0.tar.gz b/flit_scm-1.7.0.tar.gz new file mode 100644 index 0000000..e52dbc7 Binary files /dev/null and b/flit_scm-1.7.0.tar.gz differ diff --git a/python-flit-scm.spec b/python-flit-scm.spec new file mode 100644 index 0000000..9ce9bf9 --- /dev/null +++ b/python-flit-scm.spec @@ -0,0 +1,56 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name flit-scm +%global source_name flit_scm + +Name: python-%{pypi_name} +Version: 1.7.0 +Release: 1 +Summary: A PEP 518 build backend that uses setuptools_scm and flit_core to build the package. + + +License: MIT +URL: https://gitlab.com/WillDaSilva/flit_scm +Source0: https://files.pythonhosted.org/packages/e2/99/961b062461652435b6ad9042d2ffdd75e327b36936987c2073aa784334d5/flit_scm-1.7.0.tar.gz +Patch1: 0001-modify-the-operator-of-version-required-to-gt.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-flit +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv + +%description +A PEP 518 build backend that uses setuptools_scm and flit_core to build the package. + + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +A PEP 518 build backend that uses setuptools_scm and flit_core to build the package. + + +%prep +%autosetup -p1 -n %{source_name}-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/%{source_name}-*.dist-info/ +%{python3_sitelib}/%{source_name} + +%changelog +* Wed Jun 21 2023 Dongxing Wang - 1.7.0-1 +- Initial package to version 1.7.0 for exceptiongroup import