14
0
forked from pool/python-web.py
Files
python-web.py/python-web.py.spec
Michael Ströder 07fa700da8 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
2020-03-25 14:45:48 +00:00

61 lines
1.8 KiB
RPMSpec

#
# spec file for package python-web.py
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-web.py
Version: 0.51
Release: 0
Summary: web.py: makes web apps
License: SUSE-Public-Domain AND BSD-3-Clause
Group: Development/Languages/Python
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
%description
Think about the ideal way to write a web app. Write the code to make it happen.
%prep
%setup -q -n web.py-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%{python_sitelib}/*
%changelog