Compare commits

..

9 Commits
f33 ... rawhide

Author SHA1 Message Date
Jerry James
8ffc67c8b1 Rebuild for pari 2.15.0. Convert License tag to SPDX. 2022-09-27 06:56:24 -06:00
Fedora Release Engineering
c738e54868 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 17:42:39 +00:00
Python Maint
da32ae1683 Rebuilt for Python 3.11 2022-06-13 18:18:46 +02:00
Jerry James
b739b12a92 Version 1.11.2.
Drop upstreamed -minsigstksz patch.
2022-03-17 15:34:57 -06:00
Fedora Release Engineering
e0c7de86a9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 11:29:35 +00:00
Fedora Release Engineering
ab2c3c0931 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 05:57:43 +00:00
Jerry James
d64c735479 Version 1.10.3. Add -minsigstksz patch to fix FTBFS (bz 1935643). 2021-06-17 13:50:52 -06:00
Python Maint
c6cc01df11 Rebuilt for Python 3.10 2021-06-04 20:27:34 +02:00
Fedora Release Engineering
4190345fdb - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 10:07:28 +00:00
6 changed files with 84 additions and 45 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/cysignals-*.tar.gz
/*.tar.gz

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# python-cysignals
When writing [Cython](http://cython.org/) code, special care must be taken to
ensure that the code can be interrupted with `CTRL-C`. Since Cython optimizes
for speed, Cython normally does not check for interrupts. For example, code
like the following cannot be interrupted in Cython:
```
while True:
pass
```
The [cysignals](https://github.com/sagemath/cysignals) package provides
mechanisms to handle interrupts (and other signals and errors) in Cython code.

View File

@ -1,11 +1,11 @@
diff -up src/scripts/cysignals-CSI.orig src/scripts/cysignals-CSI
--- src/scripts/cysignals-CSI.orig 2018-04-17 06:09:44.000000000 -0600
+++ src/scripts/cysignals-CSI 2018-05-18 13:06:09.309487709 -0600
@@ -69,6 +69,7 @@ def gdb_commands(pid, color):
cmds = b('')
cmds += b('set prompt (cysignals-gdb-prompt)\n')
cmds += b('set verbose off\n')
+ cmds += b('set auto-load safe-path /\n')
cmds += b('attach {0}\n'.format(pid))
cmds += b('python\n')
cmds += b('print("\\n")\n')
--- src/scripts/cysignals-CSI.orig 2022-03-03 10:58:08.469357325 -0700
+++ src/scripts/cysignals-CSI 2022-03-03 10:59:35.932408021 -0700
@@ -57,6 +57,7 @@ def gdb_commands(pid, color):
cmds = b''
cmds += b'set prompt (cysignals-gdb-prompt)\n'
cmds += b'set verbose off\n'
+ cmds += b'set auto-load safe-path /\n'
cmds += b'attach %d\n' % pid
cmds += b'python\n'
cmds += b'print("\\n")\n'

View File

@ -1,8 +0,0 @@
# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
# No man page: user should not invoke the script directly
addFilter(r'W: no-manual-page-for-binary cysignals-CSI')
# Documentation is in the -doc subpackage
addFilter(r'python3-cysignals-devel\.[^:]+: W: no-documentation')

View File

@ -3,15 +3,19 @@
# Python files are installed into nonstandard locations
%global _python_bytecompile_extra 0
# Install documentation in the main package directory
%global _docdir_fmt %{name}
Name: python-%{modname}
Version: 1.10.2
Release: 10%{?dist}
Version: 1.11.2
Release: 4%{?dist}
Summary: Interrupt and signal handling for Cython
License: LGPLv3+
URL: https://github.com/sagemath/%{modname}
Source0: https://github.com/sagemath/%{modname}/releases/download/%{version}/%{modname}-%{version}.tar.gz
License: LGPL-3.0-or-later
URL: https://github.com/sagemath/cysignals
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: make
BuildRequires: pari-devel
# https://bugzilla.redhat.com/show_bug.cgi?id=1445411#c2
@ -46,24 +50,26 @@ See http://cysignals.readthedocs.org/ for the full documentation.}
%package -n python3-%{modname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-docs
BuildRequires: python3dist(cython)
BuildRequires: python3dist(setuptools)
BuildRequires: %{py3_dist cython}
BuildRequires: %{py3_dist pip}
BuildRequires: %{py3_dist setuptools}
BuildRequires: %{py3_dist wheel}
%description -n python3-%{modname} %{_description}
%package -n python3-%{modname}-devel
Summary: %{summary} headers files
Requires: python3-%{modname}
Requires: python3-%{modname}%{?_isa} = %{version}-%{release}
Requires: pari-devel
%description -n python3-%{modname}-devel %{_description}
%package doc
Summary: Documentation for %{name}
BuildRequires: python3dist(sphinx)
Requires: python3-%{modname}
BuildRequires: python3-docs
BuildRequires: %{py3_dist sphinx}
BuildArch: noarch
%description doc
Documentation and examples for %{name}.
@ -71,7 +77,7 @@ Documentation and examples for %{name}.
%autosetup -p0 -n %{modname}-%{version}
# Use local objects.inv for intersphinx
sed -i "s|'https://docs\.python\.org/2\.7', None|'https://docs.python.org/3', '%{_docdir}/python3-docs/html/objects.inv'|" docs/source/conf.py
sed -i "s|'https://docs\.python\.org/3', None|'https://docs.python.org/3', '%{_docdir}/python3-docs/html/objects.inv'|" docs/source/conf.py
# Build for python 3
sed -i 's/language_level=2/language_level=3/' setup.py
@ -79,20 +85,22 @@ sed -i 's/language_level=2/language_level=3/' setup.py
# The doctest timeout is sometimes too short for 32-bit builders
sed -i 's/600/2400/' rundoctests.py
# Upstream does not generate the configure script
autoreconf -fi .
%build
%configure
%py3_build
%pyproject_wheel
# Build the documentation
export PYTHONPATH=$PWD/$(ls -1d build/lib.linux*%{python3_version})
export PYTHONPATH=%{pyproject_build_lib}
make -C docs html
rst2html --no-datestamp README.rst README.html
%install
%py3_install
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -farp docs/build/html %{buildroot}%{_docdir}/%{name}
rm %{buildroot}%{_docdir}/%{name}/html/.buildinfo
%pyproject_install
%pyproject_save_files cysignals
rm docs/build/html/.buildinfo
%check
PATH=%{buildroot}%{_bindir}:$PATH
@ -100,13 +108,10 @@ PYTHONPATH=%{buildroot}%{python3_sitearch}
export PATH PYTHONPATH
%{python3} rundoctests.py src/cysignals/*.pyx
%files -n python3-%{modname}
%license LICENSE
%files -n python3-%{modname} -f %{pyproject_files}
%doc README.html
%{_bindir}/%{modname}-CSI
%{_datadir}/%{modname}/
%{python3_sitearch}/%{modname}
%{python3_sitearch}/%{modname}-*.egg-info
%exclude %{python3_sitearch}/%{modname}/*.h
%exclude %{python3_sitearch}/%{modname}/*.pxd
%exclude %{python3_sitearch}/%{modname}/*.pxi
@ -114,13 +119,41 @@ export PATH PYTHONPATH
%files -n python3-%{modname}-devel
%{python3_sitearch}/%{modname}/*.h
%{python3_sitearch}/%{modname}/*.pxd
%{python3_sitearch}/%{modname}/*.pxi
%files doc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html
%doc docs/build/html
%changelog
* Tue Sep 27 2022 Jerry James <loganjerry@gmail.com> - 1.11.2-4
- Rebuild for pari 2.15.0
- Convert License tag to SPDX
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.11.2-2
- Rebuilt for Python 3.11
* Thu Mar 17 2022 Jerry James <loganjerry@gmail.com> - 1.11.2-1
- Version 1.11.2
- Drop upstreamed -minsigstksz patch
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 17 2021 Jerry James <loganjerry@gmail.com> - 1.10.3-1
- Version 1.10.3
- Add -minsigstksz patch to fix FTBFS (bz 1935643)
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.10.2-12
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 9 2020 Jerry James <loganjerry@gmail.com> - 1.10.2-10
- Rebuild for pari 2.13.0
- Add pari-devel R to -devel subpackage

View File

@ -1 +1 @@
SHA512 (cysignals-1.10.2.tar.gz) = e76b1c2a479c21c4502a9836770a772dd6ead427799fc1dfcf7fba17008240d40bbf2ad3ce65f1ba4db550c802d60a9844182b5a4ebd30180edf797bb68d15c0
SHA512 (cysignals-1.11.2.tar.gz) = 9beed298e1e9bdbea1254b621a33bc2f95892f4e6f4d1c3ba13a825b2c1a83b0f36f214428a956a0d58b4e97d3eaa31a839ceb404c0ac19a64aa69751736556b