SHA256
1
0
forked from pool/python-build

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
This commit is contained in:
Matej Cepl 2020-11-13 18:26:00 +00:00 committed by Git OBS Bridge
commit a9e8c3ca5d
5 changed files with 116 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
build-0.1.0.tar.gz Normal file
View File

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

9
python-build.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Fri Nov 13 11:14:24 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v0.1.0
-------------------------------------------------------------------
Tue Sep 29 02:55:22 AM UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.0.4

80
python-build.spec Normal file
View File

@ -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