diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5aea232 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/tox-current-env-*.tar.gz +results_python-tox-current-env/ +*.rpm diff --git a/python-tox-current-env.spec b/python-tox-current-env.spec new file mode 100644 index 0000000..5492850 --- /dev/null +++ b/python-tox-current-env.spec @@ -0,0 +1,58 @@ +%global pypi_name tox-current-env +%global pypi_under tox_current_env + +Name: python-%{pypi_name} +Version: 0.0.1 +Release: 1%{?dist} +Summary: Tox plugin to run tests in current Python environment + +License: MIT +URL: https://github.com/fedora-python/tox-current-env +Source0: %{pypi_source} +BuildArch: noarch + +# Don't use %%pyproject_buildrequires to avoid a build dependency loop. +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(wheel) + +%description +The tox-current-env plugin allows to run tests in current Python environment. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +The tox-current-env plugin allows to run tests in current Python environment. + + +%prep +%autosetup -n %{pypi_name}-%{version} + + +%build +%pyproject_wheel + + +%install +%pyproject_install + + +#check +# the tests currently only work within actual tox and with various Python +# versions installed, so we skip them. + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_under}/ +%{python3_sitelib}/%{pypi_under}-%{version}.dist-info/ + + +%changelog +* Wed Jul 24 2019 Miro HronĨok - 0.0.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2f13ed0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tox-current-env-0.0.1.tar.gz) = 7ef04ac3b5e8c012f7510e8fa1363b614452a372c73254d92226f7274834fe807ab6dadc52aab7cb1e8aa85e00a73439004e03c1c61969a98fa8e7fabc75e719