Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Conversation

@lzpap
Copy link
Collaborator

@lzpap lzpap commented Mar 10, 2020

Related issue: #308 #301

Description

With #301 Python 2 (and Python 3.5) is no longer supported in PyOTA.

This PR removes glue code that made it possible to run the same code on both python versions, as it is no longer needed.

Changes:

  • Remove imports from six package, and six is no longer a pyota dependency.
  • Remove imports from __future__ package. (was needed for string handling, absolute imports, different division syntax and print function)
  • Add some PY3 syntax where necessary. (metaclasses, random.choices, etc.)

@lzpap lzpap added the deprecation Removal of obsolete functionality. label Mar 10, 2020
Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependencies in setup.py need to be updated + minor suggestions.

Python 2 is no longer supported in PyOTA.
Remove glue code that made it possible to run the same
code on both versions, as it is no longer needed.

Changes:
 - Remove imports from `six` package
 - Remove imports from `__future__` package
 - Add some Py3 syntax
 - Remove encoding spec from files as PY3's default is utf-8
 - Update setup.py, simplify dependencies, include metadata
   in the built sdist and wheel about supported python version
 - Remove `noinspection` comments
@lzpap lzpap merged commit ac153bc into iotaledger-archive:develop Mar 13, 2020
This was referenced Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

deprecation Removal of obsolete functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants