forked from pool/python-python-coveralls
Accepting request 612003 from devel:languages:python:misc
Python interface to coveralls io API OBS-URL: https://build.opensuse.org/request/show/612003 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-coveralls?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
python-coveralls-2.9.1.tar.gz
Normal file
3
python-coveralls-2.9.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:736dda01f64beda240e1500d5f264b969495b05fcb325c7c0eb7ebbfd1210b70
|
||||
size 7825
|
||||
3
python-coveralls-example.tar.gz
Normal file
3
python-coveralls-example.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:74ba79ef659a6080735a67866a43ba992948426ffd0c7f036b6160a5f2e2f4ce
|
||||
size 15840
|
||||
17
python-python-coveralls.changes
Normal file
17
python-python-coveralls.changes
Normal file
@@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 24 17:40:21 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
- spec file cleanups
|
||||
- Use update-alternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 9 10:11:05 UTC 2017 - alarrosa@suse.com
|
||||
|
||||
- Conflict with python-coveralls, since both packages provide the
|
||||
same python module and binary name
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 13 12:54:43 UTC 2017 - t.gruner@katodev.de
|
||||
|
||||
- Initial release 2.9.1
|
||||
|
||||
88
python-python-coveralls.spec
Normal file
88
python-python-coveralls.spec
Normal file
@@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package python-python-coveralls
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-python-coveralls
|
||||
Version: 2.9.1
|
||||
Release: 0
|
||||
License: Apache-2.0
|
||||
Summary: Python interface to coveralls io API
|
||||
Url: http://github.com/z4r/python-coveralls
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-coveralls/python-coveralls-%{version}.tar.gz
|
||||
Source1: python-coveralls-example.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module coverage >= 4.0.3}
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module httpretty}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pycodestyle}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes git
|
||||
Requires: python-coverage >= 4.0.3
|
||||
Requires: python-PyYAML
|
||||
Requires: python-requests
|
||||
Requires: python-six
|
||||
Conflicts: python-coveralls
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python interface to coveralls.io API
|
||||
This package provides a module to interface with the https://coveralls.io API.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-coveralls-%{version}
|
||||
sed -i 's|coverage==4.0.3|coverage>=4.0.3|' setup.py
|
||||
tar -xvzf %{S:1}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/coveralls
|
||||
|
||||
%check
|
||||
pushd python-coveralls-example
|
||||
%python_expand py.test example/tests.py --cov=example
|
||||
popd
|
||||
|
||||
%post
|
||||
%python_install_alternative coveralls
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative coveralls
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/coveralls
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user