Hello community, here is the log from the commit of package python-acme for openSUSE:Factory checked in at 2017-10-02 16:54:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-acme (Old) and /work/SRC/openSUSE:Factory/.python-acme.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-acme" Mon Oct 2 16:54:23 2017 rev:12 rq:530235 version:0.18.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-acme/python-acme.changes 2017-09-12 19:56:27.542099681 +0200 +++ /work/SRC/openSUSE:Factory/.python-acme.new/python-acme.changes 2017-10-02 16:54:37.926783833 +0200 @@ -1,0 +2,11 @@ +Sat Sep 23 08:34:09 UTC 2017 - [email protected] + +- update to 0.18.2 + - No changelog from upstream + +------------------------------------------------------------------- +Wed Sep 20 10:58:11 UTC 2017 - [email protected] + +- Convert to singlespec + +------------------------------------------------------------------- Old: ---- acme-0.18.1.tar.gz acme-0.18.1.tar.gz.asc New: ---- acme-0.18.2.tar.gz acme-0.18.2.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-acme.spec ++++++ --- /var/tmp/diff_new_pack.mBtQUC/_old 2017-10-02 16:54:38.562694575 +0200 +++ /var/tmp/diff_new_pack.mBtQUC/_new 2017-10-02 16:54:38.562694575 +0200 @@ -16,9 +16,12 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + %define libname acme + Name: python-%{libname} -Version: 0.18.1 +Version: 0.18.2 Release: 0 Summary: Python library for the ACME protocol License: Apache-2.0 @@ -27,31 +30,27 @@ Source0: https://files.pythonhosted.org/packages/source/a/%{libname}/%{libname}-%{version}.tar.gz Source1: https://files.pythonhosted.org/packages/source/a/%{libname}/%{libname}-%{version}.tar.gz.asc Source2: %{name}.keyring +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module cryptography >= 0.8} +BuildRequires: %{python_module devel >= 2.7} +BuildRequires: %{python_module dnspython >= 1.12} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module ndg-httpsclient} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pyOpenSSL >= 0.13} +BuildRequires: %{python_module pyRFC3339} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module requests >= 2.10} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six >= 1.5.2} +BuildRequires: %{python_module sphinx_rtd_theme} +BuildRequires: %{python_module sphinxcontrib-programoutput} +BuildRequires: %{python_module tox} BuildRequires: fdupes -BuildRequires: python-argparse -BuildRequires: python-cryptography >= 0.8 -BuildRequires: python-devel -BuildRequires: python-dnspython >= 1.12 -BuildRequires: python-mock -BuildRequires: python-ndg-httpsclient -BuildRequires: python-nose -BuildRequires: python-packaging -BuildRequires: python-pyOpenSSL >= 0.13 -BuildRequires: python-pyRFC3339 -BuildRequires: python-pytz -%if 0%{?suse_version} >= 1330 -BuildRequires: python2-requests >= 2.10 -%else -BuildRequires: python-requests >= 2.10 -%endif -BuildRequires: python-setuptools >= 11.3 -BuildRequires: python-six >= 1.5.2 -BuildRequires: python-sphinx -BuildRequires: python-sphinx_rtd_theme -BuildRequires: python-sphinxcontrib-programoutput -BuildRequires: python-tox -BuildRequires: python-werkzeug -Requires: python-argparse +BuildRequires: python-rpm-macros +Requires: python-Werkzeug Requires: python-cryptography >= 0.8 Requires: python-dnspython >= 1.12 Requires: python-mock @@ -60,32 +59,29 @@ Requires: python-pyRFC3339 Requires: python-pyasn1 Requires: python-pytz -%if 0%{?suse_version} >= 1330 -Requires: python2-requests >= 2.10 -%else Requires: python-requests >= 2.10 -%endif Requires: python-six >= 1.5.2 -Requires: python-werkzeug BuildArch: noarch +%python_subpackages + %description Python library implementing the Automatic Certificate Management Environment (ACME) protocol. It is used by the certbot project. Formerly Let's Encrypt project. -%package doc +%package -n python-%{libname}-doc Summary: Documentation for python-acme libraries +#Provides: %%{python_module %%{libname}-doc = %%{version}} Group: Development/Languages/Python -%description doc +%description -n python-%{libname}-doc Documentation for the ACME python libraries %prep %setup -q -n %{libname}-%{version} %build -python setup.py build - +%python_build # create docs. Possible formats: man text html epub pushd docs make %{?_smp_mflags} html @@ -93,27 +89,30 @@ popd %install -python setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} -#remove test-data -rm -rf %{buildroot}%{python_sitelib}/%{libname}/testdata -rm -rf %{buildroot}%{python_sitelib}/%{libname}/*_test.py* -rm -rf %{buildroot}%{python_sitelib}/%{libname}/**/*_test.py* - +%python_install +# remove test-data +%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/testdata +%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/*_test.py* +%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/**/*_test.py* +%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/__pycache__/*_test* +%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/jose/__pycache__/*_test* # remove duplicates -%fdupes %{buildroot}%{python_sitelib}/%{libname} +%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{libname} %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE.txt %{python_sitelib}/%{libname} %{python_sitelib}/%{libname}-%{version}*.egg-info +%pycache_only %{python_sitelib}/%{libname}/__pycache__ +%pycache_only %{python_sitelib}/%{libname}/jose/__pycache__ # following the certbot-packaging guide, "jws" should not be packaged %exclude %{_bindir}/jws -%files doc +%files -n python-%{libname}-doc %defattr(-,root,root) %doc LICENSE.txt %doc README.rst ++++++ acme-0.18.1.tar.gz -> acme-0.18.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.18.1/PKG-INFO new/acme-0.18.2/PKG-INFO --- old/acme-0.18.1/PKG-INFO 2017-09-08 20:32:29.000000000 +0200 +++ new/acme-0.18.2/PKG-INFO 2017-09-20 19:45:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: acme -Version: 0.18.1 +Version: 0.18.2 Summary: ACME protocol implementation in Python Home-page: https://github.com/letsencrypt/letsencrypt Author: Certbot Project diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.18.1/acme/crypto_util.py new/acme-0.18.2/acme/crypto_util.py --- old/acme-0.18.1/acme/crypto_util.py 2017-09-08 20:32:07.000000000 +0200 +++ new/acme-0.18.2/acme/crypto_util.py 2017-09-20 19:44:43.000000000 +0200 @@ -2,6 +2,7 @@ import binascii import contextlib import logging +import os import re import socket import sys @@ -243,7 +244,7 @@ """ assert domains, "Must provide one or more hostnames for the cert." cert = OpenSSL.crypto.X509() - cert.set_serial_number(int(binascii.hexlify(OpenSSL.rand.bytes(16)), 16)) + cert.set_serial_number(int(binascii.hexlify(os.urandom(16)), 16)) cert.set_version(2) extensions = [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.18.1/acme.egg-info/PKG-INFO new/acme-0.18.2/acme.egg-info/PKG-INFO --- old/acme-0.18.1/acme.egg-info/PKG-INFO 2017-09-08 20:32:29.000000000 +0200 +++ new/acme-0.18.2/acme.egg-info/PKG-INFO 2017-09-20 19:45:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: acme -Version: 0.18.1 +Version: 0.18.2 Summary: ACME protocol implementation in Python Home-page: https://github.com/letsencrypt/letsencrypt Author: Certbot Project diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.18.1/setup.py new/acme-0.18.2/setup.py --- old/acme-0.18.1/setup.py 2017-09-08 20:32:07.000000000 +0200 +++ new/acme-0.18.2/setup.py 2017-09-20 19:44:43.000000000 +0200 @@ -4,7 +4,7 @@ from setuptools import find_packages -version = '0.18.1' +version = '0.18.2' # Please update tox.ini when modifying dependency version requirements install_requires = [
