2019-05-15 17:27:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pypiserver
|
|
|
|
#
|
2024-12-05 01:52:33 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-05-15 17:27:32 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-03-19 07:34:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-05-15 17:27:32 +00:00
|
|
|
#
|
|
|
|
|
2024-12-05 01:52:33 +00:00
|
|
|
|
2023-09-12 07:12:16 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-05-09 20:48:38 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2023-09-12 07:12:16 +00:00
|
|
|
Name: python-pypiserver%{psuffix}
|
2024-12-05 01:52:33 +00:00
|
|
|
Version: 2.3.2
|
2019-05-15 17:27:32 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Minimal PyPI server for uploading & downloading packages with pip/easy_install
|
|
|
|
License: MIT
|
2024-12-05 01:52:33 +00:00
|
|
|
URL: https://github.com/pypiserver/pypiserver
|
2019-05-15 17:27:32 +00:00
|
|
|
Source: https://github.com/pypiserver/pypiserver/archive/v%{version}.tar.gz#/pypiserver-%{version}.tar.gz
|
2020-03-19 07:34:39 +00:00
|
|
|
BuildRequires: %{python_module pip >= 7}
|
|
|
|
BuildRequires: %{python_module setuptools-git >= 0.3}
|
2019-05-15 17:27:32 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-03-19 07:34:39 +00:00
|
|
|
BuildRequires: %{python_module wheel >= 0.25.0}
|
2019-05-15 17:27:32 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-12-05 01:52:33 +00:00
|
|
|
Requires: python-packaging
|
2019-05-15 17:27:32 +00:00
|
|
|
Requires: python-passlib >= 1.6
|
2024-12-05 01:52:33 +00:00
|
|
|
Requires: python-pip
|
|
|
|
%if 0%{?python_version_nodots} < 312
|
|
|
|
Requires: python-importlib-resources
|
|
|
|
%endif
|
2020-05-20 11:38:34 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-12-05 01:52:33 +00:00
|
|
|
Requires(postun): update-alternatives
|
2019-05-15 17:27:32 +00:00
|
|
|
BuildArch: noarch
|
2023-09-12 07:12:16 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
%if %{with test}
|
2024-12-05 01:52:33 +00:00
|
|
|
BuildRequires: %{python_module WebTest}
|
|
|
|
BuildRequires: %{python_module build >= 1.2}
|
2023-09-12 07:12:16 +00:00
|
|
|
BuildRequires: %{python_module pypiserver = %{version}}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
|
|
|
BuildRequires: %{python_module twine}
|
2020-03-19 07:34:39 +00:00
|
|
|
%endif
|
2023-09-12 07:12:16 +00:00
|
|
|
# /SECTION
|
2019-05-15 17:27:32 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Minimal PyPI server for uploading & downloading packagesj with pip/easy_install
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pypiserver-%{version}
|
Accepting request 946237 from home:bnavigator:branches:devel:languages:python
- Update to 1.4.2
* FIX: The entrypoint for the Dockerfile was failing when called
with no arguments (#344, thanks @elfjes!)
- Release 1.4.1
* FIX: The entrypoint for the Dockerfile no longer tries to
`chown` the entire `/data` directory, instead limiting itself
just to `/data/packages` as before (reported by @stephen-dexda
in #341, thanks!).
- Release 1.4.0
* DOC: Add docker-compose example with HTTPS configuration using
Traefix (#295, thanks @Lauszus!)
* DOC: Add link to zulip chat to README (aa2d78c)
* DOC: Documentation for running as a service in windows (#316,
thanks @kodaman2!)
* DOC: Fix typo in README HTML (#303, thanks @Gerardwx!)
* DOC: Moved flask-pypi-proxy and pip2pi to a new "Unmaintained
or archived" section (#326, thanks @Luttik!)
* DOC: Slightly clarify the relationship to warehouse. (#308,
thanks @Julian!)
* ENH: Add ignore list for the update command (#298, thanks
@peter-slovak!)
* ENH: Add official support and testing for Python 3.8 (#292) for
Python 3.8 compatibility
* ENH: Allow configuration of logging stream (#334, thanks
@elfjes)
* ENH: Include watchdog to enable caching in docker image (#323,
thanks @johnchildren!)
* FIX: Cherrypy import for newer versions of cherrypy in vendored
bottle.py (#301, thanks @TiemenSch!)
* FIX: Improved permissions management in Dockerfile (#330,
OBS-URL: https://build.opensuse.org/request/show/946237
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypiserver?expand=0&rev=8
2022-01-14 08:28:39 +00:00
|
|
|
sed -i '1{/env python/d}' pypiserver/*.py
|
2019-05-15 17:27:32 +00:00
|
|
|
# we don't need the extensions for smoke testing
|
|
|
|
rm -f pytest.ini
|
|
|
|
|
|
|
|
%build
|
2023-09-12 07:12:16 +00:00
|
|
|
%pyproject_wheel
|
2019-05-15 17:27:32 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-12 07:12:16 +00:00
|
|
|
%if !%{with test}
|
|
|
|
%pyproject_install
|
2020-05-20 11:38:34 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pypi-server
|
2019-05-15 17:27:32 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2023-09-12 07:12:16 +00:00
|
|
|
%endif
|
2019-05-15 17:27:32 +00:00
|
|
|
|
2023-09-12 07:12:16 +00:00
|
|
|
%if %{with test}
|
2019-05-15 17:27:32 +00:00
|
|
|
%check
|
Accepting request 787494 from home:pgajdos:python
- version update to 1.3.2
- ENH: The Dockerfile used for the official Docker images now uses Python 3.6
rather than Python 2.7 (#284, thanks @etene!)
- ENH: The `welcome.html` page has been updated to provide more metadata
and be more HTML-standards compliant (#283, thanks @maggyero!)
- FIX: the `pypi-server -U` command no longer fails when run inside the
Docker container (thanks to @mkolb-navican for reporting in #264)
- FIX: The `remove_pkg` API action now removes any extant instances of a
package name-version combination, not just the first one found. This means
that now, for example, if a `.whl` and `.tar.gz` file exist for the
requested package name and version, both will be removed (thanks to
@esciara for reporting in #268)
- FIX: include missing `simple/` path on a URL in the example pip commands
on the `welcome.html` page (@276, thanks @maggyero!)
- DOC: more consistent and accurate documentation for pip commands provided
on the `welcome.html` page (#278, thanks @maggyero!)
- DOC: fixes to the README to make it easier for people to use pypiserver
behind an apache webserver (#289, thanks @Helveg!)
- FIX: previously, it was possible to upload packages with hashing algorithms
other than md5, but downloading them again with pip was impossible due to
incorrect truncation of the hash. This has been fixed! (Thanks
@ArneBachmann for figuring out what was wrong and reporting the issue
in #265).
- FIX: argument parsing would previously fail for the short form of
``--help``, due an incorrect operator used during comparison (thanks to
@maggyero, #271)
- DOC: significant improvements to formatting and consistency in the README
(thanks to @maggyero, #270)
OBS-URL: https://build.opensuse.org/request/show/787494
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypiserver?expand=0&rev=4
2020-03-23 14:07:28 +00:00
|
|
|
# test_hash_algos:
|
|
|
|
# ERROR: No matching distribution found for a==1.0 (from centodeps)
|
|
|
|
# (see centodeps-setup.py)
|
2022-10-05 08:07:53 +00:00
|
|
|
%pytest tests -k "not (test_pipInstall_openOk or test_pipInstall_authedOk or test_hash_algos or test_pip_install_open_succeeds or test_pip_install_authed_succeeds)"
|
2023-09-12 07:12:16 +00:00
|
|
|
%endif
|
2019-05-15 17:27:32 +00:00
|
|
|
|
2020-05-20 11:38:34 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative pypi-server
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pypi-server
|
|
|
|
|
2023-09-12 07:12:16 +00:00
|
|
|
%if !%{with test}
|
2019-05-15 17:27:32 +00:00
|
|
|
%files %{python_files}
|
2024-12-05 01:52:33 +00:00
|
|
|
%doc README.md
|
2019-05-15 17:27:32 +00:00
|
|
|
%license LICENSE.txt
|
Accepting request 946237 from home:bnavigator:branches:devel:languages:python
- Update to 1.4.2
* FIX: The entrypoint for the Dockerfile was failing when called
with no arguments (#344, thanks @elfjes!)
- Release 1.4.1
* FIX: The entrypoint for the Dockerfile no longer tries to
`chown` the entire `/data` directory, instead limiting itself
just to `/data/packages` as before (reported by @stephen-dexda
in #341, thanks!).
- Release 1.4.0
* DOC: Add docker-compose example with HTTPS configuration using
Traefix (#295, thanks @Lauszus!)
* DOC: Add link to zulip chat to README (aa2d78c)
* DOC: Documentation for running as a service in windows (#316,
thanks @kodaman2!)
* DOC: Fix typo in README HTML (#303, thanks @Gerardwx!)
* DOC: Moved flask-pypi-proxy and pip2pi to a new "Unmaintained
or archived" section (#326, thanks @Luttik!)
* DOC: Slightly clarify the relationship to warehouse. (#308,
thanks @Julian!)
* ENH: Add ignore list for the update command (#298, thanks
@peter-slovak!)
* ENH: Add official support and testing for Python 3.8 (#292) for
Python 3.8 compatibility
* ENH: Allow configuration of logging stream (#334, thanks
@elfjes)
* ENH: Include watchdog to enable caching in docker image (#323,
thanks @johnchildren!)
* FIX: Cherrypy import for newer versions of cherrypy in vendored
bottle.py (#301, thanks @TiemenSch!)
* FIX: Improved permissions management in Dockerfile (#330,
OBS-URL: https://build.opensuse.org/request/show/946237
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypiserver?expand=0&rev=8
2022-01-14 08:28:39 +00:00
|
|
|
%{python_sitelib}/pypiserver
|
2024-12-05 01:52:33 +00:00
|
|
|
%{python_sitelib}/pypiserver-%{version}.dist-info
|
2020-05-20 11:38:34 +00:00
|
|
|
%python_alternative %{_bindir}/pypi-server
|
2023-09-12 07:12:16 +00:00
|
|
|
%endif
|
2019-05-15 17:27:32 +00:00
|
|
|
|
|
|
|
%changelog
|