From 7576c8fad283693ec2d2bf1d09078dfe67bb84eb Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Tue, 20 Jun 2023 16:16:34 +0100 Subject: [PATCH 1/2] Remore unnecessary future install requirement --- setup.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/setup.py b/setup.py index d681de5..743fe98 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,3 @@ -import sys -import os from setuptools import setup import tusclient @@ -11,7 +9,6 @@ license='MIT', author='Ifedapo Olarewaju', install_requires=[ - 'future>=0.16.0', 'requests>=2.18.4', 'six>=1.11.0', 'tinydb>=3.5.0', @@ -32,8 +29,7 @@ ] }, author_email='ifedapoolarewaju@gmail.com', - description= - 'A Python client for the tus resumable upload protocol -> http://tus.io', + description='A Python client for the tus resumable upload protocol -> http://tus.io', long_description=open('README.md', encoding='utf-8').read(), long_description_content_type='text/markdown', packages=['tusclient', 'tusclient.fingerprint', 'tusclient.storage', 'tusclient.uploader'], From 043af6b0b3d55b2f0540029317732ae559dab93b Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Tue, 20 Jun 2023 16:19:05 +0100 Subject: [PATCH 2/2] Specify minimum Python version as derived from aiohttp 3.6.2 . Also small cleanup of Python2 relics. --- docs/source/conf.py | 18 +++++++++--------- setup.py | 4 +++- tests/test_fingerprint.py | 1 - 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 916b17c..736eae5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,14 +19,14 @@ # -- Project information ----------------------------------------------------- -project = u'tuspy' -copyright = u'2018, Ifedapo Olarewaju' -author = u'Ifedapo Olarewaju' +project = 'tuspy' +copyright = '2018, Ifedapo Olarewaju' +author = 'Ifedapo Olarewaju' # The short X.Y version -version = u'' +version = '' # The full version, including alpha/beta/rc tags -release = u'' +release = '' # -- General configuration --------------------------------------------------- @@ -127,8 +127,8 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'tuspy.tex', u'tuspy Documentation', - u'Ifedapo Olarewaju', 'manual'), + (master_doc, 'tuspy.tex', 'tuspy Documentation', + 'Ifedapo Olarewaju', 'manual'), ] @@ -137,7 +137,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'tuspy', u'tuspy Documentation', + (master_doc, 'tuspy', 'tuspy Documentation', [author], 1) ] @@ -148,7 +148,7 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'tuspy', u'tuspy Documentation', + (master_doc, 'tuspy', 'tuspy Documentation', author, 'tuspy', 'One line description of project.', 'Miscellaneous'), ] \ No newline at end of file diff --git a/setup.py b/setup.py index 743fe98..69cb61d 100644 --- a/setup.py +++ b/setup.py @@ -46,4 +46,6 @@ 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Internet :: File Transfer Protocol (FTP)', 'Topic :: Communications :: File Sharing', - ]) + ], + python_requires=">=3.5.3", +) diff --git a/tests/test_fingerprint.py b/tests/test_fingerprint.py index c1d760e..faf460f 100644 --- a/tests/test_fingerprint.py +++ b/tests/test_fingerprint.py @@ -1,4 +1,3 @@ -from __future__ import print_function import unittest import six