|
|
f401fc5 |
%bcond_without check
|
|
|
9d499ce |
|
|
|
2a4b716 |
%if 0%{?fedora} >= 30
|
|
|
2a4b716 |
# NOTE: Since pythonz-bd dependency is not available in Fedora 30+, the Python
|
|
|
2a4b716 |
# version management functionality must be removed.
|
|
|
2a4b716 |
%bcond_with py_ver_management
|
|
|
2a4b716 |
%else
|
|
|
2a4b716 |
%bcond_without py_ver_management
|
|
|
2a4b716 |
%endif
|
|
|
2a4b716 |
|
|
|
f5fe9a9 |
Name: pew
|
|
|
f5fe9a9 |
Version: 1.2.0
|
|
|
1b79f96 |
Release: 5%{?dist}
|
|
|
f5fe9a9 |
Summary: Tool to manage multiple virtualenvs written in pure Python
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
License: MIT
|
|
|
f5fe9a9 |
URL: https://github.com/berdario/pew
|
|
|
f5fe9a9 |
Source0: https://github.com/berdario/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
f5fe9a9 |
Source1: README.md
|
|
|
2a4b716 |
|
|
|
2a4b716 |
# This patch removes Python version management on Fedora.
|
|
|
2a4b716 |
#
|
|
|
2a4b716 |
# NOTE: This removes the pythonz-bd dependency which is not available in Fedora
|
|
|
2a4b716 |
# anymore.
|
|
|
2a4b716 |
# Furthermore, there is strong support upstream to either remove Pew's
|
|
|
2a4b716 |
# Python version management or replace it with pyenv:
|
|
|
2a4b716 |
# https://github.com/berdario/pew/issues/195.
|
|
|
f5fe9a9 |
Patch0: 0001-Remove-Python-version-management-on-Fedora.patch
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
BuildArch: noarch
|
|
|
a9a1e0a |
|
|
|
f5fe9a9 |
BuildRequires: python3-devel
|
|
|
f5fe9a9 |
BuildRequires: python3dist(setuptools)
|
|
|
f5fe9a9 |
BuildRequires: python3dist(virtualenv) >= 1.11
|
|
|
f5fe9a9 |
BuildRequires: python3dist(virtualenv-clone) >= 0.2.5
|
|
|
2a4b716 |
%if %{with py_ver_management}
|
|
|
f5fe9a9 |
BuildRequires: python3dist(pythonz-bd) >= 1.10.2
|
|
|
2a4b716 |
%endif
|
|
|
2a4b716 |
# Required for %%autosetup.
|
|
|
2a4b716 |
BuildRequires: git-core
|
|
|
9d499ce |
|
|
|
9d499ce |
%if %{with check}
|
|
|
f5fe9a9 |
BuildRequires: python3dist(pytest)
|
|
|
f5fe9a9 |
BuildRequires: python3dist(pip)
|
|
|
9d499ce |
%endif
|
|
|
9d499ce |
|
|
|
a9a1e0a |
# NOTE: The automatic Python dependency generator is enabled by default in
|
|
|
a9a1e0a |
# Fedora 30+.
|
|
|
a9a1e0a |
%if 0%{?fedora} == 29
|
|
|
a9a1e0a |
%{?python_enable_dependency_generator}
|
|
|
a9a1e0a |
%endif
|
|
|
a9a1e0a |
|
|
|
2a4b716 |
%if %{with py_ver_management}
|
|
|
a9a1e0a |
# NOTE: The pythonz-bd dependency is not included by automatic dependency
|
|
|
a9a1e0a |
# generator because it is defined as the pythonz extra requirement in setup.py.
|
|
|
f5fe9a9 |
Requires: python3dist(pythonz-bd) >= 1.10.2
|
|
|
2a4b716 |
%endif
|
|
|
9d499ce |
|
|
|
a9a1e0a |
%{?python_provide:%python_provide python3-%{name}}
|
|
|
a9a1e0a |
|
|
|
9d499ce |
%description
|
|
|
9d499ce |
Python Env Wrapper is a set of commands to manage multiple virtual
|
|
|
9d499ce |
environments. Pew can create, delete and copy your environments, using a
|
|
|
9d499ce |
single command to switch to them wherever you are, while keeping them in a
|
|
|
9d499ce |
single (configurable) location.
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
|
|
|
9d499ce |
%prep
|
|
|
2a4b716 |
%autosetup -n %{name}-%{version} -N -S git
|
|
|
2a4b716 |
%if %{without py_ver_management}
|
|
|
2a4b716 |
%autopatch
|
|
|
2a4b716 |
%endif
|
|
|
2a4b716 |
|
|
|
2a4b716 |
# Rename the Fedora-specific README.md to avoid conflict with the upstream
|
|
|
2a4b716 |
# README.md.
|
|
|
2a4b716 |
# NOTE: The source file should stay named README.md so that Pagure renders it
|
|
|
2a4b716 |
# when one visits https://src.fedoraproject.org/rpms/pew.
|
|
|
2a4b716 |
mv %{SOURCE1} README.Fedora.md
|
|
|
9d499ce |
|
|
|
9d499ce |
# This script for shell completion can't be used for Fedora package
|
|
|
9d499ce |
rm -rf %{name}/shell_config/complete_deploy
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
|
|
|
9d499ce |
%build
|
|
|
9d499ce |
%py3_build
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
|
|
|
9d499ce |
%install
|
|
|
9d499ce |
%py3_install
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
|
|
|
9d499ce |
%if %{with check}
|
|
|
9d499ce |
%check
|
|
|
cd307ba |
PATH=%{buildroot}%{_bindir}:$PATH \
|
|
|
cd307ba |
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
|
cd307ba |
py.test-3 -v tests
|
|
|
9d499ce |
%endif
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
|
|
|
9d499ce |
%files
|
|
|
9d499ce |
%license LICENSE
|
|
|
2a4b716 |
%doc README.md README.Fedora.md
|
|
|
9d499ce |
%{_bindir}/pew
|
|
|
9d499ce |
%{python3_sitelib}/%{name}
|
|
|
9d499ce |
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
|
|
|
9d499ce |
|
|
|
f5fe9a9 |
|
|
|
9d499ce |
%changelog
|
|
|
1b79f96 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
1b79f96 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
1b79f96 |
|
|
|
517cdd1 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-4
|
|
|
517cdd1 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
517cdd1 |
|
|
|
98799fd |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-3
|
|
|
98799fd |
- Rebuilt for Python 3.8
|
|
|
98799fd |
|
|
|
2f950e1 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
2f950e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
2f950e1 |
|
|
|
f401fc5 |
* Wed Jun 12 2019 Tadej Janež <tadej.j@nez.si> 1.2.0-1
|
|
|
f401fc5 |
- Update to 1.2.0 release
|
|
|
f401fc5 |
- Drop the tests-connection-marker-fix patch since it has been upstreamed
|
|
|
2a4b716 |
- Remove Python version management functionality in Fedora 30+
|
|
|
a9a1e0a |
- Use automatic Python dependency generator
|
|
|
cd307ba |
- Improve pytest call to not include the current working directory as suggested
|
|
|
cd307ba |
by Zbigniew Jędrzejewski-Szmek:
|
|
|
cd307ba |
https://bugzilla.redhat.com/show_bug.cgi?id=1720757#c1
|
|
|
f401fc5 |
|
|
|
9d499ce |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
|
|
|
9d499ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9d499ce |
|
|
|
9d499ce |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-3
|
|
|
9d499ce |
- Rebuilt for Python 3.7
|
|
|
9d499ce |
|
|
|
9d499ce |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
|
|
|
9d499ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
9d499ce |
|
|
|
9d499ce |
* Fri Oct 13 2017 Michal Cyprian <mcyprian@redhat.com> - 1.1.2-1
|
|
|
9d499ce |
- Initial package.
|