diff --git a/0001-webpy-572-enable-python-3.8.patch b/0001-webpy-572-enable-python-3.8.patch deleted file mode 100644 index bfb5ee1..0000000 --- a/0001-webpy-572-enable-python-3.8.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -ur web.py-0.40.orig/web/application.py web.py-0.40/web/application.py ---- web.py-0.40.orig/web/application.py 2019-09-27 09:42:04.000000000 +0200 -+++ web.py-0.40/web/application.py 2020-03-12 11:41:51.270358060 +0100 -@@ -799,7 +799,8 @@ - self.mtimes = {} - - def __call__(self): -- for mod in sys.modules.values(): -+ sys_modules = list(sys.modules.values()) -+ for mod in sys_modules: - self.check(mod) - - def check(self, mod): -diff -ur web.py-0.40.orig/web/template.py web.py-0.40/web/template.py ---- web.py-0.40.orig/web/template.py 2019-09-27 09:42:04.000000000 +0200 -+++ web.py-0.40/web/template.py 2020-03-12 11:40:56.434681378 +0100 -@@ -1266,6 +1266,7 @@ - "With", - "comprehension", - "NameConstant", -+ "Constant", - "arg", - #'Raise', 'TryExcept', 'TryFinally', 'Assert', 'Import', - #'ImportFrom', 'Exec', 'Global', diff --git a/python-web.py.changes b/python-web.py.changes index fd5b160..9d06ad0 100644 --- a/python-web.py.changes +++ b/python-web.py.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Wed Mar 25 14:09:58 UTC 2020 - pgajdos@suse.com + +- 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 + ------------------------------------------------------------------- Thu Mar 12 10:50:25 UTC 2020 - Michael Ströder diff --git a/python-web.py.spec b/python-web.py.spec index 531ec01..40fee6a 100644 --- a/python-web.py.spec +++ b/python-web.py.spec @@ -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 diff --git a/web.py-0.40.tar.gz b/web.py-0.40.tar.gz deleted file mode 100644 index c3877e2..0000000 --- a/web.py-0.40.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc5e42ffbc42d77d07f75b7acca9975a3368ae609774e49ddebb497a784131f3 -size 103781 diff --git a/web.py-0.51.tar.gz b/web.py-0.51.tar.gz new file mode 100644 index 0000000..daba42d --- /dev/null +++ b/web.py-0.51.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b50343941360984d37270186453bb897d13630028a739394fedf38f9cde2fd07 +size 80662