Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
switch to python3.8 (#4299)
Browse files Browse the repository at this point in the history
* remove python 3.7 from circleci testing

* update readme

* add tomli to requirements
  • Loading branch information
meganung committed Jan 12, 2022
1 parent 36e4883 commit abf2e4d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 42 deletions.
61 changes: 20 additions & 41 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,19 @@ executors:
PYTHONUNBUFFERED: 1
resource_class: xlarge

standard_cpu37:
small_cpu38:
docker:
- image: circleci/python:3.7.5-buster-node
environment:
PYTHONUNBUFFERED: 1
resource_class: xlarge

small_cpu37:
docker:
- image: circleci/python:3.7.5-buster-node
- image: circleci/python:3.8.0-buster-node
environment:
PYTHONUNBUFFERED: 1
resource_class: medium

osx_cpu37:
osx_cpu38:
macos:
# https://circleci.com/docs/2.0/testing-ios/
xcode: "11.3.1"
environment:
PYTHON: 3.7.1
PYTHON: 3.8.0
PYTHONUNBUFFERED: 1
HOMEBREW_NO_AUTO_UPDATE: 1

Expand Down Expand Up @@ -316,8 +309,8 @@ commands:
# Actual jobs
# -------------------------------------------------------------------------------------
jobs:
cleaninstall_37:
executor: standard_cpu37
cleaninstall_38:
executor: standard_cpu38
working_directory: ~/ParlAI
parallelism: 1
steps:
Expand All @@ -333,25 +326,14 @@ jobs:
parlai display_data -t integration_tests
unittests_osx:
executor: osx_cpu37
executor: osx_cpu38
working_directory: ~/ParlAI
parallelism: 2
steps:
- runtests:
cachename: osx
marker: unit

unittests_37:
executor: standard_cpu37
working_directory: ~/ParlAI
parallelism: 8
steps:
- runtests:
more_installs:
- installtorchcpu
cachename: ut37
marker: unit

unittests_38:
executor: standard_cpu38
working_directory: ~/ParlAI
Expand Down Expand Up @@ -403,7 +385,7 @@ jobs:
pytest_flags: -v -s

crowdsourcing_tests:
executor: small_cpu37
executor: small_cpu38
working_directory: ~/ParlAI
parallelism: 1
steps:
Expand All @@ -415,7 +397,7 @@ jobs:
- installcrowdsourcingdeps

teacher_tests:
executor: standard_cpu37
executor: standard_cpu38
working_directory: ~/ParlAI
parallelism: 16
steps:
Expand All @@ -425,22 +407,22 @@ jobs:
pytest_flags: -v -s

build_website:
executor: small_cpu37
executor: small_cpu38
working_directory: ~/ParlAI
parallelism: 1
steps:
- website:
deploy: false

deploy_website:
executor: small_cpu37
executor: small_cpu38
working_directory: ~/ParlAI
steps:
- website:
deploy: true

test_website:
executor: small_cpu37
executor: small_cpu38
working_directory: ~/ParlAI
steps:
- run:
Expand All @@ -463,29 +445,26 @@ workflows:
version: 2
commit:
jobs:
- cleaninstall_37
- cleaninstall_38
- unittests_gpu17:
requires:
- unittests_37
- unittests_38
- unittests_gpu18:
requires:
- unittests_37
- unittests_38:
requires:
- unittests_37
- unittests_37
- unittests_38
- unittests_38
- unittests_osx:
requires:
- unittests_37
- unittests_38
- long_gpu_tests:
requires:
- unittests_37
- unittests_38
- crowdsourcing_tests:
requires:
- unittests_37
- unittests_38
- teacher_tests:
requires:
- unittests_37
- unittests_38
- build_website:
filters:
branches:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ For those who want to start with ParlAI now, you can try our [Colab Tutorial](ht

## Installing ParlAI

ParlAI currently requires Python3.7+ and [Pytorch](https://pytorch.org) 1.6 or higher.
ParlAI currently requires Python3.8+ and [Pytorch](https://pytorch.org) 1.6 or higher.
Dependencies of the core modules are listed in [`requirements.txt`](https://github.com/facebookresearch/ParlAI/blob/main/requirements.txt). Some
models included (in [`parlai/agents`](https://github.com/facebookresearch/ParlAI/tree/main/parlai/agents)) have additional requirements.
We *strongly* recommend you install ParlAI in a [venv](https://docs.python.org/3/library/venv.html) or [conda](https://www.anaconda.com/) environment.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ subword-nmt==0.3.7
tensorboard==2.3.0
tensorboardX==2.1
tokenizers>=0.8.0
tomli<2.0.0
torchtext>=0.5.0
tornado==6.0.4
tqdm~=4.62.1
Expand Down

0 comments on commit abf2e4d

Please sign in to comment.