commit 590e063107deb8ef0b6ffb0c66ec5b4b974a52595f3834820a598a9a5021536f Author: Matej Cepl Date: Fri May 5 15:28:38 2023 +0000 - Initial packaging effort for pyproject-api v. 1.5.1. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-api?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/pyproject_api-1.5.1.tar.gz b/pyproject_api-1.5.1.tar.gz new file mode 100644 index 0000000..4157b98 --- /dev/null +++ b/pyproject_api-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:435f46547a9ff22cf4208ee274fca3e2869aeb062a4834adfc99a4dd64af3cf9 +size 22081 diff --git a/python-pyproject-api.changes b/python-pyproject-api.changes new file mode 100644 index 0000000..9b3a89c --- /dev/null +++ b/python-pyproject-api.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri May 5 14:49:35 UTC 2023 - Matej Cepl + +- Initial packaging effort for pyproject-api v. 1.5.1. diff --git a/python-pyproject-api.spec b/python-pyproject-api.spec new file mode 100644 index 0000000..2f09427 --- /dev/null +++ b/python-pyproject-api.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-pyproject-api +# +# Copyright (c) 2023 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pyproject-api +Version: 1.5.1 +Release: 0 +Summary: API to interact with the python pyproject.toml based projects +License: MIT +URL: https://github.com/tox-dev/pyproject-api +Source: https://files.pythonhosted.org/packages/source/p/pyproject_api/pyproject_api-%{version}.tar.gz +BuildRequires: %{python_module hatch >= 0.3} +BuildRequires: %{python_module hatch-vcs >= 0.3} +BuildRequires: %{python_module hatchling >= 1.12.2} +BuildRequires: %{python_module importlib-metadata >= 6 if %python-base < 3.8} +BuildRequires: %{python_module packaging >= 23} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11} +BuildRequires: %{python_module wheel >= 0.38.4} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildRequires: (python36-importlib-metadata >= 6 if python36-base) +Requires: python-packaging >= 23 +Requires: (python-importlib-metadata >= 6 if python3-base < 3.8) +BuildArch: noarch +# SECTION testing= +# (except for pytest-cov and -randomly) +BuildRequires: %{python_module covdefaults >= 2.2.2} +BuildRequires: %{python_module pytest >= 7.2.0} +BuildRequires: %{python_module pytest-mock >= 3.10.0} +BuildRequires: %{python_module virtualenv >= 20.17.1} +# /SECTION +%python_subpackages + +%description +pyproject-api aims to abstract away interaction with +pyproject.toml style projects in a flexible way. + +%prep +%autosetup -p1 -n pyproject_api-%{version} + +%build +export LANG=en_US.UTF8 +%pyproject_wheel + +%install +export LANG=en_US.UTF8 +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# gh#tox-dev/pyproject-api#45 +skip_tests="test_can_build_on_python_2" +# gh#tox-dev/pyproject-api#77 +skip_tests="($skip_tests or test_setuptools_prepare_metadata_for_build_wheel)" +%pytest -k "not $skip_tests" + +%files %{python_files} +%license LICENSE +%doc README.md docs/changelog.rst +%{python_sitelib}/pyproject_api-%{version}*-info +%{python_sitelib}/pyproject_api + +%changelog