Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.5, add Python 3.9 and update requirements #419

Merged
merged 5 commits into from
Dec 11, 2020

Conversation

lukpueh
Copy link
Member

@lukpueh lukpueh commented Dec 11, 2020

Fixes issue #: None

Description of the changes being introduced by the pull request:

  • Drop Python 3.5
    Python 3.5 has now reached its end-of-life and has been retired https://www.python.org/dev/peps/pep-0478/. The optional (but highly recommended) 'cryptography' dependency has also just dropped support for 3.5. Continuing support for 3.5 does not seem worth the effort.

  • Add Python 3.9
    Add setup.py classifier and configure tox and travis to build for 3.9 (Appveyor would require some troubleshooting which we omit in favor of Consider switching to GitHub Actions for automated testing #407)

  • Update requirements

    • Fix minimal securesystemslib requirement
    • Update multi-env requirements generation docs and use it to re-generate pinned requirements file for testing.

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Python 3.5 has now reached its end-of-life and has been retired.
https://www.python.org/dev/peps/pep-0478/

The optional (but highly recommended) 'cryptography' dependency
has also just dropped support for 3.5. Continuing support for 3.5
does not seem worth the effort.

Instead we signal support for the new stable Python 3.9 via the
corresponding classifier.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
- Disable dropped Python 3.5 builds from tox, Travis and Appveyor
- Enable 3.9 builds for tox and Travis
  Note, 3.9 doesn't seem to work on Appveyor out of the box,
  instead of troubleshooting, we should just switch to GitHub
  Actions soon (see in-toto#407).
- Add 3.8 to Appveyor

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
Adopt docs for updating requirements-pinned.txt from based on
their revision in tuf and sslib:
- theupdateframework/python-tuf#982
- secure-systems-lab/securesystemslib#209

The update includes a transfer of the doc header + script/commands
from requirements-pinned.txt to requirements.txt, and a thus
resulting simplification of the commands.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
With in-toto#402 in-toto adopted a backwards-incompatible change in
securesystemslib. Since then, in-toto requires
securesystemslib>=0.18.0. This reflects that requirement in
setup.py and requirements.txt.

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
requirements-pinned.txt lists all immediate and transitive
dependencies combined for all supported Python versions.

Given both the recent change in Python version support (-3.5, +3.9)
and an update of requirements.txt (sslib>=0.18.0), this commit
semi-automatically updates the pinned dependencies according to the
instructions in requirements.txt's doc header:

Updated dependencies are:
- Remove dropped transitive dependency colorama
- Bump cryptography to 3.3.1

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
Copy link
Member

@adityasaky adityasaky left a comment

Choose a reason for hiding this comment

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

LGTM!

@adityasaky adityasaky merged commit 6337ce7 into in-toto:develop Dec 11, 2020
@lukpueh lukpueh mentioned this pull request Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants