forked from pool/python-web.py
Accepting request 788230 from home:pgajdos:python
- version update to 0.51
* Update setup.py to pack tests directory and publish to pypi.
* New session store MemoryStore, used to save a session in memory.
* Should be useful where there are limited fs writes to the disk, like
flash memories. #174
* Fixed: not support samesite=none. #592
* Fixed Python-3 compatibility issues: #574, #576.
* Support tuple and set in sqlquote().
* Drop support for SQL driver pgdb. It was dead, you cannot even find its
website or download link.
* Drop support for SQL driver psycopg. The latest version was released in
2006 (14 years ago), please use psycopg2 instead.
* Removed function web.safemarkdown. if it's used in your application, you
can install the Markdown module from pypi
(https://pypi.org/project/Markdown/), then replace web.safemarkdown() by
markdown.markdown().
- deleted patches
- 0001-webpy-572-enable-python-3.8.patch (upstreamed)
- test package
OBS-URL: https://build.opensuse.org/request/show/788230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-web.py?expand=0&rev=16
This commit is contained in:
committed by
Git OBS Bridge
parent
52ba1e1d15
commit
07fa700da8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-web.py
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,24 +12,29 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-web.py
|
||||
Version: 0.40
|
||||
Version: 0.51
|
||||
Release: 0
|
||||
Url: http://webpy.org/
|
||||
Summary: web.py: makes web apps
|
||||
License: SUSE-Public-Domain and BSD-3-Clause
|
||||
License: SUSE-Public-Domain AND BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/w/web.py/web.py-%{version}.tar.gz
|
||||
Patch1: 0001-webpy-572-enable-python-3.8.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
URL: https://webpy.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/w/web.py/web.py-%{version}.tar.gz
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyMySQL}
|
||||
BuildRequires: %{python_module cheroot}
|
||||
BuildRequires: %{python_module mysql-connector-python}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
Requires: python-cheroot
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -38,7 +43,6 @@ Think about the ideal way to write a web app. Write the code to make it happen.
|
||||
|
||||
%prep
|
||||
%setup -q -n web.py-%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -47,8 +51,10 @@ Think about the ideal way to write a web app. Write the code to make it happen.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user