Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit c1ec351

Browse files
mraarifZulqarnain
andauthored
dropped support for python 3.5 and some refactoring (#13)
* dropped support for python 3.5 and some refactoring * Update Python in ReadMe Co-authored-by: Zulqarnain <muhammad.zulqarnain@arbisoft.com>
1 parent afcaec1 commit c1ec351

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+80
-77
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: python
22
python:
3-
- 3.5
43
- 3.8
54
install:
65
- pip install -r requirements/travis.txt
@@ -13,6 +12,6 @@ deploy:
1312
distributions: sdist bdist_wheel
1413
on:
1514
tags: true
16-
python: 3.5
15+
python: 3.8
1716
password:
1817
secure: XftLPhN6LpfOxPTiTnlwFDi53qjZIkp0VeR+Ydy4MTUbJKla5/yfXfSFmBX0lHN3PYa1A2A4rIUhvMWd9j66ist+2nqPjcJJy1DwSX1nKgVLanOpV/fFTC8yt/BOxgiaT+vdOUdoi3LmbTpezc6dYZHPmts5maAtG/RLGZG9Bcoreu28WPCGv45t1t36s+HUxtbDrMCTEqgwrBKJiaHza3m1XtFOjF722ypyoOlPPutq565tlmacJ7A44jaCrv/6SVtPCOsBd48qXyULvpZJdWor2vGdKzPQOWi7cOLty6iNc9chHCP5CCCJvRIwiv3RMkOhtcxqT/ch5eVhzBpTb8uV3upbQslP88q8bGeMVDWNBnpwPvNYipMX4mEJHKCESzGp9doJtPF17e3fPw7L52sGtHbn8peLm0Itw65W8UH1w49LDmJSOqPeZmzlSg/tp/Tt4FvYWt8zxH2J5Q4UReM5SCROWfBq5Asn1rzHZCgHauLRrBd0SjeO9RgDHPsuDUZmvzMiJ/wPwQ21IpSXl7xBEx79mI3NOdYRGxOA+y8fQUdfPLtY0TV3xhv4dU6YCc2jrpmwNu07jbHO5w47RtZr0TBfIR6wjcVMSeQBtUkKpn0QPKN+JpAU6qrEeDNx92YUm6V0z7MXZmtcxr/dcxq4fsTK5hQqy2zOzkw8VYY=

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ For more information about the Tin Can API visit:
1010

1111
<http://tincanapi.com/>
1212

13-
Requires Python 2.7 or later.
13+
Requires Python 3.8 or later.
1414

1515
## Installation
16-
TinCanPython requires [Python 2.7](https://www.python.org/downloads/) or later. Python 3 is not supported.
16+
TinCanPython requires [Python 3.8](https://www.python.org/downloads/) or later.
1717

1818
If you are installing from the Github repo, you will need to install `aniso8601` and `pytz` (use `sudo` as necessary):
1919

docs/source/conf.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# Tin Can Python documentation build configuration file, created by
43
# sphinx-quickstart on Tue Jun 10 12:52:27 2014.
@@ -57,8 +56,8 @@ def setup(app):
5756
master_doc = 'index'
5857

5958
# General information about the project.
60-
project = u'Tin Can Python'
61-
copyright = u'2014, Rustici Software'
59+
project = 'Tin Can Python'
60+
copyright = '2014, Rustici Software'
6261

6362
# The version info for the project you're documenting, acts as replacement for
6463
# |version| and |release|, also used in various other places throughout the
@@ -209,8 +208,8 @@ def setup(app):
209208
# (source start file, target name, title,
210209
# author, documentclass [howto, manual, or own class]).
211210
latex_documents = [
212-
('index', 'TinCanPython.tex', u'Tin Can Python Documentation',
213-
u'Rustici Software', 'manual'),
211+
('index', 'TinCanPython.tex', 'Tin Can Python Documentation',
212+
'Rustici Software', 'manual'),
214213
]
215214

216215
# The name of an image file (relative to this directory) to place at the top of
@@ -239,8 +238,8 @@ def setup(app):
239238
# One entry per manual page. List of tuples
240239
# (source start file, name, description, authors, manual section).
241240
man_pages = [
242-
('index', 'tincanpython', u'Tin Can Python Documentation',
243-
[u'Rustici Software'], 1)
241+
('index', 'tincanpython', 'Tin Can Python Documentation',
242+
['Rustici Software'], 1)
244243
]
245244

246245
# If true, show URL addresses after external links.
@@ -253,8 +252,8 @@ def setup(app):
253252
# (source start file, target name, title, author,
254253
# dir menu entry, description, category)
255254
texinfo_documents = [
256-
('index', 'TinCanPython', u'Tin Can Python Documentation',
257-
u'Rustici Software', 'TinCanPython',
255+
('index', 'TinCanPython', 'Tin Can Python Documentation',
256+
'Rustici Software', 'TinCanPython',
258257
'One line description of project.', 'Miscellaneous'),
259258
]
260259

requirements/base.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
#
55
# make upgrade
66
#
7-
aniso8601==8.0.0 # via -r requirements/base.in
8-
pytz==2020.1 # via -r requirements/base.in
7+
aniso8601==8.1.0
8+
# via -r requirements/base.in
9+
pytz==2020.5
10+
# via -r requirements/base.in

requirements/pip_tools.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
#
55
# make upgrade
66
#
7-
click==7.1.2 # via pip-tools
8-
pip-tools==5.2.1 # via -r requirements/pip_tools.in
9-
six==1.15.0 # via pip-tools
7+
click==7.1.2
8+
# via pip-tools
9+
pip-tools==5.5.0
10+
# via -r requirements/pip_tools.in
1011

1112
# The following packages are considered to be unsafe in a requirements file:
1213
# pip

requirements/test.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
#
55
# make upgrade
66
#
7-
aniso8601==8.0.0 # via -r requirements/base.txt
8-
pytz==2020.1 # via -r requirements/base.txt
7+
aniso8601==8.1.0
8+
# via -r requirements/base.txt
9+
pytz==2020.5
10+
# via -r requirements/base.txt

requirements/travis.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
#
55
# make upgrade
66
#
7-
aniso8601==8.0.0 # via -r requirements/test.txt
8-
pytz==2020.1 # via -r requirements/test.txt
7+
aniso8601==8.1.0
8+
# via -r requirements/test.txt
9+
pytz==2020.5
10+
# via -r requirements/test.txt

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ def is_requirement(line):
3131
'tincan/conversions',
3232
'tincan/documents',
3333
],
34-
version='0.0.9',
34+
version='1.0.0',
3535
description='A Python 3 library for implementing Tin Can API.',
3636
author='edX',
3737
author_email='oscm@edx.org',
3838
classifiers=[
3939
'Programming Language :: Python :: 3',
40-
'Programming Language :: Python :: 3.5',
4140
'Programming Language :: Python :: 3.8',
4241
],
4342
maintainer_email='mailto:brian.miller@tincanapi.com',

test/documents/activity_profile_document_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_init_arg_exception_dict(self):
7575
ActivityProfileDocument(d)
7676

7777
def test_init_arg_exception_obj(self):
78-
class Tester(object):
78+
class Tester:
7979
def __init__(self, id=None, bad_test="test"):
8080
self.id = id
8181
self.bad_test = bad_test

test/documents/agent_profile_document_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_init_arg_exception_dict(self):
6262
AgentProfileDocument(d)
6363

6464
def test_init_arg_exception_obj(self):
65-
class Tester(object):
65+
class Tester:
6666
def __init__(self, id=None, bad_test="test"):
6767
self.id = id
6868
self.bad_test = bad_test

0 commit comments

Comments
 (0)