2019-12-18 10:30:42 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-poetry
|
|
|
|
#
|
2020-02-17 07:18:55 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-12-18 10:30:42 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python2 1
|
2020-03-23 18:44:32 +00:00
|
|
|
%define dephell_loglevel DEBUG
|
2019-12-18 10:30:42 +00:00
|
|
|
Name: python-poetry
|
2020-07-05 12:09:10 +00:00
|
|
|
Version: 1.0.9
|
2019-12-18 10:30:42 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python dependency management and packaging
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://poetry.eustace.io/
|
|
|
|
# GitHub archive doesnt contain setup.py; sdist doesnt contain tests
|
|
|
|
Source: https://github.com/sdispater/poetry/archive/%{version}.tar.gz#/poetry-%{version}.tar.gz
|
|
|
|
# https://github.com/dephell/dephell/issues/330
|
|
|
|
Patch0: simplify-toml.patch
|
|
|
|
BuildRequires: %{python_module CacheControl >= 0.12.4}
|
2020-03-24 11:12:47 +00:00
|
|
|
BuildRequires: %{python_module cachy >= 0.3.0}
|
|
|
|
BuildRequires: %{python_module cleo >= 0.7.6}
|
|
|
|
BuildRequires: %{python_module clikit >= 0.4.2}
|
2019-12-18 10:30:42 +00:00
|
|
|
BuildRequires: %{python_module dephell}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module html5lib >= 1.0}
|
|
|
|
BuildRequires: %{python_module httpretty}
|
2020-03-24 11:12:47 +00:00
|
|
|
BuildRequires: %{python_module jsonschema >= 3.1}
|
2019-12-18 10:30:42 +00:00
|
|
|
BuildRequires: %{python_module keyring > 18.0}
|
|
|
|
BuildRequires: %{python_module lockfile}
|
2020-03-24 11:12:47 +00:00
|
|
|
BuildRequires: %{python_module pexpect >= 4.7.0}
|
2019-12-18 10:30:42 +00:00
|
|
|
BuildRequires: %{python_module pkginfo >= 1.4}
|
|
|
|
BuildRequires: %{python_module pyparsing >= 2.2}
|
|
|
|
BuildRequires: %{python_module pyrsistent >= 0.14.2}
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests >= 2.18}
|
|
|
|
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module shellingham >= 1.1}
|
2020-03-24 11:12:47 +00:00
|
|
|
BuildRequires: %{python_module tomlkit >= 0.5.11}
|
2019-12-18 10:30:42 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: git-core
|
2020-03-23 18:44:32 +00:00
|
|
|
BuildRequires: python-dephell-rpm-macros
|
2019-12-18 10:30:42 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-CacheControl >= 0.12.4
|
2020-03-24 11:12:47 +00:00
|
|
|
Requires: python-cachy >= 0.3.0
|
|
|
|
Requires: python-cleo >= 0.7.6
|
|
|
|
Requires: python-clikit >= 0.4.2
|
2019-12-18 10:30:42 +00:00
|
|
|
Requires: python-html5lib >= 1.0
|
2020-03-24 11:12:47 +00:00
|
|
|
Requires: python-jsonschema >= 3.1
|
2019-12-18 10:30:42 +00:00
|
|
|
Requires: python-keyring > 18.0
|
|
|
|
Requires: python-lockfile
|
2020-03-24 11:12:47 +00:00
|
|
|
Requires: python-pexpect >= 4.7.0
|
2019-12-18 10:30:42 +00:00
|
|
|
Requires: python-pkginfo >= 1.4
|
|
|
|
Requires: python-pyparsing >= 2.2
|
|
|
|
Requires: python-pyrsistent >= 0.14.2
|
|
|
|
Requires: python-requests >= 2.18
|
|
|
|
Requires: python-requests-toolbelt >= 0.8.0
|
2020-03-24 11:12:47 +00:00
|
|
|
Requires: python-setuptools
|
2019-12-18 10:30:42 +00:00
|
|
|
Requires: python-shellingham >= 1.1
|
2020-03-24 11:12:47 +00:00
|
|
|
Requires: python-tomlkit >= 0.5.11
|
2019-12-18 10:30:42 +00:00
|
|
|
Recommends: git-core
|
|
|
|
Recommends: python-devel
|
|
|
|
BuildArch: noarch
|
2020-05-18 20:11:41 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2019-12-18 10:30:42 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python dependency management and packaging made easy.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n poetry-%{version}
|
2020-07-05 12:09:10 +00:00
|
|
|
%patch0 -p1
|
2020-03-24 11:12:47 +00:00
|
|
|
%{dephell_gensetup}
|
2019-12-18 10:30:42 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2020-05-18 20:11:41 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/poetry
|
2019-12-18 10:30:42 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-12-18 10:31:50 +00:00
|
|
|
# A venv is necessary gh#python-poetry/poetry#1645#issuecomment-566872684
|
2019-12-18 10:30:42 +00:00
|
|
|
python3 -m venv testenv
|
|
|
|
source testenv/bin/activate
|
2019-12-18 10:31:50 +00:00
|
|
|
# test_default_with_excluded_data fails, see the above ticket for
|
|
|
|
# discussion on this.
|
2020-07-12 09:42:21 +00:00
|
|
|
# test_publish_returns_non_zero_code_for_upload_errors fails with clikit 0.6.0+
|
|
|
|
# which uses crashtest, which outputs extra information not expected by the test
|
|
|
|
# This does not occur in the poetry 1.1.0a test suite.
|
|
|
|
%pytest -vv -k 'not (test_default_with_excluded_data or test_publish_returns_non_zero_code_for_upload_errors)'
|
2019-12-18 10:30:42 +00:00
|
|
|
|
2020-05-18 20:11:41 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative poetry
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative poetry
|
|
|
|
|
2019-12-18 10:30:42 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
2020-05-18 20:18:32 +00:00
|
|
|
%python_alternative %{_bindir}/poetry
|
2019-12-18 10:30:42 +00:00
|
|
|
|
|
|
|
%changelog
|