Adapting to the pyproject.toml compilation mode
This commit is contained in:
parent
1526ce06c5
commit
b05249a3e4
@ -1,28 +0,0 @@
|
|||||||
From 32bda93b8b0a127a4fc91b74e9de6767d05b757c Mon Sep 17 00:00:00 2001
|
|
||||||
From: jxy_git <jiangxinyu@kylinos.cn>
|
|
||||||
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
|
|
||||||
|
|
||||||
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-twine
|
Name: python-twine
|
||||||
Version: 4.0.2
|
Version: 4.0.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Collection of utilities for publishing packages on PyPI
|
Summary: Collection of utilities for publishing packages on PyPI
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://twine.readthedocs.io/
|
URL: https://twine.readthedocs.io/
|
||||||
Source0: https://files.pythonhosted.org/packages/b7/1a/a7884359429d801cd63c2c5512ad0a337a509994b0e42d9696d4778d71f6/twine-4.0.2.tar.gz
|
Source0: https://files.pythonhosted.org/packages/b7/1a/a7884359429d801cd63c2c5512ad0a337a509994b0e42d9696d4778d71f6/twine-4.0.2.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-pkginfo
|
Requires: python3-pkginfo
|
||||||
@ -50,14 +49,13 @@ See our documentation for a description of features, installation
|
|||||||
and usage instructions, and links to additional resources.
|
and usage instructions, and links to additional resources.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n twine-%{version}
|
%autosetup -n twine-%{version} -p1
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install twine==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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
|
%files -n python3-twine -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%dir %{python3_sitelib}/*
|
||||||
|
%{python3_sitelib}/twine
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 27 2023 caodongxia <caodongxia@h-partners.com> - 4.0.2-2
|
||||||
|
- Adapting to the pyproject.toml compilation mode
|
||||||
|
|
||||||
* Thu Dec 15 2022 fushanqing <fushanqing@kylinos.cn> - 4.0.2-1
|
* Thu Dec 15 2022 fushanqing <fushanqing@kylinos.cn> - 4.0.2-1
|
||||||
- update to version 4.0.2
|
- update to version 4.0.2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user