1
0

Accepting request 679740 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/679740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jaraco.packaging?expand=0&rev=2
This commit is contained in:
Stephan Kulow 2019-03-01 19:25:51 +00:00 committed by Git OBS Bridge
commit 64f7dbe62d
6 changed files with 54 additions and 24 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9980b0fb6a0d2ee754d5979c9e5e02f31853da8e9046dc99f5abfcb7ace9e189
size 8820

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75d6360662ede4405981814bf68a67a4e83d0d943504ee1c7a698d01a7cd357e
size 14736

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Feb 26 07:17:20 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Add LICENSE
- Set version to 6.1 due to version of python-jaraco.packaging,
to provide an easy method of ensuring the base is updated with
all jaraco modules.
-------------------------------------------------------------------
Mon Nov 13 17:25:52 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-jaraco.base
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -12,13 +12,13 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jaraco.base
Version: 4.1
Version: 6.1
Release: 0
Summary: Base namespace for jaraco packages
License: MIT
@ -53,7 +53,7 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/ja
}
%files %{python_files}
%defattr(-,root,root)
%license LICENSE
%dir %{python_sitelib}/jaraco/
%{python_sitelib}/jaraco/__init__.py*
%pycache_only %dir %{python_sitelib}/jaraco/__pycache__/

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Feb 26 07:17:20 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Add LICENSE
- Remove bcond_with test, and skip two failing tests
- Compile manually due to switch to pkgutil namespace technique
- Add docs/*.rst to %doc
- Update to v6.1
* Sphinx plugin now exposes ``package_url`` in HTML templates.
- from 6.0
* Switch to pkgutil namespace technique for the ``jaraco`` namespace.
- from 5.2
* Show command now also honors direct attributes on a Distribution instance.
- from 5.1.1
* In Sphinx module, use universal newlines to avoid broken results on Windows.
- from 5.1
* Added ``jaraco.packaging.make-tree`` utility for taking output from
pipdeptree and making a tree of it.
- from 5.0
* Drop support for Python 2.6.
* Re-aligned to use pkg_resources-managed technique for
the jaraco namespace, all package of which must elect one
technique or another.
-------------------------------------------------------------------
Mon Nov 13 17:25:52 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-jaraco.packaging
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -12,30 +12,26 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-jaraco.packaging
Version: 4.1
Version: 6.1
Release: 0
Summary: Supplement packaging Python releases
License: MIT
Group: Development/Languages/Python
Url: https://github.com/jaraco/jaraco.packaging
Source: https://files.pythonhosted.org/packages/source/j/jaraco.packaging/jaraco.packaging-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module jaraco.base}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module jaraco.base >= 6.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
Requires: python-jaraco.base
Requires: python-jaraco.base >= 6.1
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
@ -46,6 +42,7 @@ Tools to supplement packaging Python releases.
%prep
%setup -q -n jaraco.packaging-%{version}
sed -i 's/--flake8//' pytest.ini
rm -rf jaraco.packaging.egg-info
%build
@ -59,7 +56,6 @@ rm -rf %{buildroot}%{$python_sitelib}/jaraco/__pycache__/
%fdupes -s %{buildroot}%{$python_sitelib}
}
%python_clone -a %{buildroot}%{_bindir}/dependency-tree
%python_clone -a %{buildroot}%{_bindir}/upload-package
@ -69,14 +65,16 @@ rm -rf %{buildroot}%{$python_sitelib}/jaraco/__pycache__/
%postun
%python_uninstall_alternative dependency-tree
%if %{with test}
%check
%python_expand py.test-%{$python_bin_suffix}
%endif
# Two tests depend on accessing PyPI
%{python_expand py.test-%{$python_bin_suffix} \
--ignore=_build.python3 --ignore _build.python2 \
-k 'not (load_dependencies or test_revived_distribution)'
}
%files %{python_files}
%defattr(-,root,root)
%doc CHANGES.rst README.rst
%license LICENSE
%doc docs/*.rst CHANGES.rst README.rst
%python_alternative %{_bindir}/dependency-tree
%python_alternative %{_bindir}/upload-package
%{python_sitelib}/jaraco.packaging-%{version}-py*.egg-info