79 lines
2.4 KiB
RPMSpec
79 lines
2.4 KiB
RPMSpec
Name: aactivator
|
|
Version: 2.0.0
|
|
Release: 7%{?dist}
|
|
Summary: Automatically source and unsource a project's environment
|
|
|
|
License: MIT
|
|
URL: https://github.com/Yelp/aactivator
|
|
Source: %{url}/archive/refs/tags/v%{version}.tar.gz
|
|
# The patch is necessary to get most integration tests passing in Fedora's
|
|
# build infrastructure.
|
|
Patch0: %{name}-set-path-in-integration-tests.patch
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
# required to run the test suite
|
|
BuildRequires: python3dist(pexpect)
|
|
BuildRequires: python3dist(pytest)
|
|
BuildRequires: zsh
|
|
|
|
%global _description %{expand:
|
|
aactivator is a simple tool that automatically sources ("activates") and
|
|
unsources a project's environment when entering and exiting it.}
|
|
|
|
%description %_description
|
|
|
|
%prep
|
|
%autosetup -p1 -n aactivator-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files -l aactivator
|
|
|
|
|
|
%check
|
|
# Using pytest-xdist here ("-n auto") leads to DeprecationWarnings from Python:
|
|
# DeprecationWarning: This process (pid=...) is multi-threaded, use of
|
|
# forkpty() may lead to deadlocks in the child.
|
|
# "test_aactivator_goes_missing_no_output" removes the executable "aactivator"
|
|
# as part of the test. In addition, getting that test to pass in Fedora's build
|
|
# process requires more code changes because the test assumes "aactivator" is
|
|
# located in the same directory as the Python executable.
|
|
%pytest -x -k "not test_aactivator_goes_missing_no_output"
|
|
|
|
|
|
%files -f %{pyproject_files}
|
|
%doc README.md
|
|
%{_bindir}/aactivator
|
|
|
|
|
|
%changelog
|
|
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
|
|
|
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2.0.0-6
|
|
- Rebuilt for Python 3.14.0rc3 bytecode
|
|
|
|
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2.0.0-5
|
|
- Rebuilt for Python 3.14.0rc2 bytecode
|
|
|
|
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
|
|
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 2.0.0-3
|
|
- Rebuilt for Python 3.14
|
|
|
|
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
|
|
%autochangelog
|