diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch deleted file mode 100644 index 8135502bf055aa9de75386c4246534b9c23c6f70..0000000000000000000000000000000000000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 32bda93b8b0a127a4fc91b74e9de6767d05b757c Mon Sep 17 00:00:00 2001 -From: jxy_git -Date: Tue, 22 Nov 2022 11:06:00 +0800 -Subject: [PATCH] add setup.py - ---- - setup.py | 9 +++++++++ - 1 file changed, 9 insertions(+) - create mode 100644 setup.py - -diff --git a/setup.py b/setup.py -new file mode 100644 -index 0000000..870a1c3 ---- /dev/null -+++ b/setup.py -@@ -0,0 +1,9 @@ -+#!/usr/bin/env python -+ -+from setuptools import setup -+ -+if __name__ == "__main__": -+ setup( -+ name = "twine", -+ version = "4.0.1", -+) --- -2.38.1 - diff --git a/python-twine.spec b/python-twine.spec index c1dec44e37a3dbbd3e46f64570c7a82fcf8da31e..12bfa8d76a55e33887e8cbce9190e6675ab9df7b 100644 --- a/python-twine.spec +++ b/python-twine.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-twine Version: 4.0.2 -Release: 1 +Release: 2 Summary: Collection of utilities for publishing packages on PyPI License: Apache-2.0 URL: https://twine.readthedocs.io/ Source0: https://files.pythonhosted.org/packages/b7/1a/a7884359429d801cd63c2c5512ad0a337a509994b0e42d9696d4778d71f6/twine-4.0.2.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch Requires: python3-pkginfo @@ -50,14 +49,13 @@ See our documentation for a description of features, installation and usage instructions, and links to additional resources. %prep -%autosetup -n twine-%{version} -%patch0 +%autosetup -n twine-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install twine==%{version} 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 @@ -86,11 +84,15 @@ mv %{buildroot}/doclist.lst . %files -n python3-twine -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/twine %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Apr 27 2023 caodongxia - 4.0.2-2 +- Adapting to the pyproject.toml compilation mode + * Thu Dec 15 2022 fushanqing - 4.0.2-1 - update to version 4.0.2