Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37550601
en ru br
ALT Linux repos
S:1.6-alt1

Group :: Development/Python3
RPM: python3-module-purl

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname purl

%def_with check

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

Summary: An immutable URL class for easy URL-building and manipulation
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/purl/
Vcs: https://github.com/codeinthehole/purl

Source: %name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-six
%endif

%py3_provides %oname

%description
A simple, immutable URL class with a clean API for interrogation and
manipulation. Supports Pythons 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8 and pypy.

Also supports template URLs as per RFC 6570.

%prep
%setup

sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
   $(find ./ -name '*.py')

%build
%python3_build_debug

%install
%python3_install

%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -ra -qq tests

%files
%doc AUTHORS *.rst docs/*.rst LICENSE
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version-*.egg-info


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin