|
|
e8542eb |
%global srcname twine
|
|
|
e8542eb |
|
|
|
4f70196 |
%bcond_without tests
|
|
|
d3c392e |
%bcond_without docs
|
|
|
4f70196 |
%bcond_with internet
|
|
|
4f70196 |
|
|
|
e8542eb |
Name: python-%{srcname}
|
|
|
b41c259 |
Version: 5.0.0
|
|
|
b41c259 |
Release: 1%{?dist}
|
|
|
e8542eb |
Summary: Collection of utilities for interacting with PyPI
|
|
|
e8542eb |
|
|
|
e8542eb |
License: ASL 2.0
|
|
|
e8542eb |
URL: https://github.com/pypa/%{srcname}
|
|
|
4f70196 |
Source0: %{pypi_source}
|
|
|
e8542eb |
BuildArch: noarch
|
|
|
e8542eb |
|
|
|
e8542eb |
%description
|
|
|
e8542eb |
Twine is a utility for interacting with PyPI.
|
|
|
e8542eb |
Currently it only supports registering projects and uploading distributions.
|
|
|
e8542eb |
|
|
|
33d99bd |
%package -n %{srcname}
|
|
|
33d99bd |
Summary: Twine is a utility for publishing Python packages on PyPI
|
|
|
4f70196 |
|
|
|
4383711 |
BuildRequires: python3-devel
|
|
|
5d14395 |
BuildRequires: pyproject-rpm-macros
|
|
|
4f70196 |
|
|
|
4f70196 |
%if %{with tests}
|
|
|
e3182de |
# Test dependencies
|
|
|
dcdf98a |
BuildRequires: python3dist(build)
|
|
|
39f59bd |
BuildRequires: python3dist(jaraco-envs)
|
|
|
e3182de |
BuildRequires: python3dist(munch)
|
|
|
e3182de |
BuildRequires: python3dist(portend)
|
|
|
4f70196 |
BuildRequires: python3dist(pretend)
|
|
|
e3182de |
BuildRequires: python3dist(pytest)
|
|
|
d1dfcc7 |
BuildRequires: python3dist(pytest-cov)
|
|
|
d3c392e |
%if %{with docs}
|
|
|
5d14395 |
# Doc (manpage) deps
|
|
|
5d14395 |
BuildRequires: python3dist(sphinx)
|
|
|
f064724 |
BuildRequires: python3dist(sphinxcontrib-programoutput)
|
|
|
d3c392e |
%endif
|
|
|
d3c392e |
# with docs
|
|
|
4f70196 |
%if %{with internet}
|
|
|
1393e3f |
# pytest-services and pytest-socket are not packaged yet
|
|
|
4f70196 |
#BuildRequires: python3dist(pytest-services)
|
|
|
1393e3f |
#BuildRequires: python3dist(pytest-socket)
|
|
|
4f70196 |
BuildRequires: gcc
|
|
|
4f70196 |
BuildRequires: libffi-devel
|
|
|
4f70196 |
BuildRequires: git-core
|
|
|
d3c392e |
%endif
|
|
|
d3c392e |
# with internet
|
|
|
4f70196 |
|
|
|
d3c392e |
%endif
|
|
|
d3c392e |
# with tests
|
|
|
4f70196 |
|
|
Jeremy Cline |
b425bfa |
Obsoletes: python2-%{srcname} < 1.12.2-3
|
|
Jeremy Cline |
b425bfa |
Obsoletes: python3-%{srcname} < 1.12.2-3
|
|
|
e8542eb |
|
|
|
00af92d |
%description -n %{srcname}
|
|
|
e8542eb |
Twine is a utility for interacting with PyPI.
|
|
|
e8542eb |
Currently it only supports registering projects and uploading distributions.
|
|
|
e8542eb |
|
|
|
e8542eb |
%prep
|
|
|
e8542eb |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
e8542eb |
|
|
|
5d14395 |
%generate_buildrequires
|
|
|
5d14395 |
%pyproject_buildrequires -r
|
|
|
5d14395 |
|
|
|
1393e3f |
%if %{without internet}
|
|
|
1393e3f |
sed -i '/--disable-socket/d' pytest.ini
|
|
|
1393e3f |
%endif
|
|
|
1393e3f |
|
|
|
e8542eb |
%build
|
|
|
5d14395 |
%pyproject_wheel
|
|
|
d3c392e |
%if %{with docs}
|
|
|
f064724 |
PYTHONPATH=$PWD sphinx-build-3 -b man docs/ docs/build/man -c docs/
|
|
|
f064724 |
rm -r docs/build/man/.doctrees
|
|
|
d3c392e |
%endif
|
|
|
e8542eb |
|
|
|
e8542eb |
%install
|
|
|
5d14395 |
%pyproject_install
|
|
|
5d14395 |
%pyproject_save_files twine
|
|
|
d3c392e |
%if %{with docs}
|
|
|
f064724 |
install -p -D -T -m 0644 docs/build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
|
|
|
d3c392e |
%endif
|
|
|
e8542eb |
|
|
|
4f70196 |
%if %{with tests}
|
|
|
e8542eb |
%check
|
|
|
4f70196 |
%pytest -v \
|
|
|
4f70196 |
%if %{without internet}
|
|
|
4f70196 |
--deselect tests/test_integration.py \
|
|
|
4f70196 |
--deselect tests/test_upload.py::test_check_status_code_for_wrong_repo_url \
|
|
|
d3c392e |
%endif
|
|
|
4f70196 |
;
|
|
|
d3c392e |
# without internet
|
|
|
d3c392e |
%endif
|
|
|
d3c392e |
# with tests
|
|
|
e8542eb |
|
|
|
5d14395 |
%files -n %{srcname} -f %{pyproject_files}
|
|
|
e8542eb |
%license LICENSE
|
|
|
e8542eb |
%doc README.rst AUTHORS
|
|
|
d3c392e |
%if %{with docs}
|
|
|
33d99bd |
%{_mandir}/man1/%{srcname}.1*
|
|
|
d3c392e |
%endif
|
|
|
00af92d |
%{_bindir}/twine
|
|
|
e8542eb |
|
|
|
e8542eb |
%changelog
|
|
|
b41c259 |
* Sun Mar 17 2024 Charalampos Stratakis <cstratak@redhat.com> - 5.0.0-1
|
|
|
b41c259 |
- Update to 5.0.0
|
|
|
b41c259 |
- Resolves: rhbz#2263785
|
|
|
b41c259 |
|
|
|
d3c392e |
* Thu Feb 29 2024 Michel Lind <salimma@fedoraproject.org> - 4.0.2-4
|
|
|
d3c392e |
- Add bcond for documentation building
|
|
|
d3c392e |
- Fix warnings when regenerating the RPM by moving post-endif comments to new lines
|
|
|
d3c392e |
|
|
|
75f74c5 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-3
|
|
|
75f74c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
75f74c5 |
|
|
|
a93dde0 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-2
|
|
|
a93dde0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
a93dde0 |
|
|
|
6a3e6fe |
* Mon Aug 28 2023 Charalampos Stratakis <cstratak@redhat.com> - 4.0.2-1
|
|
|
6a3e6fe |
- Update to 4.0.2
|
|
|
6a3e6fe |
Resolves: rhbz#2150064
|
|
|
6a3e6fe |
|
|
|
c019877 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-5
|
|
|
c019877 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
c019877 |
|
|
|
42cb58b |
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 4.0.1-4
|
|
|
42cb58b |
- Rebuilt for Python 3.12
|
|
|
42cb58b |
|
|
|
b3f1575 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
|
|
|
b3f1575 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
b3f1575 |
|
|
|
2eb47c6 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
|
|
|
2eb47c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
2eb47c6 |
|
|
|
c8becb4 |
* Wed Jun 29 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.0.1-1
|
|
|
c8becb4 |
- Update to 4.0.1
|
|
|
c8becb4 |
Resolves: rhbz#2092433
|
|
|
c8becb4 |
|
|
|
e89e474 |
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 4.0.0-2
|
|
|
e89e474 |
- Rebuilt for Python 3.11
|
|
|
e89e474 |
|
|
|
dcdf98a |
* Tue Apr 12 2022 Charalampos Stratakis <cstratak@redhat.com> - 4.0.0-1
|
|
|
dcdf98a |
- Update to 4.0.0
|
|
|
dcdf98a |
Resolves: rhbz#2070773
|
|
|
dcdf98a |
|
|
|
ac0e1aa |
* Thu Feb 24 2022 Charalampos Stratakis <cstratak@redhat.com> - 3.8.0-1
|
|
|
ac0e1aa |
- Update to 3.8.0 (#2049983)
|
|
|
ac0e1aa |
|
|
|
19ad31e |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
|
|
|
19ad31e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
19ad31e |
|
|
|
a48a3ad |
* Thu Dec 23 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.7.1-1
|
|
|
a48a3ad |
- Update to 3.7.1(#2030010)
|
|
|
a48a3ad |
|
|
|
c6afee0 |
* Thu Dec 02 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.7.0-1
|
|
|
c6afee0 |
- Update to 3.7.0
|
|
|
c6afee0 |
- Fixes: rhbz(#2028309)
|
|
|
c6afee0 |
|
|
|
f064724 |
* Wed Nov 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-1
|
|
|
f064724 |
- Update to 3.6.0 (#2019939)
|
|
|
f064724 |
|
|
|
51921fd |
* Tue Aug 03 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.4.2-1
|
|
|
51921fd |
- Update to 3.4.2 (#1984151)
|
|
|
51921fd |
|
|
|
25bf85e |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-2
|
|
|
25bf85e |
- Second attempt - Rebuilt for
|
|
|
25bf85e |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
25bf85e |
|
|
|
e3182de |
* Tue Jun 29 2021 Lumír Balhar <lbalhar@redhat.com> - 3.4.1-1
|
|
|
e3182de |
- Update to 3.4.1
|
|
|
e3182de |
Resolves: rhbz#1939380
|
|
|
e3182de |
|
|
|
19334c7 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.3.0-3
|
|
|
19334c7 |
- Rebuilt for Python 3.10
|
|
|
19334c7 |
|
|
|
c3ee786 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
|
|
c3ee786 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
c3ee786 |
|
|
|
1393e3f |
* Tue Jan 05 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.3.0-1
|
|
|
1393e3f |
- Update to 3.3.0 (#1910336)
|
|
|
1393e3f |
|
|
|
229da5c |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
229da5c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
229da5c |
|
|
|
d1dfcc7 |
* Wed Jun 24 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.2.0-1
|
|
|
d1dfcc7 |
- Update to 3.2.0 (#1850277)
|
|
|
d1dfcc7 |
|
|
|
4f70196 |
* Fri Jun 05 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.1.1-1
|
|
|
4f70196 |
- Update to 3.1.1 (#1755042)
|
|
|
4f70196 |
|
|
|
1c0557a |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.15.0-3
|
|
|
1c0557a |
- Rebuilt for Python 3.9
|
|
|
1c0557a |
|
|
|
d9670be |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
|
d9670be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
d9670be |
|
|
|
cc6d933 |
* Tue Sep 17 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.15.0-1
|
|
|
cc6d933 |
- Update to 1.15.0 (#1750057).
|
|
|
cc6d933 |
- https://github.com/pypa/twine/blob/1.15.0/docs/changelog.rst
|
|
|
cc6d933 |
|
|
|
a11ee95 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.2-5
|
|
|
a11ee95 |
- Rebuilt for Python 3.8
|
|
|
a11ee95 |
|
|
|
20cef2a |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.2-4
|
|
|
20cef2a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
20cef2a |
|
|
Jeremy Cline |
b425bfa |
* Tue Apr 30 2019 Jeremy Cline <jcline@redhat.com> - 1.12.2-3
|
|
Jeremy Cline |
b425bfa |
- Bump the obsoletes so the upgrade path from F29 works
|
|
Jeremy Cline |
da60cc8 |
- Include the manpage since the dep chain for docs building is broken
|
|
Jeremy Cline |
b425bfa |
|
|
|
76a1e05 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.2-2
|
|
|
76a1e05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
76a1e05 |
|
|
|
09101d9 |
* Wed Dec 05 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.12.2-1
|
|
|
09101d9 |
- Update to 1.12.2 (#1551178).
|
|
|
09101d9 |
- https://github.com/pypa/twine/blob/1.12.2/docs/changelog.rst
|
|
|
09101d9 |
|
|
|
33d99bd |
* Tue Nov 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.10.0-6
|
|
|
33d99bd |
- Drop python2 subpackage
|
|
|
33d99bd |
|
|
|
8e35182 |
* Mon Sep 24 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.0-5
|
|
|
8e35182 |
- Make the keyring dependency optional
|
|
|
8e35182 |
- Run tests
|
|
|
8e35182 |
|
|
Jeremy Cline |
3da2253 |
* Thu Sep 13 2018 Jeremy Cline <jeremy@jcline.org> - 1.10.0-4
|
|
Jeremy Cline |
3da2253 |
- Update the summary of the "twine" package
|
|
Jeremy Cline |
3da2253 |
|
|
|
a4d653c |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
|
|
|
a4d653c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
a4d653c |
|
|
|
4bd019e |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.0-2
|
|
|
4bd019e |
- Rebuilt for Python 3.7
|
|
|
4bd019e |
|
|
|
099173f |
* Thu Mar 08 2018 Jeremy Cline <jeremy@jcline.org> - 1.10.0-1
|
|
|
099173f |
- Update to latest upstream
|
|
|
099173f |
|
|
|
75bfa57 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-5
|
|
|
75bfa57 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
75bfa57 |
|
|
|
4383711 |
* Tue Nov 14 2017 Jeremy Cline <jeremy@jcline.org> - 1.9.1-4
|
|
|
4383711 |
- Re-add the Python 2 package (rhbz #1512552)
|
|
|
4383711 |
|
|
|
00af92d |
* Tue Oct 31 2017 Jeremy Cline <jeremy@jcline.org> - 1.9.1-3
|
|
|
00af92d |
- Drop pythonX- subpackages as Twine is a CLI (rhbz #1507815)
|
|
|
00af92d |
|
|
|
c104295 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
|
|
|
c104295 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c104295 |
|
|
|
313c27f |
* Thu Jun 01 2017 Jeremy Cline <jeremy@jcline.org> - 1.9.1-1
|
|
|
313c27f |
- Update to 1.9.1 (#1448841)
|
|
|
490a5a0 |
- Add python-keyring and python-tqdm as dependencies
|
|
|
490a5a0 |
- Remove python-clint as a dependency
|
|
|
313c27f |
|
|
|
7b309f6 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-3
|
|
|
7b309f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
7b309f6 |
|
|
|
cad6a2f |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-2
|
|
|
cad6a2f |
- Rebuild for Python 3.6
|
|
|
cad6a2f |
|
|
|
d1d1782 |
* Tue Aug 09 2016 Jeremy Cline <jeremy@jcline.org> - 1.8.1-1
|
|
|
d1d1782 |
- Update to 1.8.1
|
|
|
d1d1782 |
|
|
|
d9dfcaf |
* Mon Jul 18 2016 Jeremy Cline <jeremy@jcline.org> - 1.7.4-3
|
|
|
d9dfcaf |
- Keep objects.inv to support intersphinx documentation
|
|
|
d9dfcaf |
|
|
|
e8542eb |
* Mon Jul 18 2016 Jeremy Cline <jeremy@jcline.org> - 1.7.4-2
|
|
|
e8542eb |
- Add clint as a build dependency so the tests pass
|
|
|
e8542eb |
|
|
|
e8542eb |
* Fri Jul 15 2016 Jeremy Cline <jeremy@jcline.org> - 1.7.4-1
|
|
|
e8542eb |
- Update to the latest upstream release
|
|
|
e8542eb |
- Add clint as a dependency
|
|
|
e8542eb |
|
|
|
e8542eb |
* Tue Jul 12 2016 Jeremy Cline <jeremy@jcline.org> - 1.6.5-5
|
|
|
e8542eb |
- Remove unnecessary shebang in __main__.py that caused rpmlint errors
|
|
|
e8542eb |
|
|
|
e8542eb |
* Mon Jul 11 2016 Jeremy Cline <jeremy@jcline.org> - 1.6.5-4
|
|
|
e8542eb |
- Mark man pages as docs
|
|
|
e8542eb |
|
|
|
e8542eb |
* Mon Jul 11 2016 Jeremy Cline <jeremy@jcline.org> - 1.6.5-3
|
|
|
e8542eb |
- Use python_version macro rather than hardcoding version numbers.
|
|
|
e8542eb |
|
|
|
e8542eb |
* Fri Jul 08 2016 Jeremy Cline <jeremy@jcline.org> - 1.6.5-2
|
|
|
e8542eb |
- Update Source0 url to the <name>-<version>.tar.gz format
|
|
|
e8542eb |
|
|
|
e8542eb |
* Thu Jun 09 2016 Jeremy Cline <jeremy@jcline.org> - 1.6.5-1
|
|
|
e8542eb |
- Initial commit
|