forked from pool/python-pypiserver
- 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
87 lines
2.7 KiB
RPMSpec
87 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-pypiserver
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
%bcond_without python2
|
|
Name: python-pypiserver
|
|
Version: 1.4.2
|
|
Release: 0
|
|
Summary: Minimal PyPI server for uploading & downloading packages with pip/easy_install
|
|
License: MIT
|
|
URL: https://github.com/pypiserver
|
|
Source: https://github.com/pypiserver/pypiserver/archive/v%{version}.tar.gz#/pypiserver-%{version}.tar.gz
|
|
BuildRequires: %{python_module WebTest}
|
|
BuildRequires: %{python_module passlib >= 1.6}
|
|
BuildRequires: %{python_module pip >= 7}
|
|
BuildRequires: %{python_module pytest >= 3.5}
|
|
BuildRequires: %{python_module setuptools-git >= 0.3}
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module tox}
|
|
BuildRequires: %{python_module twine}
|
|
BuildRequires: %{python_module wheel >= 0.25.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-passlib >= 1.6
|
|
Requires: python-setuptools
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
%if %{with python2}
|
|
BuildRequires: python-mock
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Minimal PyPI server for uploading & downloading packagesj with pip/easy_install
|
|
|
|
%prep
|
|
%setup -q -n pypiserver-%{version}
|
|
sed -i '1{/env python/d}' pypiserver/*.py
|
|
# we don't need the extensions for smoke testing
|
|
rm -f pytest.ini
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/pypi-server
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# test_hash_algos:
|
|
# ERROR: No matching distribution found for a==1.0 (from centodeps)
|
|
# (see centodeps-setup.py)
|
|
%pytest tests -k "not (test_pipInstall_openOk or test_pipInstall_authedOk or test_hash_algos)"
|
|
|
|
%post
|
|
%python_install_alternative pypi-server
|
|
|
|
%postun
|
|
%python_uninstall_alternative pypi-server
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/pypiserver
|
|
%{python_sitelib}/pypiserver-%{version}*-info
|
|
%python_alternative %{_bindir}/pypi-server
|
|
|
|
%changelog
|