diff --git a/editables-0.3.tar.gz b/editables-0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..819e543a68af4088c5297f8b7aee9ad57f912907 Binary files /dev/null and b/editables-0.3.tar.gz differ diff --git a/python-editables.spec b/python-editables.spec new file mode 100644 index 0000000000000000000000000000000000000000..dad7a8d6f38d560f1818a5be21970c9270f54965 --- /dev/null +++ b/python-editables.spec @@ -0,0 +1,72 @@ +%define anolis_release 1 + +Name: python-editables +Version: 0.3 +Release: %{anolis_release}%{?dist} +Summary: Editable installations + +License: MIT +URL: https://github.com/pfmoore/editables +# PyPI source distributions lack tests; use the GitHub archive +Source0: %{url}/archive/%{version}/editables-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel + +# Most of the dependencies, and all of the pytest options, in tox.ini are for +# coverage analysis and for installation with pip/virtualenv. Rather than +# working around all of these, it is simpler not to use tox for dependency +# generation or testing. +BuildRequires: python3dist(pytest) + +%global common_description %{expand: +A Python library for creating “editable wheels” + +This library supports the building of wheels which, when installed, will expose +packages in a local directory on sys.path in “editable mode”. In other words, +changes to the package source will be reflected in the package visible to +Python, without needing a reinstall.} + +%description %{common_description} + + +%package -n python3-editables +Summary: %{summary} + +%description -n python3-editables %{common_description} + +%package -n python3-editables-doc +Summary: %{summary} +BuildArch: noarch +Requires: python3-editables = %{version}-%{release} + +%description -n python3-editables-doc +%{description} + +%prep +%autosetup -n editables-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files editables + +%check +%pytest + +%files -n python3-editables -f %{pyproject_files} +%license LICENSE.txt + +%files -n python3-editables-doc +%doc README.md CHANGELOG.md + + +%changelog +* Fri Oct 14 2022 happy_orange - 0.3-1 +- init package from upstream