Skip to content

Commit

Permalink
Merge pull request #157 from eshwen/esh-support-more-python-versions
Browse files Browse the repository at this point in the history
Support more Python versions
  • Loading branch information
eshwen authored Feb 23, 2024
2 parents 4f1a85e + 55362d5 commit 9c572ea
Show file tree
Hide file tree
Showing 8 changed files with 439 additions and 433 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ concurrency:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]

steps:
- uses: actions/checkout@v4

- name: Test
uses: eshwen/adrenaline/[email protected]
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
path: 'my_project/'

- name: Upload coverage report to Codecov
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Documentation](https://img.shields.io/badge/docs-Documentation%20--%20GitHub%20Pages-brightgreen?style=flat&logo=readthedocs)](https://eshwen.github.io/ds-python-boilerplate/index.html)

[![Python 3.10](https://img.shields.io/badge/python-3.10-blue?logo=Python&logoColor=yellow&link=https%3A%2F%2Fwww.python.org%2F)](https://www.python.org/downloads/release/python-31013/)
[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue?logo=Python&logoColor=yellow&link=https%3A%2F%2Fwww.python.org%2F)](https://python.org)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
[![Docker](https://badgen.net/badge/icon/docker?icon=docker&label)](https://docker.com/)

Expand Down
3 changes: 2 additions & 1 deletion docs/getting-started/conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
conda create -y -n my_project
conda activate my_project
conda config --set auto_activate_base false # (1)
conda install -y python=3.10
conda install -y python=3.10 # (2)
pip install --upgrade pip
```

1. Stops automatically activating the `base` env when opening the terminal.
2. This project also supports 3.11 and 3.12 if you want to use those instead.

4. And finally, install the requirements:

Expand Down
4 changes: 3 additions & 1 deletion docs/getting-started/poetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ poetry self update
Then, navigate to the project's root directory, and create the `virtualenv` environment with

```shell
poetry env use 3.10
poetry env use 3.10 # (1)
```

1. This project also supports 3.11 and 3.12 if you want to use those instead.

In future sessions (on the CLI), you can enter the environment by navigating to the project's root directory and running

```shell
Expand Down
395 changes: 197 additions & 198 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = ["Eshwen Bhal, PhD <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "~3.10"
python = ">=3.10,<3.13"

# Terminal colours
colorama = "*"
Expand All @@ -28,7 +28,7 @@ pydantic-settings = "^2.1.0"
pandera = "^0.17.2"

# SQL databases
SQLAlchemy = "*"
SQLAlchemy = "^2.0.0"

# APIs
fastapi = "^0.109.2"
Expand All @@ -52,7 +52,7 @@ ruff = "^0.1.15"

# Type hinting
mypy = "^1.8.0"
pandera = { version = "^0.17.2", extras = ["mypy"] }
pandera = { version = "*", extras = ["mypy"] }

# Jupyter notebooks
jupyter = "*"
Expand Down
328 changes: 164 additions & 164 deletions requirements-dev.txt

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
annotated-types==0.5.0 ; python_version >= "3.10" and python_version < "3.11"
anyio==3.7.1 ; python_version >= "3.10" and python_version < "3.11"
bottleneck==1.3.7 ; python_version >= "3.10" and python_version < "3.11"
certifi==2023.7.22 ; python_version >= "3.10" and python_version < "3.11"
charset-normalizer==3.2.0 ; python_version >= "3.10" and python_version < "3.11"
click==8.1.7 ; python_version >= "3.10" and python_version < "3.11"
colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.11"
contourpy==1.1.0 ; python_version >= "3.10" and python_version < "3.11"
cycler==0.11.0 ; python_version >= "3.10" and python_version < "3.11"
defusedxml==0.7.1 ; python_version >= "3.10" and python_version < "3.11"
et-xmlfile==1.1.0 ; python_version >= "3.10" and python_version < "3.11"
annotated-types==0.5.0 ; python_version >= "3.10" and python_version < "3.13"
anyio==3.7.1 ; python_version >= "3.10" and python_version < "3.13"
bottleneck==1.3.7 ; python_version >= "3.10" and python_version < "3.13"
certifi==2023.7.22 ; python_version >= "3.10" and python_version < "3.13"
charset-normalizer==3.2.0 ; python_version >= "3.10" and python_version < "3.13"
click==8.1.7 ; python_version >= "3.10" and python_version < "3.13"
colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.13"
contourpy==1.1.0 ; python_version >= "3.10" and python_version < "3.13"
cycler==0.11.0 ; python_version >= "3.10" and python_version < "3.13"
defusedxml==0.7.1 ; python_version >= "3.10" and python_version < "3.13"
et-xmlfile==1.1.0 ; python_version >= "3.10" and python_version < "3.13"
exceptiongroup==1.1.3 ; python_version >= "3.10" and python_version < "3.11"
fastapi==0.109.2 ; python_version >= "3.10" and python_version < "3.11"
fonttools==4.43.0 ; python_version >= "3.10" and python_version < "3.11"
greenlet==2.0.2 ; python_version >= "3.10" and python_version < "3.11" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
h11==0.14.0 ; python_version >= "3.10" and python_version < "3.11"
idna==3.4 ; python_version >= "3.10" and python_version < "3.11"
joblib==1.3.2 ; python_version >= "3.10" and python_version < "3.11"
kiwisolver==1.4.5 ; python_version >= "3.10" and python_version < "3.11"
llvmlite==0.41.0rc1 ; python_version >= "3.10" and python_version < "3.11"
matplotlib==3.7.2 ; python_version >= "3.10" and python_version < "3.11"
multimethod==1.9.1 ; python_version >= "3.10" and python_version < "3.11"
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
numba==0.58.1 ; python_version >= "3.10" and python_version < "3.11"
numexpr==2.8.5 ; python_version >= "3.10" and python_version < "3.11"
numpy==1.26.2 ; python_version >= "3.10" and python_version < "3.11"
odfpy==1.4.1 ; python_version >= "3.10" and python_version < "3.11"
openpyxl==3.1.2 ; python_version >= "3.10" and python_version < "3.11"
packaging==23.1 ; python_version >= "3.10" and python_version < "3.11"
pandas==2.1.3 ; python_version >= "3.10" and python_version < "3.11"
pandas[computation,excel,performance,sql-other,visualisation]==2.1.3 ; python_version >= "3.10" and python_version < "3.11"
pandera==0.17.2 ; python_version >= "3.10" and python_version < "3.11"
patsy==0.5.6 ; python_version >= "3.10" and python_version < "3.11"
pillow==10.2.0 ; python_version >= "3.10" and python_version < "3.11"
plotly==5.16.1 ; python_version >= "3.10" and python_version < "3.11"
pydantic-core==2.6.3 ; python_version >= "3.10" and python_version < "3.11"
pydantic-settings==2.1.0 ; python_version >= "3.10" and python_version < "3.11"
pydantic==2.3.0 ; python_version >= "3.10" and python_version < "3.11"
pyparsing==3.0.9 ; python_version >= "3.10" and python_version < "3.11"
python-dateutil==2.8.2 ; python_version >= "3.10" and python_version < "3.11"
python-dotenv==1.0.0 ; python_version >= "3.10" and python_version < "3.11"
pytz==2023.3 ; python_version >= "3.10" and python_version < "3.11"
pyxlsb==1.0.10 ; python_version >= "3.10" and python_version < "3.11"
pyyaml==6.0.1 ; python_version >= "3.10" and python_version < "3.11"
requests==2.31.0 ; python_version >= "3.10" and python_version < "3.11"
scikit-learn==1.3.0 ; python_version >= "3.10" and python_version < "3.11"
scipy==1.11.2 ; python_version >= "3.10" and python_version < "3.11"
seaborn==0.12.2 ; python_version >= "3.10" and python_version < "3.11"
six==1.16.0 ; python_version >= "3.10" and python_version < "3.11"
sniffio==1.3.0 ; python_version >= "3.10" and python_version < "3.11"
sqlalchemy==2.0.25 ; python_version >= "3.10" and python_version < "3.11"
starlette==0.36.3 ; python_version >= "3.10" and python_version < "3.11"
statsmodels==0.14.1 ; python_version >= "3.10" and python_version < "3.11"
tenacity==8.2.3 ; python_version >= "3.10" and python_version < "3.11"
threadpoolctl==3.2.0 ; python_version >= "3.10" and python_version < "3.11"
typeguard==4.1.2 ; python_version >= "3.10" and python_version < "3.11"
typing-extensions==4.9.0 ; python_version >= "3.10" and python_version < "3.11"
typing-inspect==0.9.0 ; python_version >= "3.10" and python_version < "3.11"
tzdata==2023.3 ; python_version >= "3.10" and python_version < "3.11"
urllib3==2.0.7 ; python_version >= "3.10" and python_version < "3.11"
uvicorn==0.23.2 ; python_version >= "3.10" and python_version < "3.11"
wrapt==1.15.0 ; python_version >= "3.10" and python_version < "3.11"
xarray==2023.8.0 ; python_version >= "3.10" and python_version < "3.11"
xlrd==2.0.1 ; python_version >= "3.10" and python_version < "3.11"
xlsxwriter==3.1.2 ; python_version >= "3.10" and python_version < "3.11"
fastapi==0.109.2 ; python_version >= "3.10" and python_version < "3.13"
fonttools==4.43.0 ; python_version >= "3.10" and python_version < "3.13"
greenlet==2.0.2 ; python_version >= "3.10" and python_version < "3.13" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
h11==0.14.0 ; python_version >= "3.10" and python_version < "3.13"
idna==3.4 ; python_version >= "3.10" and python_version < "3.13"
joblib==1.3.2 ; python_version >= "3.10" and python_version < "3.13"
kiwisolver==1.4.5 ; python_version >= "3.10" and python_version < "3.13"
llvmlite==0.42.0 ; python_version >= "3.10" and python_version < "3.13"
matplotlib==3.7.2 ; python_version >= "3.10" and python_version < "3.13"
multimethod==1.9.1 ; python_version >= "3.10" and python_version < "3.13"
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "3.13"
numba==0.59.0 ; python_version >= "3.10" and python_version < "3.13"
numexpr==2.8.5 ; python_version >= "3.10" and python_version < "3.13"
numpy==1.26.2 ; python_version >= "3.10" and python_version < "3.13"
odfpy==1.4.1 ; python_version >= "3.10" and python_version < "3.13"
openpyxl==3.1.2 ; python_version >= "3.10" and python_version < "3.13"
packaging==23.1 ; python_version >= "3.10" and python_version < "3.13"
pandas==2.1.3 ; python_version >= "3.10" and python_version < "3.13"
pandas[computation,excel,performance,sql-other,visualisation]==2.1.3 ; python_version >= "3.10" and python_version < "3.13"
pandera==0.17.2 ; python_version >= "3.10" and python_version < "3.13"
patsy==0.5.3 ; python_version >= "3.10" and python_version < "3.13"
pillow==10.2.0 ; python_version >= "3.10" and python_version < "3.13"
plotly==5.16.1 ; python_version >= "3.10" and python_version < "3.13"
pydantic-core==2.6.3 ; python_version >= "3.10" and python_version < "3.13"
pydantic-settings==2.1.0 ; python_version >= "3.10" and python_version < "3.13"
pydantic==2.3.0 ; python_version >= "3.10" and python_version < "3.13"
pyparsing==3.0.9 ; python_version >= "3.10" and python_version < "3.13"
python-dateutil==2.8.2 ; python_version >= "3.10" and python_version < "3.13"
python-dotenv==1.0.0 ; python_version >= "3.10" and python_version < "3.13"
pytz==2023.3 ; python_version >= "3.10" and python_version < "3.13"
pyxlsb==1.0.10 ; python_version >= "3.10" and python_version < "3.13"
pyyaml==6.0.1 ; python_version >= "3.10" and python_version < "3.13"
requests==2.31.0 ; python_version >= "3.10" and python_version < "3.13"
scikit-learn==1.4.1.post1 ; python_version >= "3.10" and python_version < "3.13"
scipy==1.11.2 ; python_version >= "3.10" and python_version < "3.13"
seaborn==0.12.2 ; python_version >= "3.10" and python_version < "3.13"
six==1.16.0 ; python_version >= "3.10" and python_version < "3.13"
sniffio==1.3.0 ; python_version >= "3.10" and python_version < "3.13"
sqlalchemy==2.0.23 ; python_version >= "3.10" and python_version < "3.13"
starlette==0.36.3 ; python_version >= "3.10" and python_version < "3.13"
statsmodels==0.14.0 ; python_version >= "3.10" and python_version < "3.13"
tenacity==8.2.3 ; python_version >= "3.10" and python_version < "3.13"
threadpoolctl==3.2.0 ; python_version >= "3.10" and python_version < "3.13"
typeguard==4.1.2 ; python_version >= "3.10" and python_version < "3.13"
typing-extensions==4.9.0 ; python_version >= "3.10" and python_version < "3.13"
typing-inspect==0.9.0 ; python_version >= "3.10" and python_version < "3.13"
tzdata==2023.3 ; python_version >= "3.10" and python_version < "3.13"
urllib3==2.0.7 ; python_version >= "3.10" and python_version < "3.13"
uvicorn==0.23.2 ; python_version >= "3.10" and python_version < "3.13"
wrapt==1.15.0 ; python_version >= "3.10" and python_version < "3.13"
xarray==2023.8.0 ; python_version >= "3.10" and python_version < "3.13"
xlrd==2.0.1 ; python_version >= "3.10" and python_version < "3.13"
xlsxwriter==3.1.2 ; python_version >= "3.10" and python_version < "3.13"

0 comments on commit 9c572ea

Please sign in to comment.