1
0

- Switch to github tarball

- Enable tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-filelock?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2018-08-01 14:52:21 +00:00 committed by Git OBS Bridge
parent ecf42812a0
commit 4f2514c601
4 changed files with 20 additions and 11 deletions

View File

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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 1 14:43:23 UTC 2018 - tchvatal@suse.com
- Switch to github tarball
- Enable tests
-------------------------------------------------------------------
Tue May 8 12:44:24 UTC 2018 - buschmann23@opensuse.org

View File

@ -14,23 +14,21 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define _pkgname filelock
Name: python-filelock
Version: 3.0.4
Release: 0
License: Unlicense
Summary: Platform Independent File Lock in Python
License: Unlicense
Group: Development/Languages/Python
Url: https://github.com/benediktschmitt/py-filelock
Source: https://files.pythonhosted.org/packages/source/f/%{_pkgname}/%{_pkgname}-%{version}.tar.gz
BuildRequires: %{python_module devel}
URL: https://github.com/benediktschmitt/py-filelock
Source: https://github.com/benediktschmitt/py-filelock/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@ -40,7 +38,7 @@ independent file lock in Python, which provides a simple way of
inter-process communication.
%prep
%setup -q -n %{_pkgname}-%{version}
%setup -q -n py-filelock-%{version}
%build
%python_build
@ -49,8 +47,13 @@ inter-process communication.
%python_install
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
%check
# test will not work on python2 wrong exceptions
python3 test.py
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE.rst
%{python_sitelib}/*
%changelog

3
v3.0.4.tar.gz Normal file
View File

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