Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
layout poetry
# https://github.com/direnv/direnv/wiki/Python#uv
layout_uv() {
if [[ -d ".venv" ]]; then
VIRTUAL_ENV="$(pwd)/.venv"
fi

if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
log_status "No virtual environment exists. Executing \`uv venv\` to create one."
uv venv
VIRTUAL_ENV="$(pwd)/.venv"
fi

PATH_add "$VIRTUAL_ENV/bin"
export UV_ACTIVE=1 # or VENV_ACTIVE=1
export VIRTUAL_ENV
}

layout_uv
63 changes: 24 additions & 39 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.7"
toxfactor: py37
ignore-typecheck-outcome: false
ignore-test-outcome: false
# `typed-ast` is not available for PyPy 3.7 (required by mypy)
# - python-version: "pypy3.7"
# toxfactor: py37
# ignore-typecheck-outcome: false
# ignore-test-outcome: true
- python-version: "3.8"
toxfactor: py38
ignore-typecheck-outcome: false
ignore-test-outcome: false
- python-version: "pypy3.8"
toxfactor: py38
ignore-typecheck-outcome: false
ignore-test-outcome: true
- python-version: "3.9"
toxfactor: py39
ignore-typecheck-outcome: false
Expand All @@ -40,44 +23,46 @@ jobs:
toxfactor: py310
ignore-typecheck-outcome: false
ignore-test-outcome: false
- python-version: "pypy3.10"
toxfactor: pypy310
ignore-typecheck-outcome: false
ignore-test-outcome: true
- python-version: "3.11"
toxfactor: py311
ignore-typecheck-outcome: false
ignore-test-outcome: false
- python-version: "3.12-dev"
toxfactor: py312
- python-version: "pypy3.11"
toxfactor: pypy311
ignore-typecheck-outcome: false
ignore-test-outcome: true

- python-version: "3.12"
toxfactor: py312
ignore-typecheck-outcome: false
ignore-test-outcome: false
- python-version: "3.13"
toxfactor: py313
ignore-typecheck-outcome: false
ignore-test-outcome: false

steps:
- uses: actions/checkout@v3

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# Install a specific version of uv.
version: "0.6.2"
enable-cache: 'true'

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: |
python -m pip install poetry==1.3.1

- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true

- name: Cache the virtualenv
id: poetry-dependencies-cache
uses: actions/cache@v3
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dev dependencies
if: steps.poetry-dependencies-cache.outputs.cache-hit != 'true'
run: |
python -m poetry install --only=dev
uv sync --group dev

- name: Type checking
# Ignore errors for older pythons
Expand All @@ -100,5 +85,5 @@ jobs:
# Explicitly using the token in order to avoid Codecov rate limit errors
# See https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
fail_ci_if_error: false
verbose: true # optional (default = false)
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add compatibility with python 3.13.

### Changed

- Using `uv` as the project manager

### Deprecated

### Removed

- Drop compatibility with python 3.7 and 3.8. Supported versions are now 3.9, 3.10, 3.11, 3.12.

### Fixed

### Security

## [0.3.1] - 2023-02-27

### Fixed
Expand Down
Loading
Loading