Skip to content

Maintenance updates#41

Merged
QSparks merged 33 commits into
masterfrom
py-sprint-25q1
Nov 4, 2025
Merged

Maintenance updates#41
QSparks merged 33 commits into
masterfrom
py-sprint-25q1

Conversation

@QSparks
Copy link
Copy Markdown
Contributor

@QSparks QSparks commented Jun 20, 2025

  • PEP 621-conformant pyproject.toml
  • Poetry >2.0
  • ce>=3.6.6
  • Drop old setup files
  • Separate Black CI workflow
  • Enhanced logging
  • Use new PCIC_BLEND_v1 1981-2010 baseline
  • Use new 2030 climatologies
  • Use BC-regions-FNLF-84 polygons from GeoServer
  • Add First Nations territories and language families to the REGIONS dictionary
  • Bump CI workflows
  • Use marble-dev01 and Beehive URLs
  • Replace pkg_resources with importlib.resources

eyvorchuk and others added 30 commits February 14, 2022 10:56
Upgrades ceb version and adds its new dependencies
@QSparks QSparks requested review from Nospamas and corviday June 20, 2025 16:03
@QSparks QSparks self-assigned this Jun 20, 2025
- uses: actions/setup-python@v5
- uses: psf/black@stable
with:
options: "--check"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version of black will eventually get out of step with the Poetry-installed version, and silently cause problems. That's why the check was in the python-ci action -- so the same version is used by both CI and local developers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this. I've updated the workflow to read in the version defined in our pyproject.toml.

Copy link
Copy Markdown

@Nospamas Nospamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments for a couple of potential cleaner options, but overall approved.

Comment thread .github/workflows/black.yml Outdated
run: pip install poetry

- name: Install Black based on pyproject.toml
run: |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this meets the limit yet, but having a bunch of sh/python in a yaml file feels bad to me. might be worth extracting some or all of it to a nearby file (probably within workflows) and executing it from here.

Comment thread pyproject.toml
name = "p2a_impacts"
version = "0.4.0"
description = "Climate impacts engine for Plan2Adapt.ca"
authors = [{ name = "Nikola Rados", email = "nrados@uvic.ca" }]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suspect this might need updating :)

@QSparks QSparks merged commit fe89aa6 into master Nov 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants