Skip to content

Commit

Permalink
Add support for python 3.11, DuckDB 0.6.0 and bump all dependencies (#46
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JakobGM committed Dec 2, 2022
1 parent 28dc040 commit 428e0a8
Show file tree
Hide file tree
Showing 13 changed files with 974 additions and 245 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -5,7 +5,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# TODO: Pin to version >2.0.0 once released
- uses: excitedleigh/setup-nox@main
- run: pip install poetry==1.1.13
- uses: excitedleigh/setup-nox@v2.1.0
- run: pip install poetry==1.2.2
- run: nox
5 changes: 2 additions & 3 deletions .github/workflows/coverage.yml
Expand Up @@ -5,9 +5,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# TODO: Pin to version >2.0.0 once released
- uses: excitedleigh/setup-nox@main
- run: pip install poetry==1.1.13
- uses: excitedleigh/setup-nox@v2.1.0
- run: pip install poetry==1.2.2
- run: nox --sessions test-3.9 coverage
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
python-version: '3.9'
architecture: x64
- run: pip install nox==2022.1.7
- run: pip install poetry==1.1.13
- run: pip install poetry==1.2.2
- run: nox
- run: poetry build
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
4 changes: 2 additions & 2 deletions .tool-versions
@@ -1,2 +1,2 @@
python 3.10.4 3.9.12 3.8.13 3.7.13
poetry 1.1.13
python 3.11.0 3.10.4 3.9.12 3.8.13 3.7.13
poetry 1.2.2
12 changes: 6 additions & 6 deletions noxfile.py
Expand Up @@ -5,7 +5,7 @@

nox.options.sessions = "lint", "test", "type_check"
locations = "src", "tests", "noxfile.py", "docs/conf.py"
supported_python_versions = "3.7", "3.8", "3.9", "3.10"
supported_python_versions = "3.7", "3.8", "3.9", "3.10", "3.11"


def install_with_constraints(session, *args, **kwargs):
Expand All @@ -29,8 +29,8 @@ def install_with_constraints(session, *args, **kwargs):
"poetry",
"export",
"--without-hashes",
"--dev",
"--format=requirements.txt",
"--with=dev",
"--format=constraints.txt",
f"--output={requirements.name}",
external=True,
)
Expand All @@ -49,7 +49,7 @@ def test(session):
session.run(
"poetry",
"install",
"--no-dev",
"--only=main",
"--extras",
# Pandas requires python version >= 3.8
"duckdb" if session.python == "3.7" else "duckdb pandas",
Expand Down Expand Up @@ -80,7 +80,7 @@ def type_check(session):
session.run(
"poetry",
"install",
"--no-dev",
"--only=main",
"--extras",
"duckdb pandas",
external=True,
Expand Down Expand Up @@ -125,7 +125,7 @@ def docs(session) -> None:
session.run(
"poetry",
"install",
"--no-dev",
"--only=main",
"--extras",
"duckdb pandas",
external=True,
Expand Down

0 comments on commit 428e0a8

Please sign in to comment.