commit a9e8c3ca5d19dd855ef50f05ef2dacf048109cd05d4ef349eb2305d1ceef5b8b Author: Matej Cepl Date: Fri Nov 13 18:26:00 2020 +0000 Accepting request 848337 from home:jayvdb:branches:devel:languages:python @pypa tool complimenting pep517 depends on https://build.opensuse.org/request/show/848332 OBS-URL: https://build.opensuse.org/request/show/848337 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-build?expand=0&rev=1 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/build-0.1.0.tar.gz b/build-0.1.0.tar.gz new file mode 100644 index 0000000..c989298 --- /dev/null +++ b/build-0.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:caec66a086a3fdad0c03b36ea82598c071b5c1a98c20d499ef9ae81540ff2463 +size 21837 diff --git a/python-build.changes b/python-build.changes new file mode 100644 index 0000000..e8fc2fc --- /dev/null +++ b/python-build.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 13 11:14:24 UTC 2020 - John Vandenberg + +- Update to v0.1.0 + +------------------------------------------------------------------- +Tue Sep 29 02:55:22 AM UTC 2020 - John Vandenberg + +- Initial spec for v0.0.4 diff --git a/python-build.spec b/python-build.spec new file mode 100644 index 0000000..6346f64 --- /dev/null +++ b/python-build.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-build +# +# 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 +# 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-%{**}} +Name: python-build +Version: 0.1.0 +Release: 0 +Summary: Simple PEP517 package builder +License: MIT +Group: Development/Languages/Python +URL: https://github.com/pypa/build +Source: https://github.com/pypa/build/archive/%{version}.tar.gz#/build-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-packaging +Requires: python-pep517 >= 0.9 +Requires: python-toml +Requires: python-typing +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module filelock} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pep517 >= 0.9} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module toml} +BuildRequires: %{python_module typing} +BuildRequires: %{python_module virtualenv} +# /SECTION +%python_subpackages + +%description +Simple PEP517 package builder. + +%prep +%setup -q -n build-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pyproject-build +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_create_isolated_build_host (x2) fail due to venv/test rig +%pytest -k 'not (test_create_isolated_build_host_with_no_pip or test_create_isolated_build_has_with_pip)' + +%post +%python_install_alternative pyproject-build + +%postun +%python_uninstall_alternative pyproject-build + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/pyproject-build +%{python_sitelib}/* + +%changelog