Accepting request 721903 from home:jayvdb:coala:test-rig

the primary pep 517 example build tool.  moderate usage https://pypistats.org/packages/flit

OBS-URL: https://build.opensuse.org/request/show/721903
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal 2019-08-12 14:28:50 +00:00 committed by Git OBS Bridge
commit 941736668f
6 changed files with 133 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

3
flit-1.3.tar.gz Normal file
View File

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

25
merged_pr_278.patch Normal file
View File

@ -0,0 +1,25 @@
From 6a6b7ff1d4cfb061c42c16b1740c4dac22cda91c Mon Sep 17 00:00:00 2001
From: Matthias Bussonnier <bussonniermatthias@gmail.com>
Date: Thu, 25 Jul 2019 20:31:38 -0700
Subject: [PATCH] Fix CI error on test_misspelled_key
Error seem to be due to pytest wrapping errors, and the str()
representation of the error not always having the full error message of
the underlying error.
---
tests/test_inifile.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_inifile.py b/tests/test_inifile.py
index 1f7adbd..3dc3abc 100644
--- a/tests/test_inifile.py
+++ b/tests/test_inifile.py
@@ -40,7 +40,7 @@ def test_misspelled_key():
with pytest.raises(ConfigError) as e_info:
read_pkg_ini(samples_dir / 'misspelled-key.ini')
- assert 'description-file' in str(e_info)
+ assert 'scription-file' in str(e_info.value)
def test_description_file():
info = read_pkg_ini(samples_dir / 'package1-pkg.ini')

4
python-flit.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun May 19 05:59:49 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v1.3

77
python-flit.spec Normal file
View File

@ -0,0 +1,77 @@
#
# spec file for package python-flit
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-flit
Version: 1.3
Release: 0
Summary: Packaging tool for simple packages
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/takluyver/flit
Source: https://files.pythonhosted.org/packages/source/f/flit/flit-%{version}.tar.gz
Patch0: https://github.com/takluyver/flit/commit/6a6b7ff.patch#/merged_pr_278.patch
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pytest >= 2.7.3}
BuildRequires: %{python_module pytoml}
BuildRequires: %{python_module requests-download}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testpath}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-docutils
Requires: python-pytoml
Requires: python-requests-download
BuildArch: noarch
%if %{python3_version_nodots} < 36
BuildRequires: %{python_module zipfile36}
%endif
%if %{python3_version_nodots} < 36
Requires: python-zipfile36
%endif
%python_subpackages
%description
A simple packaging tool for simple packages.
%prep
%setup -q -n flit-%{version}
%patch0 -p1
sed -i 's/distutils.core/setuptools/' setup.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_build_sdist is https://github.com/takluyver/flit/issues/133
# test_invalid_classifier requires internet
%pytest -k 'not (test_build_sdist or test_invalid_classifier)'
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/flit
%{python_sitelib}/*
%changelog