Accepting request 677103 from home:jayvdb:django

- Use more useful and clean https://pythonhosted.org/pytz/ as URL
- Use fdupes
- Add missing dependency on Python runtime, and install using setuptools.
- update to 2018.9
  * IANA 2018i
  * Replace all references to deprecated easy_install with pip
  * Add _all_timezones_lower_to_standard to gen_tzinfo
  * timezone constructor arg is case-insensitive
  * Use early python2 compatible str formatting
  * Raise UnknownTimeZoneError if provided timezone name is None
  * Make timezone lookup case insensitive
- from 2018.7 
  * IANA 2018g
- from 2018.6
  * IANA 2018f
  * Promote BaseTzInfo to public API for type checking
  * Update dev notes for Ubuntu 18.04 containers
  * Add warnings to examples showing what not to do

OBS-URL: https://build.opensuse.org/request/show/677103
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=75
This commit is contained in:
Matej Cepl 2019-02-18 15:04:19 +00:00 committed by Git OBS Bridge
parent f0feb071a7
commit 4276d49ec8
6 changed files with 36 additions and 12 deletions

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Sun Feb 17 01:37:01 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Use more useful and clean https://pythonhosted.org/pytz/ as URL
- Use fdupes
- Add missing dependency on Python runtime, and install using setuptools.
- update to 2018.9
* IANA 2018i
* Replace all references to deprecated easy_install with pip
* Add _all_timezones_lower_to_standard to gen_tzinfo
* timezone constructor arg is case-insensitive
* Use early python2 compatible str formatting
* Raise UnknownTimeZoneError if provided timezone name is None
* Make timezone lookup case insensitive
- from 2018.7
* IANA 2018g
- from 2018.6
* IANA 2018f
* Promote BaseTzInfo to public API for type checking
* Update dev notes for Ubuntu 18.04 containers
* Add warnings to examples showing what not to do
-------------------------------------------------------------------
Wed Jan 9 18:18:15 CET 2019 - mcepl@suse.com

View File

@ -19,12 +19,12 @@
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytz
Version: 2018.5
Version: 2018.9
Release: 0
Summary: World timezone definitions, modern and historical
License: MIT
Group: Development/Languages/Python
URL: http://pytz.sourceforge.net
URL: https://pythonhosted.org/pytz/
Source: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.tar.gz
Source2: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.tar.gz.asc
Source90: %{name}.keyring
@ -34,7 +34,7 @@ Patch0: fix-tests.patch
Patch1: system_zoneinfo.patch
# PATCH-FIX-UPSTREAM 0001-Fix-tests-for-older-timezone-versions.patch -- https://code.launchpad.net/~toabctl/pytz/+git/pytz/+merge/326419
Patch2: 0001-Fix-tests-for-older-timezone-versions.patch
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
# pytest is required only because of 2.7 stdlib test runner, python3
# unittest runner is sufficient.
BuildRequires: %{python_module pytest}
@ -42,6 +42,7 @@ BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: timezone
Requires: python-base
Requires: timezone
BuildArch: noarch
%ifpython2
@ -73,6 +74,7 @@ sed -i '/^#!/d' ./pytz/tzfile.py
%install
%python_install
%python_expand rm -fr %{buildroot}%{$python_sitelib}/pytz/zoneinfo
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=. py.test-%{$python_bin_suffix} -v pytz/tests

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffb9ef1de172603304d9d2819af6f5ece76f2e85ec10692a524dd876e72bf277
size 318799

View File

@ -1,6 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQTH7MNlq28lXh65uhcB+pmPusY3SgUCWzXXSgAKCRAB+pmPusY3
Skl7AJ0Td4qRGE3l4WHIxnWNxLQCgSjqiACeOrxzAp7+EkFFI82hcfkW3E1hBo4=
=7jkN
-----END PGP SIGNATURE-----

3
pytz-2018.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d5f05e487007e29e03409f9398d074e158d920d36eb82eaf66fb1136b0c5374c
size 310705

6
pytz-2018.9.tar.gz.asc Normal file
View File

@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQTH7MNlq28lXh65uhcB+pmPusY3SgUCXDMFwQAKCRAB+pmPusY3
Sm/xAJwKoNIZbIVMaFNGOXeSJu1X8QXgsACfVHNlaOz/34yCJrVniSBsopgA0QQ=
=KrRL
-----END PGP SIGNATURE-----