15
0
forked from pool/python-astral

Accepting request 782231 from devel:languages:python

- Do not install doc and test folders to sitelib

- 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/782231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astral?expand=0&rev=6
This commit is contained in:
2020-03-06 20:27:37 +00:00
committed by Git OBS Bridge
4 changed files with 26 additions and 7 deletions

View File

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

3
astral-2.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Fri Mar 6 18:24:26 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <tchvatal@suse.com>

View File

@@ -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