-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update package versions #321
Conversation
33d15b7
to
60445c0
Compare
@tomvothecoder When you have time, can you review this please? I was finally able to get all the checks to pass on CI/CD. I ended up using the latest available version of everything -- except I ended up using Python 3.8 rather than 3.10 to avoid dependency conflicts. I'm not sure I updated everything correctly outside |
Sounds good, will review when I can fit this in (probably Thurs/Friday). |
Note: we want to look at supporting Python 3.9 rather than 3.8 as this PR currently does. |
- Add line break between GH Actions job steps - Update Python versions to 3.9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @forsyth2, please review my updates. The docs build locally and the GH Actions build is passing.
If you agree, please merge.
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to Python 3.9 (it will pick up the latest patch version, which is 3.9.13).
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to Python 3.9 (it will pick up the latest patch version, which is 3.9.13).
# Using pip for Sphinx dependencies because it takes too long to reproduce a conda environment (~10 secs vs. 3-4 mins) | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx==4.0.2 sphinx_rtd_theme==0.5.2 sphinx-multiversion==0.2.4 docutils==0.16 | ||
pip install sphinx==5.2.3 sphinx_rtd_theme==1.0.0 sphinx-multiversion==0.2.4 docutils==0.16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated these doc dependencies in the GH Actions to align with dev.yml
- name: Build Sphinx Docs | ||
run: | | ||
cd docs | ||
sphinx-multiversion source _build/html | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added line breaks between steps to make them easier to read.
with: | ||
activate-environment: "zppy_publish" | ||
channel-priority: strict | ||
python-version: 3.7 | ||
python-version: 3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to Python 3.9 (it will pick up the latest patch version, which is 3.9.13).
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to Python 3.9 (it will pick up the latest patch version, which is 3.9.13).
# Using pip for Sphinx dependencies because it takes too long to reproduce a conda environment (~10 secs vs. 3-4 mins) | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx==4.0.2 sphinx_rtd_theme==0.5.2 sphinx-multiversion==0.2.4 docutils==0.16 | ||
pip install sphinx==5.2.3 sphinx_rtd_theme==1.0.0 sphinx-multiversion==0.2.4 docutils==0.16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated these doc dependencies in the GH Actions to align with dev.yml
@@ -82,29 +82,36 @@ jobs: | |||
restore-keys: | | |||
${{ runner.os }}-pip- | |||
${{ runner.os }}- | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added line breaks between steps to make them easier to read.
- python=3.9.13 | ||
- pip=22.2.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved python
and pip
to the top because that's where they are usually listed since they are "system" level dependencies required to install the other packages.
- flake8-isort=4.2.0 # version from https://anaconda.org/conda-forge/flake8-isort | ||
- mypy=0.982 # version from https://anaconda.org/conda-forge/mypy | ||
- pre-commit=2.20.0 # version from https://anaconda.org/conda-forge/pre-commit | ||
- tbump=6.9.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbump
is now available on conda-forge so it doesn't need to be installed through - pip :
Thanks @tomvothecoder! |
Change
jinja2
version. Resolves #318. Note that this does not break #252, since the version is still above3.0.0
. Also updates various other package versions.