From b2ff4a004448f5b7c0405c71e3695ec3112dad25146cbd38ebdb8d285b7c9ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 5 Mar 2020 11:01:07 +0000 Subject: [PATCH 1/2] Accepting request 781798 from home:pgajdos:python - version update to 2.1 * v2.0 - Python 3 only * Fix for documentation on PyPi * Added python to code-block directives * Fix for bug #44 OBS-URL: https://build.opensuse.org/request/show/781798 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astral?expand=0&rev=15 --- astral-1.10.1.tar.gz | 3 --- astral-2.1.tar.gz | 3 +++ python-astral.changes | 9 +++++++++ python-astral.spec | 9 ++++++--- 4 files changed, 18 insertions(+), 6 deletions(-) delete mode 100644 astral-1.10.1.tar.gz create mode 100644 astral-2.1.tar.gz diff --git a/astral-1.10.1.tar.gz b/astral-1.10.1.tar.gz deleted file mode 100644 index 9f4b532..0000000 --- a/astral-1.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1 -size 53198 diff --git a/astral-2.1.tar.gz b/astral-2.1.tar.gz new file mode 100644 index 0000000..ba156c4 --- /dev/null +++ b/astral-2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f57ad3ed2aa00fbed2893d82cdd2000e0723a5dbe167e1b7f847cc555596f65 +size 204416 diff --git a/python-astral.changes b/python-astral.changes index fd15e66..7c571b7 100644 --- a/python-astral.changes +++ b/python-astral.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 5 09:52:44 UTC 2020 - pgajdos@suse.com + +- version update to 2.1 + * v2.0 - Python 3 only + * Fix for documentation on PyPi + * Added python to code-block directives + * Fix for bug #44 + ------------------------------------------------------------------- Wed Mar 6 12:19:26 UTC 2019 - Tomáš Chvátal diff --git a/python-astral.spec b/python-astral.spec index 5045849..ebe63fc 100644 --- a/python-astral.spec +++ b/python-astral.spec @@ -1,7 +1,7 @@ # # spec file for package python-astral # -# Copyright (c) 2019 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 @@ -17,14 +17,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-astral -Version: 1.10.1 +Version: 2.1 Release: 0 Summary: Calculations for the position of the sun and moon License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/sffjunkie/astral Source: https://files.pythonhosted.org/packages/source/a/astral/astral-%{version}.tar.gz +BuildRequires: %{python_module freezegun} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests} @@ -33,6 +35,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytz Requires: python-requests +Recommends: python-dataclasses BuildArch: noarch %python_subpackages @@ -56,7 +59,7 @@ For documentation see the http://astral.readthedocs.io/en/latest/index.html %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -m "not webtest" +%pytest -m "not webtest" %files %{python_files} %doc README.rst From 057b38609d0acfad0bd4683b65ad311bc90e0ae9111fcfb43fe55f9eded070f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 6 Mar 2020 18:24:40 +0000 Subject: [PATCH 2/2] - Do not install doc and test folders to sitelib OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astral?expand=0&rev=16 --- python-astral.changes | 5 +++++ python-astral.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-astral.changes b/python-astral.changes index 7c571b7..1b804ec 100644 --- a/python-astral.changes +++ b/python-astral.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 6 18:24:26 UTC 2020 - Tomáš Chvátal + +- Do not install doc and test folders to sitelib + ------------------------------------------------------------------- Thu Mar 5 09:52:44 UTC 2020 - pgajdos@suse.com diff --git a/python-astral.spec b/python-astral.spec index ebe63fc..3d8413d 100644 --- a/python-astral.spec +++ b/python-astral.spec @@ -23,7 +23,6 @@ Version: 2.1 Release: 0 Summary: Calculations for the position of the sun and moon License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/sffjunkie/astral Source: https://files.pythonhosted.org/packages/source/a/astral/astral-%{version}.tar.gz BuildRequires: %{python_module freezegun} @@ -56,6 +55,9 @@ For documentation see the http://astral.readthedocs.io/en/latest/index.html %install %python_install +# do not install bogus doc module +%python_expand rm -r %{buildroot}/%{$python_sitelib}/doc +%python_expand rm -r %{buildroot}/%{$python_sitelib}/test %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check