From 941736668f4a41e75feac210258b9a9ecafa492c4273fa7a2796852662de00f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Aug 2019 14:28:50 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + flit-1.3.tar.gz | 3 ++ merged_pr_278.patch | 25 +++++++++++++++ python-flit.changes | 4 +++ python-flit.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 flit-1.3.tar.gz create mode 100644 merged_pr_278.patch create mode 100644 python-flit.changes create mode 100644 python-flit.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/flit-1.3.tar.gz b/flit-1.3.tar.gz new file mode 100644 index 0000000..40a3d72 --- /dev/null +++ b/flit-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f6f0fb83c51ffa3a150fa41b5ac118df9ea4a87c2c06dff4ebf9adbe7b52b36 +size 92574 diff --git a/merged_pr_278.patch b/merged_pr_278.patch new file mode 100644 index 0000000..203a44d --- /dev/null +++ b/merged_pr_278.patch @@ -0,0 +1,25 @@ +From 6a6b7ff1d4cfb061c42c16b1740c4dac22cda91c Mon Sep 17 00:00:00 2001 +From: Matthias Bussonnier +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') diff --git a/python-flit.changes b/python-flit.changes new file mode 100644 index 0000000..99cf9f6 --- /dev/null +++ b/python-flit.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun May 19 05:59:49 AM UTC 2019 - John Vandenberg + +- Initial spec for v1.3 diff --git a/python-flit.spec b/python-flit.spec new file mode 100644 index 0000000..680d1b6 --- /dev/null +++ b/python-flit.spec @@ -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