diff --git a/.python-pyproject-api.metadata b/.python-pyproject-api.metadata new file mode 100644 index 0000000..1ae15c5 --- /dev/null +++ b/.python-pyproject-api.metadata @@ -0,0 +1 @@ +24aa76af83b163e679d41ea440a9963d62a78aef SOURCES/pyproject_api-1.6.1.tar.gz diff --git a/SOURCES/.gitkeep b/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitkeep diff --git a/SPECS/python-pyproject-api.spec b/SPECS/python-pyproject-api.spec new file mode 100644 index 0000000..e59527a --- /dev/null +++ b/SPECS/python-pyproject-api.spec @@ -0,0 +1,46 @@ +Name: python-pyproject-api +Version: 1.6.1 +Release: %autorelease +Summary: API to interact with the python pyproject.toml based projects + +License: MIT +URL: https://pyproject-api.readthedocs.org +Source0: https://files.pythonhosted.org/packages/source/p/pyproject-api/pyproject_api-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%global _description %{expand: +API to interact with the python pyproject.toml based projects.} + +%description %_description + +%package -n python3-pyproject-api +Summary: %{summary} + +%description -n python3-pyproject-api %_description + +%prep +%autosetup -n pyproject_api-%{version} +# Remove unneeded testing deps +sed -i "/covdefaults/d;/pytest-cov/d" pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires -w -x testing + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files pyproject_api + +%check +%pytest + +%files -n python3-pyproject-api -f %{pyproject_files} +%doc README.md + +%changelog +%autochangelog