forked from pool/python-devpi-client
Accepting request 730493 from home:jayvdb:devpi
from :misc OBS-URL: https://build.opensuse.org/request/show/730493 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-devpi-client?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
devpi-client-5.0.0.tar.gz
Normal file
3
devpi-client-5.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:786c3472e95807e397b961f60f472e91c30373caecf132a946c51856581fd243
|
||||
size 73167
|
||||
9
python-devpi-client.changes
Normal file
9
python-devpi-client.changes
Normal file
@@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 10 11:58:58 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Update to v5.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 21 01:44:49 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for v4.3.0
|
||||
88
python-devpi-client.spec
Normal file
88
python-devpi-client.spec
Normal file
@@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package python-devpi-client
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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() python-%{**} python3-%{**}}
|
||||
Name: python-devpi-client
|
||||
Version: 5.0.0
|
||||
Release: 0
|
||||
Summary: Client for devpi
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/devpi/devpi
|
||||
Source: https://files.pythonhosted.org/packages/source/d/devpi-client/devpi-client-%{version}.tar.gz
|
||||
Patch0: test_sys_executable.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-check-manifest >= 0.28
|
||||
Requires: python-devpi-common >= 3.4.0
|
||||
Requires: python-pkginfo >= 1.4.2
|
||||
Requires: python-pluggy >= 0.6.0
|
||||
Requires: python-py >= 1.4.31
|
||||
Requires: python-tox >= 3.1.0
|
||||
Requires: python-wheel
|
||||
Recommends: git-core
|
||||
Recommends: python-Sphinx
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module check-manifest >= 0.28}
|
||||
BuildRequires: %{python_module devpi-common >= 3.4.0}
|
||||
BuildRequires: %{python_module devpi-server}
|
||||
BuildRequires: %{python_module pkginfo >= 1.4.2}
|
||||
BuildRequires: %{python_module pluggy >= 0.6.0}
|
||||
BuildRequires: %{python_module py >= 1.4.31}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module tox >= 3.1.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: git-core
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
devpi upload/install/... workflow commands for Python developers.
|
||||
|
||||
%prep
|
||||
%setup -q -n devpi-client-%{version}
|
||||
rm tox.ini
|
||||
%patch0 -p1
|
||||
|
||||
sed -i 's/"python \(setup.py[^"]*\)"/(sys.executable + " \1")/' testing/test_upload.py
|
||||
sed -i 's/"python", "setup.py"/sys.executable, "setup.py"/' testing/test_test.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export PATH=$PATH:%{buildroot}/%{_bindir}
|
||||
# Unknown failures https://github.com/devpi/devpi/issues/706
|
||||
%pytest -k 'not (test_simple_install_new_venv_workflow or test_simple_install_activated_venv_workflow)'
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/devpi
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
14
test_sys_executable.patch
Normal file
14
test_sys_executable.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- devpi-client-5.0.0/testing/test_upload.py.orig 2019-09-13 09:09:28.701349155 +0700
|
||||
+++ devpi-client-5.0.0/testing/test_upload.py 2019-09-13 09:09:49.097574807 +0700
|
||||
@@ -45,11 +45,6 @@
|
||||
|
||||
@pytest.mark.skipif("config.option.fast")
|
||||
class TestCheckout:
|
||||
- @pytest.fixture(autouse=True)
|
||||
- def no_sys_executable(self, monkeypatch):
|
||||
- """ make sure sys.executable is not used accidentally. """
|
||||
- monkeypatch.setattr(sys, "executable", None)
|
||||
-
|
||||
@pytest.fixture(scope="class", params=[".", "setupdir"])
|
||||
def setupdir_rel(self, request):
|
||||
return request.param
|
||||
Reference in New Issue
Block a user