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..1b804ec 100644 --- a/python-astral.changes +++ b/python-astral.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +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 + +- 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..3d8413d 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,15 @@ %{?!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 +34,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytz Requires: python-requests +Recommends: python-dataclasses BuildArch: noarch %python_subpackages @@ -53,10 +55,13 @@ 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 -%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