Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-gevent-websocket


Commits:
0acce700 by Jelle van der Waa at 2024-11-24T10:38:06+01:00
upgpkg: 0.10.1-11: Rebuild for Python 3.13

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + docs-2to3.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-gevent-websocket
        pkgdesc = WebSocket library for the gevent networking library
        pkgver = 0.10.1
-       pkgrel = 10
+       pkgrel = 11
        url = https://www.gitlab.com/noppo/gevent-websocket
        arch = any
        license = Apache
@@ -13,6 +13,8 @@ pkgbase = python-gevent-websocket
        depends = gunicorn
        depends = python-ujson
        source = 
https://gitlab.com/noppo/gevent-websocket/-/archive/0.10.1/gevent-websocket-0.10.1.tar.gz
+       source = docs-2to3.patch
        sha512sums = 
33473bd20bf8bdab95784bc46093c4f3567d61290731e1980de3b8bf96d71976dca658547320329d5ee5291f54e423a1c7ae8300358bc641eae3c71a1943ea84
+       sha512sums = 
0c2c373c0edbbfb0384a2601c32d799c42549c6f0d4f0207a0d68347039af08212c574485d0db31591b90e19aa06d74ddca0bc35f97536cd84ff5a9622a7a588
 
 pkgname = python-gevent-websocket


=====================================
PKGBUILD
=====================================
@@ -4,20 +4,21 @@
 _pkgname=gevent-websocket
 pkgname=python-${_pkgname}
 pkgver=0.10.1
-pkgrel=10
+pkgrel=11
 pkgdesc='WebSocket library for the gevent networking library'
 url='https://www.gitlab.com/noppo/gevent-websocket'
 arch=('any')
 license=('Apache')
 depends=('python' 'python-gevent' 'gunicorn' 'python-ujson')
 makedepends=('cython' 'python-setuptools' 'python-sphinx')
-source=(https://gitlab.com/noppo/gevent-websocket/-/archive/${pkgver}/gevent-websocket-${pkgver}.tar.gz)
-sha512sums=('33473bd20bf8bdab95784bc46093c4f3567d61290731e1980de3b8bf96d71976dca658547320329d5ee5291f54e423a1c7ae8300358bc641eae3c71a1943ea84')
+source=(https://gitlab.com/noppo/gevent-websocket/-/archive/${pkgver}/gevent-websocket-${pkgver}.tar.gz
+        docs-2to3.patch)
+sha512sums=('33473bd20bf8bdab95784bc46093c4f3567d61290731e1980de3b8bf96d71976dca658547320329d5ee5291f54e423a1c7ae8300358bc641eae3c71a1943ea84'
+            
'0c2c373c0edbbfb0384a2601c32d799c42549c6f0d4f0207a0d68347039af08212c574485d0db31591b90e19aa06d74ddca0bc35f97536cd84ff5a9622a7a588')
 
 prepare() {
   cd ${_pkgname}-${pkgver}
-  sed -E "s|release = .*|release = '${pkgver}'|" -i docs/conf.py
-  2to3 -w docs/conf.py
+  patch -Np1 -i ${srcdir}/docs-2to3.patch
 }
 
 build() {


=====================================
docs-2to3.patch
=====================================
@@ -0,0 +1,60 @@
+diff -aur gevent-websocket-0.10.1/docs/conf.py 
gevent-websocket-0.10.1.new/docs/conf.py
+--- gevent-websocket-0.10.1/docs/conf.py       2017-03-13 00:33:21.000000000 
+0100
++++ gevent-websocket-0.10.1.new/docs/conf.py   2024-11-24 10:34:54.248861224 
+0100
+@@ -40,8 +40,8 @@
+ master_doc = 'index'
+ 
+ # General information about the project.
+-project = u'gevent-websocket'
+-copyright = u'2013, Jeffrey Gelens'
++project = 'gevent-websocket'
++copyright = '2013, Jeffrey Gelens'
+ 
+ # The version info for the project you're documenting, acts as replacement for
+ # |version| and |release|, also used in various other places throughout the
+@@ -50,9 +50,9 @@
+ # The short X.Y version.
+ import pkg_resources
+ try:
+-    release = pkg_resources.get_distribution('gevent-websocket').version
++    release = '0.10.1'
+ except pkg_resources.DistributionNotFound:
+-    print "Install gevent-websocket in order to build the docs"
++    print("Install gevent-websocket in order to build the docs")
+     sys.exit(1)
+ del pkg_resources
+ 
+@@ -193,8 +193,8 @@
+ # Grouping the document tree into LaTeX files. List of tuples
+ # (source start file, target name, title, author, documentclass 
[howto/manual]).
+ latex_documents = [
+-  ('index', 'gevent-websocket.tex', u'gevent-websocket Documentation',
+-   u'Jeffrey Gelens', 'manual'),
++  ('index', 'gevent-websocket.tex', 'gevent-websocket Documentation',
++   'Jeffrey Gelens', 'manual'),
+ ]
+ 
+ # The name of an image file (relative to this directory) to place at the top 
of
+@@ -223,8 +223,8 @@
+ # One entry per manual page. List of tuples
+ # (source start file, name, description, authors, manual section).
+ man_pages = [
+-    ('index', 'gevent-websocket', u'gevent-websocket Documentation',
+-     [u'Jeffrey Gelens'], 1)
++    ('index', 'gevent-websocket', 'gevent-websocket Documentation',
++     ['Jeffrey Gelens'], 1)
+ ]
+ 
+ # If true, show URL addresses after external links.
+@@ -237,8 +237,8 @@
+ # (source start file, target name, title, author,
+ #  dir menu entry, description, category)
+ texinfo_documents = [
+-  ('index', 'gevent-websocket', u'gevent-websocket Documentation',
+-   u'Jeffrey Gelens', 'gevent-websocket', 'One line description of project.',
++  ('index', 'gevent-websocket', 'gevent-websocket Documentation',
++   'Jeffrey Gelens', 'gevent-websocket', 'One line description of project.',
+    'Miscellaneous'),
+ ]
+ 
+Only in gevent-websocket-0.10.1.new/docs: conf.py.bak



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-gevent-websocket/-/commit/0acce700c65a6ab0c430f1a3e5c1d0373cc7d426

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-gevent-websocket/-/commit/0acce700c65a6ab0c430f1a3e5c1d0373cc7d426
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to