Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-agate-remote for
openSUSE:Factory checked in at 2022-12-06 14:23:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-agate-remote (Old)
and /work/SRC/openSUSE:Factory/.python-agate-remote.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-agate-remote"
Tue Dec 6 14:23:35 2022 rev:3 rq:1040419 version:0.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-agate-remote/python-agate-remote.changes
2021-05-21 21:50:33.990096676 +0200
+++
/work/SRC/openSUSE:Factory/.python-agate-remote.new.1835/python-agate-remote.changes
2022-12-06 14:23:51.145870849 +0100
@@ -1,0 +2,6 @@
+Mon Dec 5 20:05:42 UTC 2022 - Dirk Müller <[email protected]>
+
+- update to 0.2.1:
+ * Add ``requests_encoding`` keyword argument to ``from_url``.
+
+-------------------------------------------------------------------
Old:
----
agate-remote-0.2.0.tar.gz
New:
----
agate-remote-0.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-agate-remote.spec ++++++
--- /var/tmp/diff_new_pack.eoZijR/_old 2022-12-06 14:23:51.701875590 +0100
+++ /var/tmp/diff_new_pack.eoZijR/_new 2022-12-06 14:23:51.705875624 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-agate-remote
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-agate-remote
-Version: 0.2.0
+Version: 0.2.1
Release: 0
License: MIT
Summary: Read support for remote files for agate
++++++ agate-remote-0.2.0.tar.gz -> agate-remote-0.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/.github/workflows/ci.yml
new/agate-remote-0.2.1/.github/workflows/ci.yml
--- old/agate-remote-0.2.0/.github/workflows/ci.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/agate-remote-0.2.1/.github/workflows/ci.yml 2021-07-13
18:51:07.000000000 +0200
@@ -0,0 +1,25 @@
+name: CI
+on: [push, pull_request]
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [macos-latest, windows-latest, ubuntu-latest]
+ python-version: [2.7, 3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ #
https://github.com/actions/cache/blob/main/examples.md#using-a-script-to-get-cache-location
+ - id: pip-cache
+ run: python -c "from pip._internal.locations import USER_CACHE_DIR;
print('::set-output name=dir::' + USER_CACHE_DIR)"
+ - uses: actions/cache@v1
+ with:
+ path: ${{ steps.pip-cache.outputs.dir }}
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+ - run: pip install .[test]
+ - run: nosetests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/.travis.yml
new/agate-remote-0.2.1/.travis.yml
--- old/agate-remote-0.2.0/.travis.yml 2016-12-19 22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-language: python
-python:
- - "2.7"
- - "3.3"
- - "3.4"
- - "3.5"
-# command to install dependencies
-install:
- - if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r
requirements-py3.txt; else pip install -r requirements-py2.txt; fi
-# command to run tests
-script: nosetests tests
-sudo: false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/CHANGELOG.rst
new/agate-remote-0.2.1/CHANGELOG.rst
--- old/agate-remote-0.2.0/CHANGELOG.rst 2016-12-19 22:13:16.000000000
+0100
+++ new/agate-remote-0.2.1/CHANGELOG.rst 2021-07-13 18:51:07.000000000
+0200
@@ -1,5 +1,10 @@
-0.2.0
------
+0.2.1 - July 13, 2021
+---------------------
+
+* Add ``requests_encoding`` keyword argument to ``from_url``.
+
+0.2.0 - December 19, 2016
+-------------------------
* Remove deprecated monkeypatching pattern.
* Upgrade agate requirement to version ``1.5.0``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/MANIFEST.in
new/agate-remote-0.2.1/MANIFEST.in
--- old/agate-remote-0.2.0/MANIFEST.in 1970-01-01 01:00:00.000000000 +0100
+++ new/agate-remote-0.2.1/MANIFEST.in 2021-07-13 18:51:07.000000000 +0200
@@ -0,0 +1,7 @@
+include *.py
+include *.rst
+include COPYING
+recursive-include docs *.py
+recursive-include docs *.rst
+recursive-include docs Makefile
+recursive-include tests *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/README.rst
new/agate-remote-0.2.1/README.rst
--- old/agate-remote-0.2.0/README.rst 2016-12-19 22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/README.rst 2021-07-13 18:51:07.000000000 +0200
@@ -1,8 +1,8 @@
-.. image:: https://travis-ci.org/wireservice/agate-remote.png
- :target: https://travis-ci.org/wireservice/agate-remote
+.. image:: https://github.com/wireservice/agate-remote/workflows/CI/badge.svg
+ :target: https://github.com/wireservice/agate-remote/actions
:alt: Build status
-.. image:: https://img.shields.io/pypi/dw/agate-remote.svg
+.. image:: https://img.shields.io/pypi/dm/agate-remote.svg
:target: https://pypi.python.org/pypi/agate-remote
:alt: PyPI downloads
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/agateremote/archive.py
new/agate-remote-0.2.1/agateremote/archive.py
--- old/agate-remote-0.2.0/agateremote/archive.py 2016-12-19
22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/agateremote/archive.py 2021-07-13
18:51:07.000000000 +0200
@@ -21,6 +21,9 @@
raise AttributeError('Table.from_url is missing. Did you forget to
run agateremote.patch()?')
def get_table(self, key):
+ """
+ Download a remote file relative to the archive's root and return it as
a table.
+ """
url = self._url_func(self._root, key)
return agate.Table.from_url(url, callback=self._callback)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/agateremote/table_remote.py
new/agate-remote-0.2.1/agateremote/table_remote.py
--- old/agate-remote-0.2.0/agateremote/table_remote.py 2016-12-19
22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/agateremote/table_remote.py 2021-07-13
18:51:07.000000000 +0200
@@ -8,7 +8,7 @@
import requests
import six
-def from_url(cls, url, callback=agate.Table.from_csv, binary=False, **kwargs):
+def from_url(cls, url, callback=agate.Table.from_csv, binary=False,
requests_encoding=None, **kwargs):
"""
Download a remote file and pass it to a :class:`.Table` parser.
@@ -18,12 +18,18 @@
The method to invoke to create the table. Typically either
:meth:`agate.Table.from_csv` or :meth:`agate.Table.from_json`, but
it could also be a method provided by an extension.
+ :param requests_encoding:
+ An encoding to pass to requests for use when decoding the response
+ content. (e.g. force use of 'utf-8-sig' when CSV has a BOM).
:param binary:
If :code:`False` the downloaded data will be processed as a string,
otherwise it will be treated as binary data. (e.g. for Excel files)
"""
r = requests.get(url)
+ if requests_encoding:
+ r.encoding = requests_encoding
+
if binary:
content = six.BytesIO(r.content)
else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/docs/conf.py
new/agate-remote-0.2.1/docs/conf.py
--- old/agate-remote-0.2.0/docs/conf.py 2016-12-19 22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/docs/conf.py 2021-07-13 18:51:07.000000000 +0200
@@ -52,9 +52,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.2.0'
+version = '0.2.1'
# The full version, including alpha/beta/rc tags.
-release = '0.2.0'
+release = '0.2.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/requirements-py2.txt
new/agate-remote-0.2.1/requirements-py2.txt
--- old/agate-remote-0.2.0/requirements-py2.txt 2016-12-19 22:13:16.000000000
+0100
+++ new/agate-remote-0.2.1/requirements-py2.txt 1970-01-01 01:00:00.000000000
+0100
@@ -1,9 +0,0 @@
-unittest2==0.5.1
-nose>=1.1.2
-tox>=1.3
-Sphinx>=1.2.2
-sphinx_rtd_theme>=0.1.6
-wheel>=0.24.0
-ordereddict>=1.1
-agate>=1.5.0
-requests>=2.9.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/requirements-py3.txt
new/agate-remote-0.2.1/requirements-py3.txt
--- old/agate-remote-0.2.0/requirements-py3.txt 2016-12-19 22:13:16.000000000
+0100
+++ new/agate-remote-0.2.1/requirements-py3.txt 1970-01-01 01:00:00.000000000
+0100
@@ -1,7 +0,0 @@
-nose>=1.1.2
-tox>=1.3
-Sphinx>=1.2.2
-sphinx_rtd_theme>=0.1.6
-wheel>=0.24.0
-agate>=1.5.0
-requests>=2.9.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/setup.py
new/agate-remote-0.2.1/setup.py
--- old/agate-remote-0.2.0/setup.py 2016-12-19 22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/setup.py 2021-07-13 18:51:07.000000000 +0200
@@ -1,17 +1,14 @@
-#!/usr/bin/env python
+from setuptools import find_packages, setup
-from setuptools import setup
-
-install_requires = [
- 'agate>=1.5.0',
- 'requests>=2.9.1'
-]
+with open('README.rst') as f:
+ long_description = f.read()
setup(
name='agate-remote',
- version='0.2.0',
+ version='0.2.1',
description='agate-remote adds read support for remote files to agate.',
- long_description=open('README.rst').read(),
+ long_description=long_description,
+ long_description_content_type='text/x-rst',
author='Christopher Groskopf',
author_email='[email protected]',
url='http://agate-remote.readthedocs.org/',
@@ -24,19 +21,28 @@
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
- 'Topic :: Multimedia :: Graphics',
'Topic :: Scientific/Engineering :: Information Analysis',
- 'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries :: Python Modules',
],
- packages=[
- 'agateremote'
+ packages=find_packages(exclude=['tests', 'tests.*']),
+ install_requires=[
+ 'agate>=1.5.0',
+ 'requests>=2.9.1',
],
- install_requires=install_requires
+ extras_require={
+ 'test': [
+ 'nose>=1.1.2',
+ ],
+ 'docs': [
+ 'Sphinx>=1.2.2',
+ 'sphinx_rtd_theme>=0.1.6',
+ ],
+ }
+
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/tests/test_archive.py
new/agate-remote-0.2.1/tests/test_archive.py
--- old/agate-remote-0.2.0/tests/test_archive.py 2016-12-19
22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/tests/test_archive.py 2021-07-13
18:51:07.000000000 +0200
@@ -16,6 +16,6 @@
def test_get_table(self):
table = self.archive.get_table('sandwich/PublicSchools.csv')
- self.assertColumnNames(table, ['', 'Expenditure', 'Income'])
+ self.assertColumnNames(table, ('a', 'Expenditure', 'Income'))
self.assertColumnTypes(table, [agate.Text, agate.Number, agate.Number])
self.assertEqual(len(table.rows), 51)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/agate-remote-0.2.0/tox.ini
new/agate-remote-0.2.1/tox.ini
--- old/agate-remote-0.2.0/tox.ini 2016-12-19 22:13:16.000000000 +0100
+++ new/agate-remote-0.2.1/tox.ini 1970-01-01 01:00:00.000000000 +0100
@@ -1,28 +0,0 @@
-[tox]
-envlist = py27,py33,py34,py35,pypy
-
-[testenv]
-deps=
- nose>=1.1.2
- six>=1.6.1
-commands=nosetests
-
-[testenv:py27]
-deps=
- {[testenv]deps}
-
-[testenv:py33]
-deps=
- {[testenv]deps}
-
-[testenv:py34]
-deps=
- {[testenv:py33]deps}
-
-[testenv:py35]
-deps=
- {[testenv:py33]deps}
-
-[testenv:pypy]
-deps=
- {[testenv:py33]deps}