[Git][debian-gis-team/remotezip][master] 6 commits: New upstream version 0.12.3
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Mar 2 11:34:07 GMT 2024
Antonio Valentino pushed to branch master at Debian GIS Project / remotezip
Commits:
a3eb3ae2 by Antonio Valentino at 2024-03-02T11:23:45+00:00
New upstream version 0.12.3
- - - - -
90df1072 by Antonio Valentino at 2024-03-02T11:23:46+00:00
Update upstream source from tag 'upstream/0.12.3'
Update to upstream version '0.12.3'
with Debian dir c589ced4ba8442bc821892ef39bead323ccd2345
- - - - -
e01f0716 by Antonio Valentino at 2024-03-02T11:24:19+00:00
New upstream release
- - - - -
254929d7 by Antonio Valentino at 2024-03-02T11:28:16+00:00
Drop dependency on python3-tabulate
- - - - -
d6268fb1 by Antonio Valentino at 2024-03-02T11:29:26+00:00
Update dates in d/copyright
- - - - -
9a5731cf by Antonio Valentino at 2024-03-02T11:29:49+00:00
Set distribution to unstable
- - - - -
8 changed files:
- PKG-INFO
- debian/changelog
- debian/control
- debian/copyright
- remotezip.egg-info/PKG-INFO
- remotezip.egg-info/requires.txt
- remotezip.py
- setup.py
Changes:
=====================================
PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: remotezip
-Version: 0.12.2
+Version: 0.12.3
Summary: Access zip file content hosted remotely without downloading the full file.
Home-page: https://github.com/gtsystem/python-remotezip
Author: Giuseppe Tribulato
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+remotezip (0.12.3-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/control:
+ - Drop rependency on python3-tabulate.
+ * Update dates in d/copyright.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sat, 02 Mar 2024 11:29:31 +0000
+
remotezip (0.12.2-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/control
=====================================
@@ -8,8 +8,7 @@ Build-Depends: debhelper-compat (= 13),
dh-sequence-python3,
python3-all,
python3-requests,
- python3-setuptools,
- python3-tabulate
+ python3-setuptools
Standards-Version: 4.6.2
Testsuite: autopkgtest-pkg-pybuild
Homepage: https://github.com/gtsystem/python-remotezip
=====================================
debian/copyright
=====================================
@@ -8,7 +8,7 @@ Copyright: 2018, Giuseppe Tribulato
License: Expat
Files: debian/*
-Copyright: 2023, Antonio Valentino <antonio.valentino at tiscali.it>
+Copyright: 2023-2024, Antonio Valentino <antonio.valentino at tiscali.it>
License: Expat
License: Expat
=====================================
remotezip.egg-info/PKG-INFO
=====================================
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: remotezip
-Version: 0.12.2
+Version: 0.12.3
Summary: Access zip file content hosted remotely without downloading the full file.
Home-page: https://github.com/gtsystem/python-remotezip
Author: Giuseppe Tribulato
=====================================
remotezip.egg-info/requires.txt
=====================================
@@ -1,5 +1,4 @@
requests
-tabulate
[test]
requests_mock
=====================================
remotezip.py
=====================================
@@ -5,7 +5,6 @@ from datetime import datetime
from itertools import tee
import requests
-from tabulate import tabulate
__all__ = ['RemoteIOError', 'RemoteZip']
@@ -254,17 +253,35 @@ class RemoteZip(zipfile.ZipFile):
ilist.append(self.start_dir)
return {a: b-a for a, b in pairwise(ilist)}
+ def size(self):
+ return self.fp._file_size if self.fp else 0
+
def _list_files(url, support_suffix_range, filenames):
with RemoteZip(url, headers={'User-Agent': 'remotezip'}, support_suffix_range=support_suffix_range) as zip:
if len(filenames) == 0:
filenames = zip.namelist()
- data = [('Length', 'DateTime', 'Name')]
+ data = []
for fname in filenames:
zinfo = zip.getinfo(fname)
dt = datetime(*zinfo.date_time)
data.append((zinfo.file_size, dt.strftime('%Y-%m-%d %H:%M:%S'), zinfo.filename))
- print(tabulate(data, headers='firstrow'))
+ _printTable(data, ('Length', 'DateTime', 'Name'), '><<')
+
+
+def _printTable(data, header, align):
+ # get max col width & prepare formatting string
+ col_w = [len(col) for col in header]
+ for row in data:
+ col_w = [max(w, len(str(x))) for w, x in zip(col_w, row)]
+ fmt = ' '.join('{{:{}{}}}'.format(a, w)
+ for w, a in zip(col_w, align + '<' * 99))
+ # print table
+ print(fmt.format(*header).rstrip())
+ print(fmt.format(*['-' * w for w in col_w]))
+ for row in data:
+ print(fmt.format(*row).rstrip())
+ print()
def _extract_files(url, support_suffix_range, filenames, path):
=====================================
setup.py
=====================================
@@ -5,7 +5,7 @@ with open("README.md") as f:
setup(
name='remotezip',
- version='0.12.2',
+ version='0.12.3',
author='Giuseppe Tribulato',
author_email='gtsystem at gmail.com',
py_modules=['remotezip'],
@@ -14,7 +14,7 @@ setup(
description='Access zip file content hosted remotely without downloading the full file.',
long_description=description,
long_description_content_type="text/markdown",
- install_requires=["requests", "tabulate"],
+ install_requires=["requests"],
extras_require={
"test": ["requests_mock"],
},
View it on GitLab: https://salsa.debian.org/debian-gis-team/remotezip/-/compare/7f366fc839b758c50bfb9b4f6da7abb98c91bf41...9a5731cfddb74ad15f595b06da42a7fe3acd851f
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/remotezip/-/compare/7f366fc839b758c50bfb9b4f6da7abb98c91bf41...9a5731cfddb74ad15f595b06da42a7fe3acd851f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240302/aed7b683/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list