diff --git a/1.0.tar.gz b/1.0.tar.gz deleted file mode 100644 index 544bce82d9b8eee11f41834c5ce1959582f6a6c7..0000000000000000000000000000000000000000 Binary files a/1.0.tar.gz and /dev/null differ diff --git a/3.2.0.tar.gz b/3.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..90b647d8890e1fbb0c41b7facfa4c3ccc59357fa Binary files /dev/null and b/3.2.0.tar.gz differ diff --git a/python-flit.spec b/python-flit.spec index f4c5d636a6c8a7728ac9169686429ff00b0fc409..3ca6a11b906fa5f531e85a87779ea8324ca67cf3 100644 --- a/python-flit.spec +++ b/python-flit.spec @@ -1,13 +1,13 @@ Name: python-flit -Version: 1.0 -Release: 6 +Version: 3.2.0 +Release: 1 Summary: Simplified packaging of Python modules -License: BSD and ASL 2.0 and Python +License: BSD-3-Clause URL: https://flit.readthedocs.io/en/latest/ -Source0: https://github.com/takluyver/flit/archive/%{version}.tar.gz +Source0: https://github.com/pypa/flit/archive/refs/tags/3.2.0.tar.gz BuildArch: noarch -BuildRequires: python3-devel python3-pip python3-requests python3-docutils python3-pygments python3-pytoml +BuildRequires: python3-devel python3-pip python3-requests python3-docutils python3-pygments python3-toml Provides: bundled(python-tornado) @@ -19,7 +19,8 @@ The specific usage is introduced on the website(https://flit.readthedocs.io/en/l Summary: Simplified packaging of Python modules %{?python_provide:%python_provide python3-flit} -Requires: python3-requests python3-docutils python3-pytoml +Requires: python3-requests python3-docutils python3-toml python3-setuptools +Requires: python3-flit-core = %{version}-%{release} %global __requires_exclude ^python%{python3_version}dist\\(requests-download\\) @@ -29,18 +30,40 @@ Recommends: python3-pygments Flit is a simple way to put Python packages and modules on PyPI. The specific usage is introduced on the website(https://flit.readthedocs.io/en/latest/), or query README. + +%package -n python3-flit-core +Summary: PEP 517 build backend for packages using Flit +Conflicts: python3-flit < 2.1.0-2 +Requires: python3-toml + +%description -n python3-flit-core +This provides a PEP 517 build backend for packages using Flit. The only public interface is the API specified by PEP 517, at flit_core.buildapi. + %prep %autosetup -n flit-%{version} + %build export FLIT_NO_NETWORK=1 -XDG_CACHE_HOME=$PWD/.cache %{__python3} -m flit build --format wheel - +pushd flit_core +python%{python3_version} -m pip wheel --wheel-dir=./dist --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . +popd +export PYTHONPATH=$PWD:$PWD/flit_core +python%{python3_version} -m pip wheel --wheel-dir=./dist --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . %install +cd flit_core +%py3_install_wheel flit_core-%{version}-py3-none-any.whl +cd - %py3_install_wheel flit-%{version}-py3-none-any.whl +%files -n python3-flit-core +%license LICENSE +%doc flit_core/README.rst +%{python3_sitelib}/flit_core-*.dist-info/ +%{python3_sitelib}/flit_core/ + %files -n python3-flit %{python3_sitelib}/* %{_bindir}/flit @@ -49,6 +72,9 @@ XDG_CACHE_HOME=$PWD/.cache %{__python3} -m flit build --format wheel %changelog +* Mon Sep 05 2022 jinzhiguang - 3.2.0-1 +- update to 3.2.0 + * Tue Jun 16 2020 hanxinke - 1.0-6 - update python version