1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

www/py-httptools: Update to 0.2.0

Changes:	https://github.com/MagicStack/httptools/releases
This commit is contained in:
Po-Chuan Hsieh 2021-05-02 06:16:09 +08:00
parent 1c07103e48
commit ff7e3d70d8
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 8 additions and 28 deletions

View File

@ -1,7 +1,7 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= httptools
PORTVERSION= 0.1.2
PORTVERSION= 0.2.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -18,6 +18,6 @@ USES= localbase python:3.5+
USE_PYTHON= autoplist concurrent distutils
post-patch:
@${RM} -r ${WRKSRC}/vendor/
@${RM} -r ${WRKSRC}/vendor/http-parser/
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1619569497
SHA256 (httptools-0.1.2.tar.gz) = 07659649fe6b3948b6490825f89abe5eb1cec79ebfaaa0b4bf30f3f33f3c2ba8
SIZE (httptools-0.1.2.tar.gz) = 106716
TIMESTAMP = 1619725373
SHA256 (httptools-0.2.0.tar.gz) = 94505026be56652d7a530ab03d89474dc6021019d6b8682281977163b3471ea0
SIZE (httptools-0.2.0.tar.gz) = 169260

View File

@ -1,11 +0,0 @@
--- httptools/parser/parser.c.orig 2021-04-26 15:52:02 UTC
+++ httptools/parser/parser.c
@@ -625,7 +625,7 @@ static CYTHON_INLINE float __PYX_NAN() {
#include <stdio.h>
#include "pythread.h"
#include <stdint.h>
-#include "../../vendor/http-parser/http_parser.h"
+#include "http_parser.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

View File

@ -1,18 +1,9 @@
--- setup.py.orig 2021-04-26 15:51:55 UTC
--- setup.py.orig 2021-04-23 20:30:51 UTC
+++ setup.py
@@ -15,7 +15,7 @@ CFLAGS = ['-O2']
ROOT = pathlib.Path(__file__).parent
-CYTHON_DEPENDENCY = 'Cython==0.29.22'
+CYTHON_DEPENDENCY = 'Cython>=0.29.21'
class httptools_build_ext(build_ext):
@@ -44,7 +44,7 @@ class httptools_build_ext(build_ext):
return
@@ -48,7 +48,7 @@ class httptools_build_ext(build_ext):
super().initialize_options()
self.use_system_llhttp = False
- self.use_system_http_parser = False
+ self.use_system_http_parser = True
self.cython_always = False