Skip to content

Commit 6f575e8

Browse files
committed
restrict python version to 3.10, 3.11 or 3.12
1 parent 77a741e commit 6f575e8

2 files changed

Lines changed: 83 additions & 84 deletions

File tree

.github/workflows/actions.yml

Lines changed: 69 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3,98 +3,97 @@ name: dac actions
33
on:
44
push:
55
branches:
6-
- '*'
6+
- "*"
77
tags:
8-
- '*'
8+
- "*"
99

1010
jobs:
11-
1211
check-style:
1312
runs-on: ubuntu-latest
1413
steps:
15-
- name: Checkout 🔖
16-
uses: actions/checkout@v3
17-
with:
18-
fetch-depth: 1
19-
- name: Setup python 🐍
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: '3.12'
23-
- name: Setup cache 💾
24-
uses: actions/cache@v3
25-
with:
26-
path: ~/.cache/pre-commit
27-
key: pre-commit
28-
- name: Prepare pre-commit 🙆‍♂️👗
29-
run: |
30-
python -m venv venv || . venv/bin/activate
31-
pip install -U pip wheel setuptools pre-commit
32-
pre-commit install
33-
- name: Run pre-commit 👗🚀
34-
run: |
35-
pre-commit run --all-files
14+
- name: Checkout 🔖
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 1
18+
- name: Setup python 🐍
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.12"
22+
- name: Setup cache 💾
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.cache/pre-commit
26+
key: pre-commit
27+
- name: Prepare pre-commit 🙆‍♂️👗
28+
run: |
29+
python -m venv venv || . venv/bin/activate
30+
pip install -U pip wheel setuptools pre-commit
31+
pre-commit install
32+
- name: Run pre-commit 👗🚀
33+
run: |
34+
pre-commit run --all-files
3635
3736
test:
3837
runs-on: "${{ matrix.os }}"
3938
strategy:
4039
matrix:
4140
os: ["ubuntu-latest"]
42-
version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
41+
version: ["3.10", "3.11", "3.12"]
4342
steps:
44-
- name: Checkout 🔖
45-
uses: actions/checkout@v3
46-
with:
47-
fetch-depth: 1
48-
- name: Setup python 🐍
49-
uses: actions/setup-python@v4
50-
with:
51-
python-version: "${{ matrix.version }}"
52-
- name: Prepare tests 🙆‍♂️🔬
53-
run: |
54-
python -m venv venv || . venv/bin/activate
55-
pip install -U pip wheel setuptools
56-
pip install -r requirements-test.txt
57-
- name: Run tests 🔬🚀
58-
run: |
59-
pytest test --run-slow
43+
- name: Checkout 🔖
44+
uses: actions/checkout@v3
45+
with:
46+
fetch-depth: 1
47+
- name: Setup python 🐍
48+
uses: actions/setup-python@v4
49+
with:
50+
python-version: "${{ matrix.version }}"
51+
- name: Prepare tests 🙆‍♂️🔬
52+
run: |
53+
python -m venv venv || . venv/bin/activate
54+
pip install -U pip wheel setuptools
55+
pip install -r requirements-test.txt
56+
- name: Run tests 🔬🚀
57+
run: |
58+
pytest test --run-slow
6059
6160
docs:
6261
needs: [test, check-style]
6362
if: ${{ github.ref == 'refs/heads/main' }}
6463
runs-on: ubuntu-latest
6564
steps:
66-
- name: Checkout 🔖
67-
uses: actions/checkout@v3
68-
- name: Deploy docs
69-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
CONFIG_FILE: mkdocs.yml
73-
REQUIREMENTS: requirements-docs.txt
65+
- name: Checkout 🔖
66+
uses: actions/checkout@v3
67+
- name: Deploy docs
68+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
CONFIG_FILE: mkdocs.yml
72+
REQUIREMENTS: requirements-docs.txt
7473

7574
pypi-release:
7675
needs: [test, check-style]
7776
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
7877
runs-on: ubuntu-latest
7978
steps:
80-
- name: Checkout 🔖
81-
uses: actions/checkout@v3
82-
with:
83-
fetch-depth: 1
84-
- name: Setup python 🐍
85-
uses: actions/setup-python@v4
86-
with:
87-
python-version: "3.12"
88-
- name: Prepare release 🙆‍♂️📦test
89-
run: |
90-
python -m venv venv || . venv/bin/activate
91-
pip install -U pip wheel setuptools build twine
92-
- name: Build 🛠️📦
93-
run: |
94-
python -m build
95-
- name: Release 📦🚀
96-
env:
97-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
98-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
99-
run: |
100-
python -m twine upload dist/*
79+
- name: Checkout 🔖
80+
uses: actions/checkout@v3
81+
with:
82+
fetch-depth: 1
83+
- name: Setup python 🐍
84+
uses: actions/setup-python@v4
85+
with:
86+
python-version: "3.12"
87+
- name: Prepare release 🙆‍♂️📦test
88+
run: |
89+
python -m venv venv || . venv/bin/activate
90+
pip install -U pip wheel setuptools build twine
91+
- name: Build 🛠️📦
92+
run: |
93+
python -m build
94+
- name: Release 📦🚀
95+
env:
96+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
97+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
98+
run: |
99+
python -m twine upload dist/*

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ name = "dac"
33
dynamic = ["version"]
44
description = "Tool to distribute data as code"
55
readme = "README.md"
6-
requires-python = ">=3.9,<4"
6+
requires-python = ">=3.10,<3.13"
77
license = { text = "MIT" }
88
authors = [
9-
{ name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com" },
9+
{ name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com" },
1010
]
1111
maintainers = [
12-
{ name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com" },
12+
{ name = "Francesco Calcavecchia", email = "francesco.calcavecchia@gmail.com" },
1313
]
1414
classifiers = [
15-
"Programming Language :: Python :: 3",
16-
"Development Status :: 3 - Alpha",
17-
"Intended Audience :: Developers",
18-
"Topic :: Software Development :: Build Tools",
19-
"License :: OSI Approved :: MIT License",
20-
"Topic :: Scientific/Engineering",
21-
"Operating System :: OS Independent",
15+
"Programming Language :: Python :: 3",
16+
"Development Status :: 3 - Alpha",
17+
"Intended Audience :: Developers",
18+
"Topic :: Software Development :: Build Tools",
19+
"License :: OSI Approved :: MIT License",
20+
"Topic :: Scientific/Engineering",
21+
"Operating System :: OS Independent",
2222
]
2323

2424
dependencies = [
25-
"build==1.2.2",
26-
"toml==0.10.2",
27-
"typer[all]==0.15.2",
28-
"wheel==0.45.1",
25+
"build==1.2.2",
26+
"toml==0.10.2",
27+
"typer[all]==0.15.2",
28+
"wheel==0.45.1",
2929
]
3030

3131
# [project.optional-dependencies]

0 commit comments

Comments
 (0)