Skip to content

Commit

Permalink
Add workflows for Python 3.12 (#329)
Browse files Browse the repository at this point in the history
* add python 3.12 vm env to test suite and update pyproject.toml classifiers to indicate support

* Bump actions versions

* Swap out fake/abandoned jupyter metapackage for jupyterlab and notebook

* Try conda-forge

---------

Co-authored-by: Jay Qi <[email protected]>
  • Loading branch information
chrisjkuch and jayqi authored Jan 30, 2024
1 parent 1522f3f commit 6a1374e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
Expand All @@ -45,16 +45,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
Expand All @@ -64,7 +64,7 @@ jobs:
dev-requirements.txt
- name: Cache conda packages
uses: actions/cache@v2
uses: actions/cache@v4
env:
# Increase this value to reset cache explicitly
CACHE_NUMBER: 0
Expand Down
2 changes: 2 additions & 0 deletions ccds/hook_utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def write_dependencies(
with open(dependencies, "w") as f:
lines = [
f"name: {repo_name}",
"channels:",
" - conda-forge",
"dependencies:",
]

Expand Down
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"pip",
"python-dotenv",
"setuptools",
"wheel",
]

# {% if cookiecutter.dataset_storage.s3 %}
Expand All @@ -33,8 +32,9 @@
# {% if cookiecutter.pydata_packages == "basic" %}
packages += [
"ipython",
"jupyter",
"jupyterlab",
"matplotlib",
"notebook",
"numpy",
"pandas",
"scikit-learn",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
Expand Down

0 comments on commit 6a1374e

Please sign in to comment.