Adaptation to setup.py
This commit is contained in:
parent
4e3130b5b0
commit
86e9920574
@ -13,13 +13,19 @@ new file mode 100644
|
|||||||
index 0000000..bac24a4
|
index 0000000..bac24a4
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -0,0 +1,6 @@
|
@@ -0,0 +1,12 @@
|
||||||
+#!/usr/bin/env python
|
+#!/usr/bin/env python
|
||||||
+
|
+
|
||||||
+import setuptools
|
+from setuptools import setup
|
||||||
+
|
+
|
||||||
+if __name__ == "__main__":
|
+entry_points = \
|
||||||
+ setuptools.setup()
|
+{'console_scripts': ['blurb = blurb:main']}
|
||||||
|
+
|
||||||
|
+setup(
|
||||||
|
+ name='blurb',
|
||||||
|
+ version='1.1.0',
|
||||||
|
+ py_modules=['blurb'],
|
||||||
|
+ )
|
||||||
--
|
--
|
||||||
2.25.1
|
2.25.1
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-blurb
|
Name: python-blurb
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Command-line tool to manage CPython Misc/NEWS.d entries.
|
Summary: Command-line tool to manage CPython Misc/NEWS.d entries.
|
||||||
License: BDS-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/python/core-workflow/tree/master/blurb
|
URL: https://github.com/python/core-workflow/tree/master/blurb
|
||||||
Source0: https://files.pythonhosted.org/packages/71/34/676f8c4a16ac69cc5a1a59d871f6c34d019fb5f36df3a44d4e3e5f4b7362/blurb-1.1.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/71/34/676f8c4a16ac69cc5a1a59d871f6c34d019fb5f36df3a44d4e3e5f4b7362/blurb-1.1.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
Patch0: 0001-add-setup.py.patch
|
||||||
@ -28,8 +28,7 @@ Provides: python3-blurb-doc
|
|||||||
blurb is a tool designed to rid CPython core development of the scourge of Misc/NEWS conflicts.
|
blurb is a tool designed to rid CPython core development of the scourge of Misc/NEWS conflicts.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n blurb-%{version}
|
%autosetup -n blurb-%{version} -p1
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -69,6 +68,9 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 27 2023 caodongxia <caodongxia@h-partners.com> - 1.1.0-2
|
||||||
|
- Adaptation to setup.py
|
||||||
|
|
||||||
* Fri Oct 14 2022 guozhengxin <guozhengxin@kylinos.cn> - 1.1.0-1
|
* Fri Oct 14 2022 guozhengxin <guozhengxin@kylinos.cn> - 1.1.0-1
|
||||||
- Upgrade package to version 1.1.0
|
- Upgrade package to version 1.1.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user