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

chore: remove Python 3.6 support #251

Merged
merged 5 commits into from
Sep 6, 2022

Conversation

Saransh-cpp
Copy link
Collaborator

Fixes #250

@Saransh-cpp Saransh-cpp added this to the v0.10.0 milestone Sep 5, 2022
pyproject.toml Outdated
@@ -51,7 +50,7 @@ awkward = [
]
dev = [
"awkward>=1.2",
'numba>=0.50; python_version >= "3.6"',
'numba>=0.50; python_version >= "3.7"',
Copy link
Member

Choose a reason for hiding this comment

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

This is always true?

noxfile.py Outdated
@@ -2,7 +2,7 @@

import nox

ALL_PYTHONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
ALL_PYTHONS = ["3.7", "3.8", "3.9", "3.10"]
Copy link
Member

Choose a reason for hiding this comment

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

Can we add 3.11 now, too? And 3.11-dev to the testing matrix? Awkward supports 3.11 now. Some of the dev dependencies will need to require <3.11.

Copy link
Member

Choose a reason for hiding this comment

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

(Actually the 3.11 stuff can be added before 0.9 & this PR)

@henryiii
Copy link
Member

henryiii commented Sep 5, 2022

We can change pyupgrade to --py37plus, and add the annotations addition to isort (see SKHEP dev pages).

@Saransh-cpp
Copy link
Collaborator Author

image

Is this check configured as "required" for the whole org, or can it be disabled for vector?

@jpivarski
Copy link
Member

You probably have access to change this (try checking): go to Settings (gear icon), then Branches (left menu), then Set Protection Rules. Inside that, there's a start-typing-then-dropdown-menu for adding new requirements and a way to "X" out old requirements.

image

I did it already for this one (dropped Python 3.6 and added 3.10 and 3.11-dev).

@Saransh-cpp
Copy link
Collaborator Author

I don't have access to the Settings tab 😅 Thank you!

@henryiii
Copy link
Member

henryiii commented Sep 6, 2022

You might have permissions now. Maybe.

@@ -15,7 +15,7 @@ keywords = [
license = "BSD-3-Clause"
maintainers = [ {name = "The Scikit-HEP admins", email = "scikit-hep-admins@googlegroups.com"} ]
authors = [ {name = "Jim Pivarski, Henry Schreiner, Eduardo Rodrigues", email = "eduardo.rodrigues@cern.ch"} ]
requires-python = ">=3.6"
requires-python = ">=3.7"
dependencies = [
'importlib-metadata>=0.22; python_version < "3.8"',
"numpy>=1.13.3",
Copy link
Member

Choose a reason for hiding this comment

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

I think this is now higher; the first version to support 3.7 was newer than 1.13.3.

Copy link
Member

Choose a reason for hiding this comment

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

It's 1.14.5.

@henryiii
Copy link
Member

henryiii commented Sep 6, 2022

Could you update the isort hook:

- repo: https://github.com/PyCQA/isort
  rev: 5.10.1
  hooks:
  - id: isort
    args: ["-a", "from __future__ import annotations"]

Edit: NVM, I went ahead and added it.

@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2022

Codecov Report

Base: 80.87% // Head: 81.04% // Increases project coverage by +0.16% 🎉

Coverage data is based on head (a442b5a) compared to base (bfeade3).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #251      +/-   ##
==========================================
+ Coverage   80.87%   81.04%   +0.16%     
==========================================
  Files          96       96              
  Lines       10529    10623      +94     
==========================================
+ Hits         8515     8609      +94     
  Misses       2014     2014              
Impacted Files Coverage Δ
src/vector/__init__.py 82.50% <100.00%> (+0.44%) ⬆️
src/vector/_compute/lorentz/Et.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/Et2.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/Mt.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/Mt2.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/__init__.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/add.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/beta.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/boostX_beta.py 100.00% <100.00%> (ø)
src/vector/_compute/lorentz/boostX_gamma.py 100.00% <100.00%> (ø)
... and 84 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Saransh-cpp
Copy link
Collaborator Author

You might have permissions now. Maybe.

Yes! Thank you!

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.

Drop Python 3.6 support
4 participants