Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dcf938e
poetry-ize
corviday Apr 24, 2025
f1279cd
update select() argument format
corviday Apr 25, 2025
fdbde53
wrap strings sent to execute() with text()
corviday Apr 26, 2025
8b953ec
change autoload to autoload_with and pass in an engine
corviday Apr 26, 2025
dda4538
temporarily downgrade sqlalchemy
corviday Apr 28, 2025
f395e5b
don't use non-numberic keys for rows
corviday Apr 29, 2025
94ac768
de-list arguments to case()
corviday Apr 30, 2025
1c1125b
remove redundant bind argument
corviday Apr 30, 2025
24197f5
execute statements on Connections
corviday Apr 30, 2025
8860e04
explicitly begin sessions
corviday May 1, 2025
3abd776
update to sqlalchemy 2.0!
corviday May 1, 2025
e44d8b2
update CI
corviday May 1, 2025
e866171
install scripts
corviday May 3, 2025
0326164
update away from resource_filename
corviday May 5, 2025
e2cd70e
upgrade from naive datetimes to aware ones
corviday May 7, 2025
1a9a037
Upgrade to PEP 621
corviday May 8, 2025
ff4e760
update to Ubuntu 24.04, script install with poethepoet
corviday May 8, 2025
96cef3b
update datetime.utc
corviday May 8, 2025
2c1fffe
need postgis after all
corviday May 8, 2025
3f23355
Exploratory code to mitigate netCDF4 errors
jameshiebert May 21, 2025
d957574
Remove memoization from index_netcdf.py
jameshiebert May 21, 2025
b79b6b8
delete old README
corviday May 22, 2025
37a4f8c
replace back_ref with back_populates
corviday May 22, 2025
1ef1a42
fix scalar subquery
corviday May 28, 2025
99aa553
mark many:many relationships "viewonly"
corviday May 28, 2025
675dfc8
typo in version number
corviday May 29, 2025
67db10e
tidy up some comment detritus
corviday May 29, 2025
c142820
untangle run/timeset/datafile
corviday May 30, 2025
4fe32d1
untagle DSG timeseries
corviday May 30, 2025
0dc9642
Removed unused test code
jameshiebert Jun 10, 2025
8680799
Use drop-in replacement for resource_filename
jameshiebert Jun 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ on:
jobs:
publish:

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install dependencies
python-version: '3.11'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
curl -sSL https://install.python-poetry.org | python3 -
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.pcic_at_pypi_username }}
TWINE_PASSWORD: ${{ secrets.pcic_at_pypi_password }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository-url https://pypi.pacificclimate.org/ --skip-existing -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
poetry config repositories.pcic https://pypi.pacificclimate.org/
poetry config http-basic.pcic $PCIC_PYPI_USERNAME $PCIC_PYPI_PASSWORD
poetry build
poetry publish -r pcic
35 changes: 12 additions & 23 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on: push
jobs:
test:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v2
Expand All @@ -20,37 +20,26 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install postgis postgresql-14 postgresql-client-14 libhdf5-serial-dev libnetcdf-dev libspatialite-dev
sudo apt-get install postgis postgresql-16 postgresql-client-16 libhdf5-serial-dev libnetcdf-dev libspatialite-dev wget

- name: Install pipenv
- name: Install poetry
run: |
pip install pipenv==2022.10.25

- id: cache-pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
wget -O - https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Install dependencies if changed
if: ${{ steps.cache-pipenv.outputs.cache-hit != 'true' && matrix.python-version == '3.8' }}
run: |
pipenv install --deploy --dev
- name: Re-install dependencies if alternative python version
if: ${{ matrix.python-version != '3.8' }}
- name: Install python dependencies
run: |
mv Pipfile.lock do-not-use
pipenv install --python ${{ matrix.python-version }} --dev
poetry install --extras test

- name: Test with pytest (full)
if: github.ref == 'refs/heads/master'
run: |
pipenv run py.test -m "not online" -v
poetry run py.test -v

- name: Test with pytest (fast)
if: github.ref != 'refs/heads/master'
run: |
pipenv run py.test -m "not online and not slow" -v
poetry run py.test -m "not slow" -v
19 changes: 9 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
all: install install-pipenv test
all: install install-poetry test

install:
sudo apt-get install postgresql-14 \
postgresql-client-14 \
sudo apt-get install postgresql-16 \
postgresql-client-16 \
libhdf5-serial-dev \
libnetcdf-dev \
libspatialite-dev \
postgresql-14-postgis-3
postgresql-16-postgis-3

install-pipenv:
sudo apt-get install pipenv
pipenv install
pipenv install --dev
install-poetry:
pip install poetry
poetry install --extras test

test: install
pipenv run pytest -v
test:
poetry run pytest -v
31 changes: 0 additions & 31 deletions Pipfile

This file was deleted.

1,102 changes: 0 additions & 1,102 deletions Pipfile.lock

This file was deleted.

Loading