-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython3-envon.spec
More file actions
89 lines (72 loc) · 3.15 KB
/
python3-envon.spec
File metadata and controls
89 lines (72 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%global srcname envon
Name: python3-%{srcname}
Version: 0.1.5
Release: 1%{?dist}
Summary: Cross-shell Python virtual environment activator
License: MIT
URL: https://github.com/Userfrom1995/%{srcname}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
%description
envon is a cross-shell Python virtual environment activator that emits
the correct activation command for your shell. It auto-detects the
nearest or specified virtual environment and supports bash, zsh, sh,
fish, powershell, pwsh, nushell, cmd, and csh/tcsh/cshell.
It simplifies virtual environment activation across different shells
and provides a unified interface for discovering and activating
Python virtual environments in your projects.
%prep
%autosetup -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{srcname}
# Install shell bootstrap files to datadir
install -d -m 0755 %{buildroot}%{_datadir}/%{srcname}
install -p -m 0644 src/%{srcname}/bootstrap_bash.sh %{buildroot}%{_datadir}/%{srcname}/
install -p -m 0644 src/%{srcname}/bootstrap_sh.sh %{buildroot}%{_datadir}/%{srcname}/
install -p -m 0644 src/%{srcname}/bootstrap_fish.fish %{buildroot}%{_datadir}/%{srcname}/
install -p -m 0644 src/%{srcname}/bootstrap_powershell.ps1 %{buildroot}%{_datadir}/%{srcname}/
install -p -m 0644 src/%{srcname}/bootstrap_csh.csh %{buildroot}%{_datadir}/%{srcname}/
install -p -m 0644 src/%{srcname}/bootstrap_csh_fixed.csh %{buildroot}%{_datadir}/%{srcname}/
install -p -m 0644 src/%{srcname}/bootstrap_nushell.nu %{buildroot}%{_datadir}/%{srcname}/
# Install man page
install -d -m 0755 %{buildroot}%{_mandir}/man1
install -p -m 0644 docs/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/
%check
%pyproject_check_import %{srcname}
%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.md docs/
%{_bindir}/%{srcname}
%{_datadir}/%{srcname}/
%{_mandir}/man1/%{srcname}.1*
%changelog
* Mon Feb 09 2026 User1995 <userfrom1995@gmail.com> - 0.1.5-1
- Update to version 0.1.5
- Improve venv resolution logic (active venv > WORKON_HOME)
- Add WORKON_HOME fallback for default command
- Auto-select single environment in WORKON_HOME
- Fix WORKON_HOME shadowing issues
* Sat Jan 03 2026 User1995 <userfrom1995@gmail.com> - 0.1.4-1
- Update to version 0.1.4
- Add comprehensive man page for envon command
- Clarify activation usage in documentation
- Improve VIRTUAL_ENV fallback behavior documentation
* Sat Jan 03 2026 User1995 <userfrom1995@gmail.com> - 0.1.3-1
- Update to version 0.1.3
- Use GitHub release tarball as Source0 (fixes MD5sum check errors)
- Comply with Fedora Python Packaging Guidelines
- Use pyproject-rpm-macros for modern Python packaging
- Remove explicit Requires - use automatic dependency generator
- Add %%check section with %%pyproject_check_import
- Use install command with proper permissions for bootstrap files
- Fix URL capitalization
- Add man page for envon command
* Mon Nov 18 2024 User1995 <userfrom1995@gmail.com> - 0.1.1-1
- Initial package