- version update to 19.0.0 * When passed to `str()` URLs now stringify to usable URL strings. (See #49) * Switched off of Python's built-in IDNA facilities to using the [idna](https://pypi.python.org/pypi/idna) package. Not only is it much more modern, it's also much more strict and correct in its output. (See #19 and #56) * Added new `DecodedURL` type with almost-identical API to the normal `URL`, except that it automatically handles reserved characters in argument values passed to its methods. (See #6, #11, #44) * Added top-level `parse()` convenience function that now represents the main entrypoint to hyperlink. * Accept dictionaries as ‘query=’ arguments, in addition to sequences of tuples (see #50) * `URL.child()` will no longer fail when child gets no segments (#42 and #43) * `URL.normalize()` now supports encoding stray/unmatched `%` characters in character-encoded fields (userinfo, path, query string, fragment) (see #61, #62) OBS-URL: https://build.opensuse.org/request/show/704420 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hyperlink?expand=0&rev=6
63 lines
1.8 KiB
RPMSpec
63 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-hyperlink
|
|
#
|
|
# 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-hyperlink
|
|
Version: 19.0.0
|
|
Release: 0
|
|
Summary: Immutable URL support for Python
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/python-hyper/hyperlink
|
|
Source: https://files.pythonhosted.org/packages/source/h/hyperlink/hyperlink-%{version}.tar.gz
|
|
BuildRequires: %{python_module idna >= 2.5}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Hyperlink provides a pure-Python implementation of immutable URLs
|
|
based on RFC 3986 and 3987.
|
|
|
|
%prep
|
|
%setup -q -n hyperlink-%{version}
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md docs/*.rst
|
|
%defattr(-,root,root,-)
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|