14
0
Files
python-pypiserver/python-pypiserver.spec
Daniel Garcia aa393cdd8b - Update to 1.5.0
* CHORE: pull CHANGES.rst from v1.4.x
  * DOC: add call for maintainers to README
  * DOC: Fixes in README examples (#380)
  * DOC: start of empty contributor documentation directory (#383)
  * ENH: added JSON Topic for use with micropython-upip (#395, thanks @awachtler)
  * ENH: Backwards-compatible argparse config (not yet in use) (#339)
  * ENH: Refactor storage operations into separate Backend classes (#348)
  * ENH: Restore ability to drop hashing in new config (#347)
  * ENH: Specify doctype for generated pages.
  * Fixed violation of PEP 503 warning with pip>=22.
  * (#413 and #414, thanks @domdfcoding and @luismsgomes)
  * ENH: Use argparse config throughout app (#349)
  * FIX: Fix silly typo in the readme :) (#362)
  * FIX: fix small typing and lint errors in config.py (#421)
  * FIX: fix version incompatibility that breaks twine in docker test (#356)
  * FIX: fix(setuptools-in-tests) add packages=[] in test setup (#425)
  * FIX: Gunicorn/gevent docker, log fixes, cache busting (#371)
  * MAINT: Add aggregate "tests" job (#370)
  * MAINT: Add release to PyPi job (#428)
  * MAINT: add github action for release management (#417)
  * MAINT: Add python 3.9 testing (#351, disabled in #407)
  * MAINT: Cleanup code to python 3.6 (#342)
  * MAINT: contributor update in README (#415)
  * MAINT: disable unstable test for Python 3.9 (#407, planned temporary)
  * MAINT: Docker improvements (#365)
  * MAINT: drop standalone, drop py 2.7 and 3.5 (#338)
  * MAINT: Merge branch 'v1.4.x'
  * MAINT: Push to Docker Hub from CI (#375)
  * MAINT: Refactor test_server to increase speed (#354)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypiserver?expand=0&rev=9
2022-10-05 08:07:53 +00:00

87 lines
2.8 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.5.0
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 or test_pip_install_open_succeeds or test_pip_install_authed_succeeds)"
%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