-
Notifications
You must be signed in to change notification settings - Fork 2
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
I167 upgrade python #168
Merged
Merged
I167 upgrade python #168
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
06e767d
Install packages with poetry
eyvorchuk 75c5b4e
Update Makefile
eyvorchuk 299e1c2
Update Dockerfile
eyvorchuk 511014e
Fix Dockerfile
eyvorchuk d0c14d1
Update python-ci.yml
eyvorchuk 3c6d305
Install poetry in CI
eyvorchuk 4433485
Update dependencies
eyvorchuk 63bc25f
Format with black
eyvorchuk 0e77a82
Add .ncrc to fix SSL error when making OPeNDAP requests
eyvorchuk 8dc4a88
Change default thunderbird host
eyvorchuk de53577
Get thredds host from environment
eyvorchuk f2bf96f
Update local thunderbird URL
eyvorchuk 109b514
Update notebooks and formatted demos
eyvorchuk 5ab67f3
Update docs
eyvorchuk 7cd0119
Update dependencies marked by dependabot
eyvorchuk b4cd1a8
Update version in .cruft.json
eyvorchuk 62484da
Add more pytest options
eyvorchuk 7bed4aa
Remove files for previous installation process
eyvorchuk 015f983
Use dedicated bumpversion config file
eyvorchuk 3c4b6f3
Add pyproject.toml to .bumpversion.cfg
eyvorchuk a36deca
Clarify bumpversion section of dev docs
eyvorchuk 89a4b4d
Fix commands for testing using Makefile
eyvorchuk 1a47c8c
Update pywps to 4.5.2
eyvorchuk 9abdbb4
Check if in docker container vs localhost
eyvorchuk d7d2032
Install system dependencies first in Dockerfile to cache layer
eyvorchuk bdcd530
Ensure full test suite works in CI before merging
eyvorchuk 99e5d85
Omit online tests for running full test suite in CI
eyvorchuk 994391a
Fix Makefile
eyvorchuk 101da74
Uncomment check for master branch
eyvorchuk 251b9b3
Replace THREDDS_HOST with DACCS_HOST
eyvorchuk 2bfa1c4
Use DACCS_HOST in Makefile
eyvorchuk 3a17759
Relax dependencies where possible
eyvorchuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[bumpversion] | ||
current_version = 1.2.3 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:thunderbird/__version__.py] | ||
search = __version__ = "{current_version}" | ||
replace = __version__ = "{new_version}" | ||
|
||
[bumpversion:file:pyproject.toml] | ||
search = version = "{current_version}" | ||
replace = version = "{new_version}" | ||
|
||
[bumpversion:file:Dockerfile] | ||
search = Version="{current_version}" | ||
replace = Version="{new_version}" | ||
|
||
[bumpversion:file:.cruft.json] | ||
search = "version": "{current_version}" | ||
replace = "version": "{new_version}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DACCS_HOST="marble-dev01.pcic.uvic.ca" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,6 @@ src/ | |
|
||
# tests | ||
*.log | ||
*.lock | ||
testdata.json | ||
|
||
# IPython | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
FROM python:3.8-slim | ||
FROM python:3.10-slim | ||
|
||
LABEL Maintainer=https://github.com/pacificclimate/thunderbird Description="thunderbird WPS" Vendor="pcic" Version="1.2.3" | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV PIP_INDEX_URL="https://pypi.pacificclimate.org/simple/" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y cdo curl libhdf5-serial-dev netcdf-bin libnetcdf-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /tmp | ||
WORKDIR /tmp | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential cdo libhdf5-serial-dev netcdf-bin libnetcdf-dev && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
# this line combats the issue found here: | ||
# https://superuser.com/questions/1347723/arch-on-wsl-libqt5core-so-5-not-found-despite-being-installed | ||
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 && \ | ||
# Removing this package prevents a scan failure. It will be reintroduced | ||
# once 1.24.2 becomes available through the base image. | ||
# Issue link: https://github.com/advisories/GHSA-mh33-7rrq-662w | ||
apt-get remove -y python3-urllib3 && \ | ||
pip install -U pip && \ | ||
pip install . && \ | ||
pip install gunicorn | ||
RUN curl -sSL https://install.python-poetry.org | python3 - | ||
ENV PATH=/root/.local/bin:$PATH | ||
RUN poetry install | ||
|
||
EXPOSE 5000 | ||
CMD ["gunicorn", "--bind=0.0.0.0:5000", "thunderbird.wsgi:application"] | ||
CMD ["poetry", "run", "gunicorn", "-t 60", "--bind=0.0.0.0:5000", "thunderbird.wsgi:application"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This target should also be documented in the 'help' target