14
0
forked from pool/python-poetry
Files
python-poetry/python-poetry.spec

126 lines
4.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-poetry
#
2020-02-17 07:18:55 +00:00
# Copyright (c) 2020 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() python-%{**} python3-%{**}}
%define skip_python2 1
%define dephell_loglevel DEBUG
Name: python-poetry
Version: 1.1.2
Release: 0
Summary: Python dependency management and packaging
License: MIT
Group: Development/Languages/Python
URL: https://python-poetry.org/
# GitHub archive doesnt contain setup.py; sdist doesnt contain tests
Source: https://github.com/python-poetry/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}
Accepting request 787732 from home:pgajdos:python - version update to 1.0.5 - Fixed an error when building distributions if the `git` executable was not found ([#2105](https://github.com/python-poetry/poetry/pull/2105)). - Fixed various errors when reading Poetry's TOML files by upgrading [tomlkit](https://github.com/sdispater/tomlkit). - Fixed the PyPI URL used when installing packages ([#2099](https://github.com/python-poetry/poetry/pull/2099)). - Fixed errors when the author's name contains special characters ([#2006](https://github.com/python-poetry/poetry/pull/2006)). - Fixed VCS excluded files detection when building wheels ([#1947](https://github.com/python-poetry/poetry/pull/1947)). - Fixed packages detection when building sdists ([#1626](https://github.com/python-poetry/poetry/pull/1626)). - Fixed the local `.venv` virtual environment not being displayed in `env list` ([#1762](https://github.com/python-poetry/poetry/pull/1762)). - Fixed incompatibilities with the most recent versions of `virtualenv` ([#2096](https://github.com/python-poetry/poetry/pull/2096)). - Fixed Poetry's own vendor dependencies being retrieved when updating dependencies ([#1981](https://github.com/python-poetry/poetry/pull/1981)). - Fixed encoding of credentials in URLs ([#1911](https://github.com/python-poetry/poetry/pull/1911)). - Fixed url constraints not being accepted in multi-constraints dependencies ([#2035](https://github.com/python-poetry/poetry/pull/2035)). - Fixed an error where credentials specified via environment variables were not retrieved ([#2061](https://github.com/python-poetry/poetry/pull/2061)). - Fixed an error where git dependencies referencing tags were not locked to the corresponding commit ([#1948](https://github.com/python-poetry/poetry/pull/1948)). - Fixed an error when parsing packages `setup.py` files ([#2041](https://github.com/python-poetry/poetry/pull/2041)). - Fixed an error when parsing some git URLs ([#2018](https://github.com/python-poetry/poetry/pull/2018)). OBS-URL: https://build.opensuse.org/request/show/787732 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry?expand=0&rev=9
2020-03-24 11:12:47 +00:00
BuildRequires: %{python_module cachy >= 0.3.0}
# upstream requires cleo >= 0.8.1, but that only bumped its deps
BuildRequires: %{python_module cleo >= 0.8.0}
BuildRequires: %{python_module clikit >= 0.6.2}
BuildRequires: %{python_module dephell}
BuildRequires: %{python_module html5lib >= 1.0}
BuildRequires: %{python_module keyring >= 21.2.0}
BuildRequires: %{python_module lockfile}
Accepting request 787732 from home:pgajdos:python - version update to 1.0.5 - Fixed an error when building distributions if the `git` executable was not found ([#2105](https://github.com/python-poetry/poetry/pull/2105)). - Fixed various errors when reading Poetry's TOML files by upgrading [tomlkit](https://github.com/sdispater/tomlkit). - Fixed the PyPI URL used when installing packages ([#2099](https://github.com/python-poetry/poetry/pull/2099)). - Fixed errors when the author's name contains special characters ([#2006](https://github.com/python-poetry/poetry/pull/2006)). - Fixed VCS excluded files detection when building wheels ([#1947](https://github.com/python-poetry/poetry/pull/1947)). - Fixed packages detection when building sdists ([#1626](https://github.com/python-poetry/poetry/pull/1626)). - Fixed the local `.venv` virtual environment not being displayed in `env list` ([#1762](https://github.com/python-poetry/poetry/pull/1762)). - Fixed incompatibilities with the most recent versions of `virtualenv` ([#2096](https://github.com/python-poetry/poetry/pull/2096)). - Fixed Poetry's own vendor dependencies being retrieved when updating dependencies ([#1981](https://github.com/python-poetry/poetry/pull/1981)). - Fixed encoding of credentials in URLs ([#1911](https://github.com/python-poetry/poetry/pull/1911)). - Fixed url constraints not being accepted in multi-constraints dependencies ([#2035](https://github.com/python-poetry/poetry/pull/2035)). - Fixed an error where credentials specified via environment variables were not retrieved ([#2061](https://github.com/python-poetry/poetry/pull/2061)). - Fixed an error where git dependencies referencing tags were not locked to the corresponding commit ([#1948](https://github.com/python-poetry/poetry/pull/1948)). - Fixed an error when parsing packages `setup.py` files ([#2041](https://github.com/python-poetry/poetry/pull/2041)). - Fixed an error when parsing some git URLs ([#2018](https://github.com/python-poetry/poetry/pull/2018)). OBS-URL: https://build.opensuse.org/request/show/787732 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry?expand=0&rev=9
2020-03-24 11:12:47 +00:00
BuildRequires: %{python_module pexpect >= 4.7.0}
BuildRequires: %{python_module pkginfo >= 1.4}
BuildRequires: %{python_module poetry-core >= 1.0.0}
BuildRequires: %{python_module requests >= 2.18}
BuildRequires: %{python_module requests-toolbelt >= 0.9.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module shellingham >= 1.1}
BuildRequires: %{python_module tomlkit >= 0.7.0}
BuildRequires: %{python_module virtualenv}
BuildRequires: fdupes
BuildRequires: python-dephell-rpm-macros
BuildRequires: python-rpm-macros
Requires: python-CacheControl >= 0.12.4
Accepting request 787732 from home:pgajdos:python - version update to 1.0.5 - Fixed an error when building distributions if the `git` executable was not found ([#2105](https://github.com/python-poetry/poetry/pull/2105)). - Fixed various errors when reading Poetry's TOML files by upgrading [tomlkit](https://github.com/sdispater/tomlkit). - Fixed the PyPI URL used when installing packages ([#2099](https://github.com/python-poetry/poetry/pull/2099)). - Fixed errors when the author's name contains special characters ([#2006](https://github.com/python-poetry/poetry/pull/2006)). - Fixed VCS excluded files detection when building wheels ([#1947](https://github.com/python-poetry/poetry/pull/1947)). - Fixed packages detection when building sdists ([#1626](https://github.com/python-poetry/poetry/pull/1626)). - Fixed the local `.venv` virtual environment not being displayed in `env list` ([#1762](https://github.com/python-poetry/poetry/pull/1762)). - Fixed incompatibilities with the most recent versions of `virtualenv` ([#2096](https://github.com/python-poetry/poetry/pull/2096)). - Fixed Poetry's own vendor dependencies being retrieved when updating dependencies ([#1981](https://github.com/python-poetry/poetry/pull/1981)). - Fixed encoding of credentials in URLs ([#1911](https://github.com/python-poetry/poetry/pull/1911)). - Fixed url constraints not being accepted in multi-constraints dependencies ([#2035](https://github.com/python-poetry/poetry/pull/2035)). - Fixed an error where credentials specified via environment variables were not retrieved ([#2061](https://github.com/python-poetry/poetry/pull/2061)). - Fixed an error where git dependencies referencing tags were not locked to the corresponding commit ([#1948](https://github.com/python-poetry/poetry/pull/1948)). - Fixed an error when parsing packages `setup.py` files ([#2041](https://github.com/python-poetry/poetry/pull/2041)). - Fixed an error when parsing some git URLs ([#2018](https://github.com/python-poetry/poetry/pull/2018)). OBS-URL: https://build.opensuse.org/request/show/787732 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry?expand=0&rev=9
2020-03-24 11:12:47 +00:00
Requires: python-cachy >= 0.3.0
Requires: python-cleo >= 0.8.0
Requires: python-clikit >= 0.6.2
Requires: python-html5lib >= 1.0
Requires: python-keyring >= 21.2.0
Requires: python-lockfile
Accepting request 787732 from home:pgajdos:python - version update to 1.0.5 - Fixed an error when building distributions if the `git` executable was not found ([#2105](https://github.com/python-poetry/poetry/pull/2105)). - Fixed various errors when reading Poetry's TOML files by upgrading [tomlkit](https://github.com/sdispater/tomlkit). - Fixed the PyPI URL used when installing packages ([#2099](https://github.com/python-poetry/poetry/pull/2099)). - Fixed errors when the author's name contains special characters ([#2006](https://github.com/python-poetry/poetry/pull/2006)). - Fixed VCS excluded files detection when building wheels ([#1947](https://github.com/python-poetry/poetry/pull/1947)). - Fixed packages detection when building sdists ([#1626](https://github.com/python-poetry/poetry/pull/1626)). - Fixed the local `.venv` virtual environment not being displayed in `env list` ([#1762](https://github.com/python-poetry/poetry/pull/1762)). - Fixed incompatibilities with the most recent versions of `virtualenv` ([#2096](https://github.com/python-poetry/poetry/pull/2096)). - Fixed Poetry's own vendor dependencies being retrieved when updating dependencies ([#1981](https://github.com/python-poetry/poetry/pull/1981)). - Fixed encoding of credentials in URLs ([#1911](https://github.com/python-poetry/poetry/pull/1911)). - Fixed url constraints not being accepted in multi-constraints dependencies ([#2035](https://github.com/python-poetry/poetry/pull/2035)). - Fixed an error where credentials specified via environment variables were not retrieved ([#2061](https://github.com/python-poetry/poetry/pull/2061)). - Fixed an error where git dependencies referencing tags were not locked to the corresponding commit ([#1948](https://github.com/python-poetry/poetry/pull/1948)). - Fixed an error when parsing packages `setup.py` files ([#2041](https://github.com/python-poetry/poetry/pull/2041)). - Fixed an error when parsing some git URLs ([#2018](https://github.com/python-poetry/poetry/pull/2018)). OBS-URL: https://build.opensuse.org/request/show/787732 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry?expand=0&rev=9
2020-03-24 11:12:47 +00:00
Requires: python-pexpect >= 4.7.0
Requires: python-pkginfo >= 1.4
Requires: python-poetry-core >= 1.0.0
Requires: python-pyparsing >= 2.2
Requires: python-requests >= 2.18
Requires: python-requests-toolbelt >= 0.9.1
Accepting request 787732 from home:pgajdos:python - version update to 1.0.5 - Fixed an error when building distributions if the `git` executable was not found ([#2105](https://github.com/python-poetry/poetry/pull/2105)). - Fixed various errors when reading Poetry's TOML files by upgrading [tomlkit](https://github.com/sdispater/tomlkit). - Fixed the PyPI URL used when installing packages ([#2099](https://github.com/python-poetry/poetry/pull/2099)). - Fixed errors when the author's name contains special characters ([#2006](https://github.com/python-poetry/poetry/pull/2006)). - Fixed VCS excluded files detection when building wheels ([#1947](https://github.com/python-poetry/poetry/pull/1947)). - Fixed packages detection when building sdists ([#1626](https://github.com/python-poetry/poetry/pull/1626)). - Fixed the local `.venv` virtual environment not being displayed in `env list` ([#1762](https://github.com/python-poetry/poetry/pull/1762)). - Fixed incompatibilities with the most recent versions of `virtualenv` ([#2096](https://github.com/python-poetry/poetry/pull/2096)). - Fixed Poetry's own vendor dependencies being retrieved when updating dependencies ([#1981](https://github.com/python-poetry/poetry/pull/1981)). - Fixed encoding of credentials in URLs ([#1911](https://github.com/python-poetry/poetry/pull/1911)). - Fixed url constraints not being accepted in multi-constraints dependencies ([#2035](https://github.com/python-poetry/poetry/pull/2035)). - Fixed an error where credentials specified via environment variables were not retrieved ([#2061](https://github.com/python-poetry/poetry/pull/2061)). - Fixed an error where git dependencies referencing tags were not locked to the corresponding commit ([#1948](https://github.com/python-poetry/poetry/pull/1948)). - Fixed an error when parsing packages `setup.py` files ([#2041](https://github.com/python-poetry/poetry/pull/2041)). - Fixed an error when parsing some git URLs ([#2018](https://github.com/python-poetry/poetry/pull/2018)). OBS-URL: https://build.opensuse.org/request/show/787732 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry?expand=0&rev=9
2020-03-24 11:12:47 +00:00
Requires: python-setuptools
Requires: python-shellingham >= 1.1
Requires: python-tomlkit >= 0.7.0
Requires: python-virtualenv >= 20.0.26
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: git-core
Recommends: python-devel
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module httpretty}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: git-core
# /SECTION
%python_subpackages
%description
Python dependency management and packaging made easy.
%prep
%setup -q -n poetry-%{version}
Accepting request 818844 from home:sebix:branches:devel:languages:python - update to version 1.0.9: - Fixed: - Fixed an issue where packages from custom indices where continuously updated ([#2525](https://github.com/python-poetry/poetry/pull/2525)). - Fixed errors in the way Python environment markers were parsed and generated ([#2526](https://github.com/python-poetry/poetry/pull/2526)). - update to version 1.0.8: - Fixed: - Fixed a possible error when installing the root package ([#2505](https://github.com/python-poetry/poetry/pull/2505)). - Fixed an error where directory and VCS dependencies were not installed ([#2505](https://github.com/python-poetry/poetry/pull/2505)). - update to version 1.0.7: - Fixed: - Fixed an error when trying to execute some packages `setup.py` file ([#2349](https://github.com/python-poetry/poetry/pull/2349)). - update to version 1.0.6: - Changed: - The `self update` command has been updated in order to handle future releases of Poetry ([#2429](https://github.com/python-poetry/poetry/pull/2429)). - Fixed: - Fixed an error were a new line was not written when displaying the virtual environment's path with `env info` ([#2196](https://github.com/python-poetry/poetry/pull/2196)). - Fixed a misleading error message when the `packages` property was empty ([#2265](https://github.com/python-poetry/poetry/pull/2265)). - Fixed shell detection by using environment variables ([#2147](https://github.com/python-poetry/poetry/pull/2147)). - Fixed the removal of VCS dependencies ([#2239](https://github.com/python-poetry/poetry/pull/2239)). - Fixed generated wheel ABI tags for Python 3.8 ([#2121](https://github.com/python-poetry/poetry/pull/2121)). - Fixed a regression when building stub-only packages ([#2000](https://github.com/python-poetry/poetry/pull/2000)). - Fixed errors when parsing PEP-440 constraints with whitespace ([#2347](https://github.com/python-poetry/poetry/pull/2347)). - Fixed PEP 508 representation of VCS dependencies ([#2349](https://github.com/python-poetry/poetry/pull/2349)). - Fixed errors when source distributions were read-only ([#1140](https://github.com/python-poetry/poetry/pull/1140)). - Fixed dependency resolution errors and inconsistencies with directory, file and VCS dependencies ([#2398](https://github.com/python-poetry/poetry/pull/2398)). - Fixed custom repositories information not being properly locked ([#2484](https://github.com/python-poetry/poetry/pull/2484)). - update simplify-toml.patch to also simplify the pytest dependency. OBS-URL: https://build.opensuse.org/request/show/818844 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry?expand=0&rev=14
2020-07-05 12:09:10 +00:00
%patch0 -p1
%dephell_gensetup
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/poetry
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# A venv is necessary gh#python-poetry/poetry#1645#issuecomment-566872684
python3 -m venv testenv
source testenv/bin/activate
# needs connection to pypi.org
donttest="test_lock_no_update"
# tests downloading
donttest+=" or test_execute_executes_a_batch_of_operations"
# tries to install /usr/bin/foo
donttest+=" or test_builder_should_execute_build_scripts"
%pytest -k "not ($donttest)"
%post
%python_install_alternative poetry
%postun
%python_uninstall_alternative poetry
%files %{python_files}
%doc README.md CHANGELOG.md
%license LICENSE
%{python_sitelib}/poetry
%{python_sitelib}/poetry-%{version}-py*.egg-info
%python_alternative %{_bindir}/poetry
%changelog