!3 Adaptation to setup.py
From: @caodongxia Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
8d065ef878
@ -13,13 +13,19 @@ new file mode 100644
|
||||
index 0000000..bac24a4
|
||||
--- /dev/null
|
||||
+++ b/setup.py
|
||||
@@ -0,0 +1,6 @@
|
||||
@@ -0,0 +1,12 @@
|
||||
+#!/usr/bin/env python
|
||||
+
|
||||
+import setuptools
|
||||
+from setuptools import setup
|
||||
+
|
||||
+if __name__ == "__main__":
|
||||
+ setuptools.setup()
|
||||
+entry_points = \
|
||||
+{'console_scripts': ['blurb = blurb:main']}
|
||||
+
|
||||
+setup(
|
||||
+ name='blurb',
|
||||
+ version='1.1.0',
|
||||
+ py_modules=['blurb'],
|
||||
+ )
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-blurb
|
||||
Version: 1.1.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
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
|
||||
Source0: https://files.pythonhosted.org/packages/71/34/676f8c4a16ac69cc5a1a59d871f6c34d019fb5f36df3a44d4e3e5f4b7362/blurb-1.1.0.tar.gz
|
||||
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.
|
||||
|
||||
%prep
|
||||
%autosetup -n blurb-%{version}
|
||||
%patch0
|
||||
%autosetup -n blurb-%{version} -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@ -69,6 +68,9 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%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
|
||||
- Upgrade package to version 1.1.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user