Skip to content
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

support Python 3.9 #17

Merged
merged 13 commits into from
Sep 6, 2024
Merged

support Python 3.9 #17

merged 13 commits into from
Sep 6, 2024

Conversation

aclerc
Copy link
Contributor

@aclerc aclerc commented Sep 4, 2024

This PR is necessary for NREL/flasc#210 because FLASC supports 3.9

Main changes:

  • change the lint and test workflow to matrix so it tests multiple Python versions
  • add from __future__ import annotations where necessary
  • add eval-type-backport needed for pydantic
  • define strict_zip because in Python 3.9 zip cannot use the strict kwarg

@aclerc aclerc changed the title try Python 3.9 in workflow support Python 3.9 Sep 5, 2024
gabrielecalvo
gabrielecalvo previously approved these changes Sep 5, 2024
@aclerc
Copy link
Contributor Author

aclerc commented Sep 6, 2024

I think the "Some checks haven’t completed yet" status is due to this issue https://github.com/orgs/community/discussions/26698

@aclerc aclerc merged commit d96aea9 into main Sep 6, 2024
4 checks passed
@aclerc aclerc deleted the try-39 branch September 6, 2024 09:04
aclerc added a commit that referenced this pull request Sep 8, 2024
* Update smarteole_example.ipynb

fix issue, CACHE_SUBDIR is missing if data has never been downloaded

* Update smarteole_example.ipynb

fix ruff issue

* Update smarteole_example.ipynb

try to fix ruff issue

* fix issues after updating ruff

* Fix plotconfig mkdir (#16)

* remove make_plots_dir

* Update main_analysis.py

fix missing dir issue

* bump version

* Update smarteole_example.ipynb

* Update smarteole_example.ipynb

filter SmallSampleWarning

* Update smarteole_example.ipynb

fix ruff issue

* Create wind-up uplift validation methodology.pdf

* Cleanup  requests dependency and move to examples group (#19)

* Cleanup  requests dependency and move to examples group

* Jupyter group moved to examples and all group added

* Update pyproject.toml

define all using other groups

---------

Co-authored-by: Alex Clerc <alex.clerc@res-group.com>

* support Python 3.9 (#17)

* try Python 3.9 in workflow

* Update lint-and-test.yaml

* try from __future__ import annotations

* Update conftest.py

* add eval-type-backport

* more from __future__ import annotations

* remove TypeAlias

* replace zip with strict_zip

* ignore 3.9 mypy issues

* fix bug in backporting.py

* Update lint-and-test.yaml

* Update lint-and-test.yaml

* Update pyproject.toml

move types-requests to dev

* Update smarteole_example.ipynb

* Update smarteole_example.ipynb

* Update smarteole_example.ipynb

* Define supported python (#23)

* add badge to README

* Update pyproject.toml

* Update lint-and-test.yaml

* update classifiers

* Update lint-and-test.yaml

* Update README.md

* Update smarteole_example.ipynb

* Update lint-and-test.yaml

* Update README.md

* Update smarteole_example.ipynb

* fix methodology link

---------

Co-authored-by: Gorkem Kacar <139143704+izofat@users.noreply.github.com>
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.

2 participants