Compare commits
10 Commits
6c11968a93
...
12d524ac39
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12d524ac39 | ||
|
|
51a5e505cc | ||
|
|
15bebcf1ee | ||
|
|
53078107f3 | ||
|
|
5b2788a8e2 | ||
|
|
9c4492ccaa | ||
|
|
6e4543a43f | ||
|
|
5fd80f3927 | ||
|
|
2228ca1ba0 | ||
|
|
85cd741135 |
25
0001-modify-python3.9-supportive-syntax.patch
Normal file
25
0001-modify-python3.9-supportive-syntax.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From f1d8e10936ab21089e5197df06f995b19b465ac0 Mon Sep 17 00:00:00 2001
|
||||
From: bzg1107 <preloyalwhite@163.com>
|
||||
Date: Wed, 5 Jan 2022 21:05:37 +0800
|
||||
Subject: [PATCH] modify python3.9 supportive syntax
|
||||
|
||||
---
|
||||
tests/conftest.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||
index ec47c86..174aebf 100644
|
||||
--- a/tests/conftest.py
|
||||
+++ b/tests/conftest.py
|
||||
@@ -60,7 +60,7 @@ def serve():
|
||||
log.debug("shutting server down")
|
||||
server.shutdown()
|
||||
worker.join(1)
|
||||
- if worker.isAlive():
|
||||
+ if worker.is_alive():
|
||||
log.warning('worker is hanged')
|
||||
else:
|
||||
log.debug("server stopped")
|
||||
--
|
||||
2.30.0
|
||||
|
||||
BIN
WebOb-1.8.7.tar.gz
Normal file
BIN
WebOb-1.8.7.tar.gz
Normal file
Binary file not shown.
64
python-webob.spec
Normal file
64
python-webob.spec
Normal file
@ -0,0 +1,64 @@
|
||||
Name: python-webob
|
||||
Version: 1.8.7
|
||||
Release: 2
|
||||
Summary: WSGI request and response object
|
||||
License: MIT
|
||||
URL: http://pythonpaste.org/webob/
|
||||
Source0: https://files.pythonhosted.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
||||
Patch0: 0001-modify-python3.9-supportive-syntax.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel, python3-setuptools, python3-pytest
|
||||
|
||||
%description
|
||||
WebOb provides wrappers around the WSGI request environment,
|
||||
and an object to help create WSGI responses. The objects map
|
||||
much of the specified behavior of HTTP, including header parsing
|
||||
and accessors for other standard parts of the environment.
|
||||
|
||||
%package -n python3-webob
|
||||
%{?python_provide:%python_provide python3-webob}
|
||||
Summary: WSGI request and response object
|
||||
Requires: python3
|
||||
Provides: python3-webob1.2 = %{version}-%{release}
|
||||
Obsoletes: python3-webob1.2 < 1.2.3-7
|
||||
|
||||
%description -n python3-webob
|
||||
WebOb provides wrappers around the WSGI request environment,
|
||||
and an object to help create WSGI responses. The objects map
|
||||
much of the specified behavior of HTTP, including header parsing
|
||||
and accessors for other standard parts of the environment.
|
||||
|
||||
%prep
|
||||
%autosetup -n WebOb-%{version} -p1
|
||||
rm -rf tests/performance_test.py
|
||||
rm -rf docs/_static/.empty
|
||||
mv docs/license.txt license.txt
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib}
|
||||
py.test-3 tests
|
||||
|
||||
%files -n python3-webob
|
||||
%license license.txt
|
||||
%doc docs/*
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 11 2022 baizhonggui <baizhonggui@huawei.com> - 1.8.7-2
|
||||
- Fix compat py3.9 syntax
|
||||
|
||||
* Thu Aug 05 2021 liusheng <liusheng2048@gmail.com> - 1.8.7-1
|
||||
- Upgrade to version 1.8.7
|
||||
|
||||
* Thu Oct 29 2020 xinghe <xinghe1@huawei.com> - 1.8.2-4
|
||||
- remove python2 dependency
|
||||
|
||||
* Fri Feb 14 2020 Ruijun Ge <geruijun@huawei.com> - 1.8.2-3
|
||||
- init package
|
||||
4
python-webob.yaml
Normal file
4
python-webob.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: pypi
|
||||
src_repo: webob
|
||||
tag_pattern: ^v
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user