Skip to content

Commit

Permalink
Merge pull request #374 from rollbar/bxsx/setup-refactor
Browse files Browse the repository at this point in the history
Fix Python3.3 builds
  • Loading branch information
bxsx authored May 6, 2021
2 parents 5196cc5 + e4f3109 commit 132d5c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ jobs:

- name: Python 3.3 dependencies
if: ${{ matrix.python-version == '3.3' }}
run: pip install Werkzeug==0.14.1 --force-reinstall
run: pip install --force-reinstall \
Werkzeug==0.14.1 six>=1.9.0 requests>=0.12.1 enum34 unittest2 blinker webob

- name: Set the framework
run: echo ${{ matrix.framework }} >> $GITHUB_ENV
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
'unittest2'
]

version = sys.version_info
if version[0] == 2 or (version[0] == 3 and version[1] < 4):
tests_require.append('mock<=3.0.5') # mock > 3.0.5 requires python >= 3.5
if sys.version_info < (3, 3):
tests_require.append('mock<=3.0.5') # mock > 3.0.5 requires python >= 3.6
if sys.version_info < (3, 4):
tests_require.append('enum34')

setup(
Expand Down

0 comments on commit 132d5c9

Please sign in to comment.