Skip to content

Commit

Permalink
feat: Add support for Python 3.8, Python 3.9, pypy-3.7 and pypy-3.8. (#…
Browse files Browse the repository at this point in the history
…689)

Closes: SDK-1988
  • Loading branch information
lukaszsocha2 committed Feb 9, 2022
1 parent 3510d3a commit 0aa94cc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.7', 'pypy-3.6-v7.3.3' ]
python-version: ['3.6', 'pypy-3.6-v7.3.3', '3.7', 'pypy-3.7', '3.8', 'pypy-3.8', '3.9']
name: Build with Python ${{ matrix.python-version }}
steps:
- name: Checkout
Expand Down
7 changes: 5 additions & 2 deletions boxsdk/util/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ def __members__(cls):
return members

def __contains__(cls, member):
if super(ExtendableEnumMeta, cls).__contains__(member):
return True
try:
if super(ExtendableEnumMeta, cls).__contains__(member):
return True
except TypeError:
return False

def in_(subclass):
return member in subclass
Expand Down
12 changes: 10 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,25 @@ envlist =
pycodestyle,
pylint,
py36,
pypy36,
py37,
pypy,
pypy37,
py38,
pypy38,
py39,
rst,
docs,
coverage

[gh-actions]
python =
3.6: py36, pycodestyle, pylint, rst, docs
pypy-3.6: pypy36
3.7: py37
pypy-3.6: pypy
pypy-3.7: pypy37
3.8: py38
pypy-3.8: pypy38
3.9: py39

[testenv]
commands =
Expand Down

0 comments on commit 0aa94cc

Please sign in to comment.