Skip to content

Commit

Permalink
Fix circleci (#159)
Browse files Browse the repository at this point in the history
* Remove 'parso' from reqs

* Allow next breaking changes of test deps

* Reformat bash scripts in PyCharm

* Bump 'flake8'

* Update 'setuptools' in venv

* Remove 'parso' from reqs_tools

* Install the previous 'setuptools' version to see the test fail [REVERT ME]

* Revert "Install the previous 'setuptools' version to see the test fail [REVERT ME]"

This reverts commit b347cb9.
  • Loading branch information
Guilherme Beltramini authored Jan 27, 2021
1 parent 0ee6ab9 commit 43785bf
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 19 deletions.
7 changes: 3 additions & 4 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
parso<0.8.0
pytest>=4.2.1,<5
pytest>=4.2.1,<7
pytest-cov>=2.6.1,<3
pytest-xdist>=1.26.1,<2
pytest-xdist>=1.26.1,<3
mypy>=0.670,<1
codecov>=2.0,<3
hypothesis>=5.5.4
hypothesis>=5.5.4,<7
1 change: 0 additions & 1 deletion requirements_tools.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
shap>=0.31.0,<=0.34
swifter>=0.284,<0.300
distributed>=2.14.0,<2.17.0
parso<0.8.0,>=0.7.0
7 changes: 7 additions & 0 deletions scripts/create_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

set -e

cur_dir=$(dirname ${BASH_SOURCE[0]})
source $cur_dir/helpers.sh

/usr/local/bin/python3 -m venv venv

activate_venv

venv/bin/python3 -m pip install -q 'setuptools==51.3.3'
6 changes: 3 additions & 3 deletions scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

set -e

activate_venv(){
. venv/bin/activate
activate_venv() {
. venv/bin/activate
}

install_package(){
install_package() {
activate_venv
venv/bin/python3 -m pip install -qe .$1
}
6 changes: 3 additions & 3 deletions scripts/init_pypirc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

echo -e "[pypi]" >> ~/.pypirc
echo -e "username = $PYPI_USER" >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
echo -e "[pypi]" >>~/.pypirc
echo -e "username = $PYPI_USER" >>~/.pypirc
echo -e "password = $PYPI_PASSWORD" >>~/.pypirc
16 changes: 8 additions & 8 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ source $cur_dir/helpers.sh

activate_venv

venv/bin/python3 -m pip install -q flake8==3.8.0
venv/bin/python3 -m pip install -q flake8==3.8.4
venv/bin/python3 -m flake8 \
--ignore=E731,W503 \
--filename=*.py \
--exclude=__init__.py \
--show-source \
--statistics \
--max-line-length=120 \
src/ tests/
--ignore=E731,W503 \
--filename=*.py \
--exclude=__init__.py \
--show-source \
--statistics \
--max-line-length=120 \
src/ tests/

0 comments on commit 43785bf

Please sign in to comment.