aaf6e3f
%global pypi_name pgcli
aaf6e3f
aaf6e3f
Name:           %{pypi_name}
0c32a55
Version:        4.0.1
0c32a55
Release:        1%{?dist}
aaf6e3f
Summary:        CLI for Postgres Database. With auto-completion and syntax highlighting
aaf6e3f
f357b7d
License:        BSD-3-Clause
7508a79
URL:            https://www.pgcli.com/
aaf6e3f
Source0:        %{pypi_source}
c283cad
aaf6e3f
BuildArch:      noarch
aaf6e3f
aaf6e3f
BuildRequires:  python3-devel
c283cad
BuildRequires:  pyproject-rpm-macros
c283cad
c283cad
# Additional BuildRequires for tests, not in the package metadata. Versions
c283cad
# come from tox.ini in unreleased upstream sources. Note that upstream wants
c283cad
# pytest <= 3.0.7, and we will have to unpin it and hope for the best.
23d2efa
BuildRequires:  python3dist(pytest) >= 2.7
1ae1878
BuildRequires:  python3dist(behave) >= 1.2.4
1ae1878
BuildRequires:  python3dist(pexpect) >= 3.3
23d2efa
BuildRequires:  python3dist(sshtunnel) >= 0.4
c283cad
c283cad
%py_provides python3-%{pypi_name}
1ae1878
aaf6e3f
%description
aaf6e3f
CLI for Postgres Database. With auto-completion and syntax highlighting
aaf6e3f
6bdacf6
%pyproject_extras_subpkg -n python3-%{pypi_name} keyring
6bdacf6
c283cad
%generate_buildrequires
c283cad
%pyproject_buildrequires -x keyring
c283cad
aaf6e3f
%prep
23d2efa
%autosetup
aaf6e3f
aaf6e3f
%build
c283cad
%pyproject_wheel
aaf6e3f
aaf6e3f
%install
c283cad
%pyproject_install
c283cad
%pyproject_save_files %{pypi_name}
aaf6e3f
1ae1878
%check
c283cad
%pytest
1ae1878
c283cad
%files -f %{pyproject_files}
aaf6e3f
%doc README.rst changelog.rst
aaf6e3f
%{_bindir}/%{pypi_name}
aaf6e3f
aaf6e3f
%changelog
0c32a55
* Thu Nov 02 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 4.0.1-1
0c32a55
- Update to 4.0.1 (close RHBZ#2246795)
0c32a55
f4217e7
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-4
f4217e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f4217e7
55ab558
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
55ab558
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
55ab558
f357b7d
* Tue Nov 29 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.5.0-2
f357b7d
- Update License to SPDX
f357b7d
23d2efa
* Thu Nov 03 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.5.0-1
23d2efa
- Update to 3.5.0
23d2efa
d23deb1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-7
d23deb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
d23deb1
6e6d886
* Fri Jul 15 2022 Python Maint <python-maint@redhat.com> - 3.1.0-6
6e6d886
- Rebuilt for Python 3.11
6e6d886
e9ea208
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-5
e9ea208
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
e9ea208
1dcc543
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
1dcc543
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1dcc543
bd55cff
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.1.0-3
bd55cff
- Rebuilt for Python 3.10
bd55cff
c283cad
* Mon Mar 29 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.0-2
c283cad
- Resolve RHBZ#1923075
c283cad
- Use pyproject-rpm-macros to eliminate error-prone manual BR’s
c283cad
- Do not manually duplicate automatic Requires
c283cad
- Drop obsolete sed invocation on setup.py
c283cad
- Do not use obsolete python_provide macro; use py_provides macro instead
c283cad
- Add the Python extras metapackage for the keyring extra
c283cad
- Use the pytest macro
503cff2
- Stop removing bundled egg-info
7508a79
- Switch to HTTPS URL
c283cad
47a47ae
* Sat Feb 20 2021 Dick Marinus 
47a47ae
- Update to v3.1.0
47a47ae
0c3a0d3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-6
0c3a0d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0c3a0d3
65767ae
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
65767ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
65767ae
bff6d13
* Tue Jul 07 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.0.0-4
bff6d13
- lower requirements to prompt_toolkit 2.0.6 +
bff6d13
1ae1878
* Tue Jun 2 2020 Dick Marinus <dick@mrns.nl> - 3.0.0-3
1ae1878
- Add tests
1ae1878
1652b43
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-2
1652b43
- Rebuilt for Python 3.9
1652b43
aaf6e3f
* Mon May 04 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.0.0-1
aaf6e3f
- Initial package.
1ae1878
- fix autosetup macro usage