Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37563917
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-twine

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oname twine

%def_with check

Name: python3-module-%oname
Version: 4.0.2
Release: alt1

Summary: Collection of utilities for interacting with PyPI
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/twine/
Vcs: https://github.com/pypa/twine

Source: %name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools_scm
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-keyring
BuildRequires: python3-module-rich
BuildRequires: python3-module-pkginfo
BuildRequires: python3-module-urllib3
BuildRequires: python3-module-rfc3986
BuildRequires: python3-module-requests
BuildRequires: python3-module-requests_toolbelt
BuildRequires: python3-module-readme-renderer
BuildRequires: python3-module-importlib-metadata
BuildRequires: python3-module-secretstorage
BuildRequires: python3-module-jaraco.classes
BuildRequires: python3-module-pretend
BuildRequires: python3-module-build
BuildRequires: python3-module-munch
%endif

%py3_provides %oname

%description
Twine is a utility for interacting with PyPI.
It provides build system independent uploads of source and binary distribution
artifacts for both new and existing projects.

%prep
%setup

# pytest-socket dep relevant only to test_integration, and upstream

# disables it anyway
sed -i '/--disable-socket/d' pytest.ini

%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%pyproject_build

%install
%pyproject_install

%check
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
export PYTHONPATH=%buildroot%python3_sitelibdir
python3 -m pytest --ignore-glob '*integration*.py' -k "\
not test_exception_handling \
and not test_http_exception_handling"

%files
%doc AUTHORS *.rst docs/*.rst LICENSE
%_bindir/*
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin