Hello community,
here is the log from the commit of package python-wolframalpha for
openSUSE:Leap:15.2 checked in at 2020-03-02 13:25:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-wolframalpha (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-wolframalpha.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-wolframalpha"
Mon Mar 2 13:25:00 2020 rev:3 rq:777285 version:3.0.1
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-wolframalpha/python-wolframalpha.changes
2020-01-15 15:54:14.155625161 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-wolframalpha.new.26092/python-wolframalpha.changes
2020-03-02 13:25:01.174596659 +0100
@@ -1,0 +2,6 @@
+Sat Dec 22 05:22:07 UTC 2018 - Todd R <[email protected]>
+
+- Update to 3.0.1
+ * Refreshed project metadata.
+
+-------------------------------------------------------------------
Old:
----
LICENSE
wolframalpha-3.0.tar.gz
New:
----
wolframalpha-3.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-wolframalpha.spec ++++++
--- /var/tmp/diff_new_pack.aaTiuN/_old 2020-03-02 13:25:02.026598353 +0100
+++ /var/tmp/diff_new_pack.aaTiuN/_new 2020-03-02 13:25:02.030598361 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-wolframalpha
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-wolframalpha
-Version: 3.0
+Version: 3.0.1
Release: 0
License: MIT
Summary: WolframAlpha 2.0 API client
Url: https://github.com/jaraco/wolframalpha
Group: Development/Languages/Python
Source:
https://files.pythonhosted.org/packages/source/w/wolframalpha/wolframalpha-%{version}.tar.gz
-Source99:
https://raw.githubusercontent.com/antlarr/wolframalpha/945be5a298e36d1b041d9e8a3d80cadbc323f92b/LICENSE
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
@@ -55,7 +54,6 @@
%prep
%setup -q -n wolframalpha-%{version}
-cp %{S:99} .
%build
%python_build
@@ -70,7 +68,6 @@
%endif
%files %{python_files}
-%defattr(-,root,root,-)
%doc CHANGES.rst README.rst
%license LICENSE
%{python_sitelib}/*
++++++ wolframalpha-3.0.tar.gz -> wolframalpha-3.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/.flake8
new/wolframalpha-3.0.1/.flake8
--- old/wolframalpha-3.0/.flake8 1970-01-01 01:00:00.000000000 +0100
+++ new/wolframalpha-3.0.1/.flake8 2018-03-05 04:15:20.000000000 +0100
@@ -0,0 +1,2 @@
+[flake8]
+ignore = W191,W503
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/.readthedocs.yml
new/wolframalpha-3.0.1/.readthedocs.yml
--- old/wolframalpha-3.0/.readthedocs.yml 1970-01-01 01:00:00.000000000
+0100
+++ new/wolframalpha-3.0.1/.readthedocs.yml 2018-03-05 04:15:20.000000000
+0100
@@ -0,0 +1,5 @@
+python:
+ version: 3
+ extra_requirements:
+ - docs
+ pip_install: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/.travis.yml
new/wolframalpha-3.0.1/.travis.yml
--- old/wolframalpha-3.0/.travis.yml 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/.travis.yml 2018-03-05 04:15:20.000000000 +0100
@@ -1,27 +1,35 @@
+dist: trusty
sudo: false
language: python
+
python:
- 2.7
-- 3.4
-- 3.5
+- &latest_py3 3.6
- pypy
-matrix:
- allow_failures:
- - python: pypy
-script:
-- pip install -U pytest
-- python setup.py test
-branches:
- except:
- - skeleton
-deploy:
- provider: pypi
- server: https://upload.pypi.org/legacy/
- on:
- tags: true
- all_branches: true
- python: 3.5
- user: jaraco
- distributions: dists
- password:
- secure:
2JIGwS5V4TRi8+T1PzH9hardS+woul2s0y0a7l0KyLxta8ThUihZjLqqDvniX3aOPKoYRx+wrg73Qs+t1ISkjGENsmuIqkdtG++EvfN6Goopv7qePZlm41plsGZBS/EDT6woLNy1Mk6uRAmp7UrVqgXPkyPTJPOh+C8SdZ/AvbqlXOpTNfOJaUGJb3GbCQy1nX8SbFAteVRVe1sWGuNS0MRyDb6DOOwhRmGUHwVMNyvLoNZ3QGsTViju7CJUmie+XjKgKiPDbF+OCBHR+VAbY6vZiWC2I0rV6CmKoXfgaaF0BGZLq4iOw7LUNTIVInRSuyQd+bkoUNP2/aU84mFD9bAHcp5uGJ7xy4ahh8ieTkvKk0kudrmu+mtUPZ/fW6Zu51sDjrfdsNLlUZ7tHc1CsIJnjYYU/SasuQ1BT6s4NpsQ7/gNFAdO6JOfSLmTM3arOJIAeDPYEBW8yCEVaxK4EnYl0vE6kuFRq2ey8eyqkwr8Kahn13qUwaOiSmecIWgI/pZ1ettfoVdEh/aL4qONOFD6trfpeqjKFUugLyNmh+PvAfNTjxL+pe309Y8Uw2yaouDLZNI1jUDlNrV9025LJMwNGXs3ViVTTdmTfJza0+SVOfJ77ttLvQxdDvQd9jfYFmDpeeKtReJrFiTt00xSksJd4kbi6iarzRblUplemmA=
+
+jobs:
+ fast_finish: true
+ include:
+ - stage: deploy
+ if: tag IS present
+ python: *latest_py3
+ install: skip
+ script: skip
+ deploy:
+ provider: pypi
+ on:
+ tags: true
+ all_branches: true
+ user: jaraco
+ password:
+ secure:
2JIGwS5V4TRi8+T1PzH9hardS+woul2s0y0a7l0KyLxta8ThUihZjLqqDvniX3aOPKoYRx+wrg73Qs+t1ISkjGENsmuIqkdtG++EvfN6Goopv7qePZlm41plsGZBS/EDT6woLNy1Mk6uRAmp7UrVqgXPkyPTJPOh+C8SdZ/AvbqlXOpTNfOJaUGJb3GbCQy1nX8SbFAteVRVe1sWGuNS0MRyDb6DOOwhRmGUHwVMNyvLoNZ3QGsTViju7CJUmie+XjKgKiPDbF+OCBHR+VAbY6vZiWC2I0rV6CmKoXfgaaF0BGZLq4iOw7LUNTIVInRSuyQd+bkoUNP2/aU84mFD9bAHcp5uGJ7xy4ahh8ieTkvKk0kudrmu+mtUPZ/fW6Zu51sDjrfdsNLlUZ7tHc1CsIJnjYYU/SasuQ1BT6s4NpsQ7/gNFAdO6JOfSLmTM3arOJIAeDPYEBW8yCEVaxK4EnYl0vE6kuFRq2ey8eyqkwr8Kahn13qUwaOiSmecIWgI/pZ1ettfoVdEh/aL4qONOFD6trfpeqjKFUugLyNmh+PvAfNTjxL+pe309Y8Uw2yaouDLZNI1jUDlNrV9025LJMwNGXs3ViVTTdmTfJza0+SVOfJ77ttLvQxdDvQd9jfYFmDpeeKtReJrFiTt00xSksJd4kbi6iarzRblUplemmA=
+ distributions: dists
+ skip_cleanup: true
+ skip_upload_docs: true
+
+cache: pip
+
+install:
+- pip install tox tox-venv
+
+script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/CHANGES.rst
new/wolframalpha-3.0.1/CHANGES.rst
--- old/wolframalpha-3.0/CHANGES.rst 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/CHANGES.rst 2018-03-05 04:15:20.000000000 +0100
@@ -1,3 +1,8 @@
+3.0.1
+=====
+
+Refreshed project metadata.
+
3.0
===
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/LICENSE
new/wolframalpha-3.0.1/LICENSE
--- old/wolframalpha-3.0/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/wolframalpha-3.0.1/LICENSE 2018-03-05 04:15:20.000000000 +0100
@@ -0,0 +1,7 @@
+Copyright Jason R. Coombs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/PKG-INFO
new/wolframalpha-3.0.1/PKG-INFO
--- old/wolframalpha-3.0/PKG-INFO 2016-09-04 17:44:48.000000000 +0200
+++ new/wolframalpha-3.0.1/PKG-INFO 2018-03-05 04:15:57.000000000 +0100
@@ -1,24 +1,25 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
Name: wolframalpha
-Version: 3.0
+Version: 3.0.1
Summary: Wolfram|Alpha 2.0 API client
Home-page: https://github.com/jaraco/wolframalpha
Author: Jason R. Coombs
Author-email: [email protected]
License: UNKNOWN
+Description-Content-Type: UNKNOWN
Description: .. image:: https://img.shields.io/pypi/v/wolframalpha.svg
:target: https://pypi.org/project/wolframalpha
.. image:: https://img.shields.io/pypi/pyversions/wolframalpha.svg
- .. image:: https://img.shields.io/pypi/dm/wolframalpha.svg
-
.. image:: https://img.shields.io/travis/jaraco/wolframalpha/master.svg
- :target: http://travis-ci.org/jaraco/wolframalpha
+ :target: https://travis-ci.org/jaraco/wolframalpha
+
+ .. image::
https://readthedocs.org/projects/wolframalpha/badge/?version=latest
+ :target: https://wolframalpha.readthedocs.io/en/latest/?badge=latest
Python Client built against the `Wolfram|Alpha
<http://wolframalpha.com>`_
- v2.0 API. This project is hosted on `Github
- <https://github.com/jaraco/wolframalpha>`_.
+ v2.0 API.
Usage
=====
@@ -63,3 +64,4 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
+Requires-Python: >=2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/README.rst
new/wolframalpha-3.0.1/README.rst
--- old/wolframalpha-3.0/README.rst 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/README.rst 2018-03-05 04:15:20.000000000 +0100
@@ -3,14 +3,14 @@
.. image:: https://img.shields.io/pypi/pyversions/wolframalpha.svg
-.. image:: https://img.shields.io/pypi/dm/wolframalpha.svg
-
.. image:: https://img.shields.io/travis/jaraco/wolframalpha/master.svg
- :target: http://travis-ci.org/jaraco/wolframalpha
+ :target: https://travis-ci.org/jaraco/wolframalpha
+
+.. image:: https://readthedocs.org/projects/wolframalpha/badge/?version=latest
+ :target: https://wolframalpha.readthedocs.io/en/latest/?badge=latest
Python Client built against the `Wolfram|Alpha <http://wolframalpha.com>`_
-v2.0 API. This project is hosted on `Github
-<https://github.com/jaraco/wolframalpha>`_.
+v2.0 API.
Usage
=====
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/appveyor.yml
new/wolframalpha-3.0.1/appveyor.yml
--- old/wolframalpha-3.0/appveyor.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/wolframalpha-3.0.1/appveyor.yml 2018-03-05 04:15:20.000000000 +0100
@@ -0,0 +1,24 @@
+environment:
+
+ APPVEYOR: true
+
+ matrix:
+ - PYTHON: "C:\\Python36-x64"
+ - PYTHON: "C:\\Python27-x64"
+
+install:
+ # symlink python from a directory with a space
+ - "mklink /d \"C:\\Program Files\\Python\" %PYTHON%"
+ - "SET PYTHON=\"C:\\Program Files\\Python\""
+ - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
+
+build: off
+
+cache:
+ - '%LOCALAPPDATA%\pip\Cache'
+
+test_script:
+ - "python -m pip install tox tox-venv"
+ - "tox"
+
+version: '{build}'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/conftest.py
new/wolframalpha-3.0.1/conftest.py
--- old/wolframalpha-3.0/conftest.py 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/conftest.py 2018-03-05 04:15:20.000000000 +0100
@@ -8,10 +8,10 @@
if six.PY2:
- collect_ignore = [
- 'wolframalpha/pmxbot.py',
- 'wolframalpha/test_pmxbot.py',
- ]
+ collect_ignore = [
+ 'wolframalpha/pmxbot.py',
+ 'wolframalpha/test_pmxbot.py',
+ ]
@pytest.fixture(scope='session')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/docs/conf.py
new/wolframalpha-3.0.1/docs/conf.py
--- old/wolframalpha-3.0/docs/conf.py 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/docs/conf.py 2018-03-05 04:15:20.000000000 +0100
@@ -1,38 +1,31 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-import setuptools_scm
-
extensions = [
- 'sphinx.ext.autodoc',
- 'rst.linker',
+ 'sphinx.ext.autodoc',
+ 'jaraco.packaging.sphinx',
+ 'rst.linker',
]
-# General information about the project.
-project = 'wolframalpha'
-copyright = '2016 Jason R. Coombs'
-
-# The short X.Y version.
-version = setuptools_scm.get_version(root='..', relative_to=__file__)
-# The full version, including alpha/beta/rc tags.
-release = version
-
master_doc = 'index'
link_files = {
- 'CHANGES.rst': dict(
+ '../CHANGES.rst': dict(
using=dict(
GH='https://github.com',
- project=project,
),
replace=[
dict(
- pattern=r"(Issue )?#(?P<issue>\d+)",
- url='{GH}/jaraco/{project}/issues/{issue}',
+ pattern=r'(Issue )?#(?P<issue>\d+)',
+ url='{package_url}/issues/{issue}',
+ ),
+ dict(
+
pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
+ with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
),
dict(
-
pattern=r"^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n",
- with_scm="{text}\n{rev[timestamp]:%d %b %Y}\n",
+ pattern=r'PEP[- ](?P<pep_number>\d+)',
+
url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
),
],
),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/pytest.ini
new/wolframalpha-3.0.1/pytest.ini
--- old/wolframalpha-3.0/pytest.ini 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/pytest.ini 2018-03-05 04:15:20.000000000 +0100
@@ -1,4 +1,4 @@
[pytest]
-norecursedirs=*.egg .eggs dist build
-addopts=--doctest-modules
+norecursedirs=dist build .tox .eggs
+addopts=--doctest-modules --flake8
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/setup.cfg
new/wolframalpha-3.0.1/setup.cfg
--- old/wolframalpha-3.0/setup.cfg 2016-09-04 17:44:48.000000000 +0200
+++ new/wolframalpha-3.0.1/setup.cfg 2018-03-05 04:15:57.000000000 +0100
@@ -1,16 +1,14 @@
[aliases]
-release = dists build_sphinx upload upload_docs
+release = dists upload
dists = clean --all sdist bdist_wheel
-test = pytest
-[wheel]
+[bdist_wheel]
universal = 1
-[upload]
-repository = https://upload.pypi.org/legacy/
+[metadata]
+license_file = LICENSE
[egg_info]
-tag_date = 0
tag_build =
-tag_svn_revision = 0
+tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/setup.py
new/wolframalpha-3.0.1/setup.py
--- old/wolframalpha-3.0/setup.py 2016-09-04 17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/setup.py 2018-03-05 04:15:20.000000000 +0100
@@ -3,24 +3,21 @@
# Project skeleton maintained at https://github.com/jaraco/skeleton
import io
-import sys
import setuptools
with io.open('README.rst', encoding='utf-8') as readme:
long_description = readme.read()
-needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
-pytest_runner = ['pytest_runner'] if needs_pytest else []
-needs_sphinx = {'release', 'build_sphinx',
'upload_docs'}.intersection(sys.argv)
-sphinx = ['sphinx', 'rst.linker'] if needs_sphinx else []
-needs_wheel = {'release', 'bdist_wheel'}.intersection(sys.argv)
-wheel = ['wheel'] if needs_wheel else []
-
name = 'wolframalpha'
description = 'Wolfram|Alpha 2.0 API client'
+nspkg_technique = 'native'
+"""
+Does this package use "native" namespace packages or
+pkg_resources "managed" namespace packages?
+"""
-setup_params = dict(
+params = dict(
name=name,
use_scm_version=True,
author="Jason R. Coombs",
@@ -30,20 +27,38 @@
url="https://github.com/jaraco/" + name,
packages=setuptools.find_packages(),
include_package_data=True,
- namespace_packages=name.split('.')[:-1],
+ namespace_packages=(
+ name.split('.')[:-1] if nspkg_technique == 'managed'
+ else []
+ ),
+ python_requires='>=2.7',
install_requires=[
'six',
'xmltodict',
'jaraco.itertools>=2.0',
],
extras_require={
+ 'testing': [
+ # upstream
+ 'pytest>=2.8',
+ 'pytest-sugar>=0.9.1',
+ 'collective.checkdocs',
+ 'pytest-flake8',
+
+ # local
+ 'pmxbot',
+ ],
+ 'docs': [
+ # upstream
+ 'sphinx',
+ 'jaraco.packaging>=3.2',
+ 'rst.linker>=1.9',
+
+ # local
+ ],
},
setup_requires=[
- 'setuptools_scm>=1.9',
- ] + pytest_runner + sphinx + wheel,
- tests_require=[
- 'pytest>=2.8',
- 'pmxbot',
+ 'setuptools_scm>=1.15.0',
],
classifiers=[
"Development Status :: 5 - Production/Stable",
@@ -54,9 +69,9 @@
],
entry_points={
'pmxbot_handlers': [
- 'Wolfram|Alpha = wolframalpha.pmxbot',
- ],
+ 'Wolfram|Alpha = wolframalpha.pmxbot',
+ ],
},
)
if __name__ == '__main__':
- setuptools.setup(**setup_params)
+ setuptools.setup(**params)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/tox.ini
new/wolframalpha-3.0.1/tox.ini
--- old/wolframalpha-3.0/tox.ini 1970-01-01 01:00:00.000000000 +0100
+++ new/wolframalpha-3.0.1/tox.ini 2018-03-05 04:15:20.000000000 +0100
@@ -0,0 +1,22 @@
+[tox]
+envlist = python
+minversion = 2.4
+
+[testenv]
+deps =
+ setuptools>=31.0.1
+ # workaround for yaml/pyyaml#126
+ git+https://github.com/yaml/pyyaml@master#egg=pyyaml
+commands =
+ py.test {posargs}
+ python setup.py checkdocs
+usedevelop = True
+extras = testing
+
+[testenv:build-docs]
+extras =
+ docs
+ testing
+changedir = docs
+commands =
+ python -m sphinx . {toxinidir}/build/html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/wolframalpha/__init__.py
new/wolframalpha-3.0.1/wolframalpha/__init__.py
--- old/wolframalpha-3.0/wolframalpha/__init__.py 2016-09-04
17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/wolframalpha/__init__.py 2018-03-05
04:15:20.000000000 +0100
@@ -62,7 +62,7 @@
self._handle_error()
def _handle_error(self):
- if not 'error' in self:
+ if 'error' not in self:
return
template = 'Error {error[code]}: {error[msg]}'
@@ -97,7 +97,7 @@
text = self.template.replace('${desc1}', self.description)
try:
text = text.replace('${word}', self.word)
- except:
+ except Exception:
pass
return text[:text.index('. ') + 1]
@@ -207,7 +207,12 @@
"""
The pods that hold the response to a simple, discrete query.
"""
- return (pod for pod in self.pods if pod.primary or pod.title=='Result')
+ return (
+ pod
+ for pod in self.pods
+ if pod.primary
+ or pod.title == 'Result'
+ )
@property
def details(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/wolframalpha/compat.py
new/wolframalpha-3.0.1/wolframalpha/compat.py
--- old/wolframalpha-3.0/wolframalpha/compat.py 2016-09-04 17:43:49.000000000
+0200
+++ new/wolframalpha-3.0.1/wolframalpha/compat.py 2018-03-05
04:15:20.000000000 +0100
@@ -1,6 +1,7 @@
import six
from six.moves import http_client
+
def fix_HTTPMessage():
"""
Python 2 uses a deprecated method signature and doesn't provide the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/wolframalpha/test_client.py
new/wolframalpha-3.0.1/wolframalpha/test_client.py
--- old/wolframalpha-3.0/wolframalpha/test_client.py 2016-09-04
17:43:49.000000000 +0200
+++ new/wolframalpha-3.0.1/wolframalpha/test_client.py 2018-03-05
04:15:20.000000000 +0100
@@ -1,4 +1,4 @@
-#-*- coding: utf-8 -*-
+# -*- coding: utf-8 -*-
from __future__ import unicode_literals
@@ -13,6 +13,7 @@
def temp_result(client):
return client.query('30 deg C in deg F')
+
def test_basic(temp_result):
res = temp_result
assert len(list(res.pods)) > 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/wolframalpha.egg-info/PKG-INFO
new/wolframalpha-3.0.1/wolframalpha.egg-info/PKG-INFO
--- old/wolframalpha-3.0/wolframalpha.egg-info/PKG-INFO 2016-09-04
17:44:48.000000000 +0200
+++ new/wolframalpha-3.0.1/wolframalpha.egg-info/PKG-INFO 2018-03-05
04:15:56.000000000 +0100
@@ -1,24 +1,25 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
Name: wolframalpha
-Version: 3.0
+Version: 3.0.1
Summary: Wolfram|Alpha 2.0 API client
Home-page: https://github.com/jaraco/wolframalpha
Author: Jason R. Coombs
Author-email: [email protected]
License: UNKNOWN
+Description-Content-Type: UNKNOWN
Description: .. image:: https://img.shields.io/pypi/v/wolframalpha.svg
:target: https://pypi.org/project/wolframalpha
.. image:: https://img.shields.io/pypi/pyversions/wolframalpha.svg
- .. image:: https://img.shields.io/pypi/dm/wolframalpha.svg
-
.. image:: https://img.shields.io/travis/jaraco/wolframalpha/master.svg
- :target: http://travis-ci.org/jaraco/wolframalpha
+ :target: https://travis-ci.org/jaraco/wolframalpha
+
+ .. image::
https://readthedocs.org/projects/wolframalpha/badge/?version=latest
+ :target: https://wolframalpha.readthedocs.io/en/latest/?badge=latest
Python Client built against the `Wolfram|Alpha
<http://wolframalpha.com>`_
- v2.0 API. This project is hosted on `Github
- <https://github.com/jaraco/wolframalpha>`_.
+ v2.0 API.
Usage
=====
@@ -63,3 +64,4 @@
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
+Requires-Python: >=2.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/wolframalpha.egg-info/SOURCES.txt
new/wolframalpha-3.0.1/wolframalpha.egg-info/SOURCES.txt
--- old/wolframalpha-3.0/wolframalpha.egg-info/SOURCES.txt 2016-09-04
17:44:48.000000000 +0200
+++ new/wolframalpha-3.0.1/wolframalpha.egg-info/SOURCES.txt 2018-03-05
04:15:57.000000000 +0100
@@ -1,11 +1,15 @@
-.gitignore
+.flake8
+.readthedocs.yml
.travis.yml
CHANGES.rst
+LICENSE
README.rst
+appveyor.yml
conftest.py
pytest.ini
setup.cfg
setup.py
+tox.ini
docs/conf.py
docs/history.rst
docs/index.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/wolframalpha-3.0/wolframalpha.egg-info/requires.txt
new/wolframalpha-3.0.1/wolframalpha.egg-info/requires.txt
--- old/wolframalpha-3.0/wolframalpha.egg-info/requires.txt 2016-09-04
17:44:48.000000000 +0200
+++ new/wolframalpha-3.0.1/wolframalpha.egg-info/requires.txt 2018-03-05
04:15:56.000000000 +0100
@@ -1,3 +1,15 @@
six
xmltodict
jaraco.itertools>=2.0
+
+[docs]
+sphinx
+jaraco.packaging>=3.2
+rst.linker>=1.9
+
+[testing]
+pytest>=2.8
+pytest-sugar>=0.9.1
+collective.checkdocs
+pytest-flake8
+pmxbot