Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to uv #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
pip install poetry
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
env:
UV_PYTHON: ${{ matrix.python-version }}
run: |
poetry env use ${{ matrix.python-version }}
poetry install
uv sync
- name: Cache HTTP responses
uses: actions/cache@v4
with:
Expand All @@ -43,4 +43,4 @@ jobs:
http-responses-
- name: Test with pytest
run: |
poetry run pytest
uv run pytest
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ Follow these instructions to contribute to this project.

### Initialize your Development Environment

Prerequisites:

- Python 3.9+
- [uv](https://docs.astral.sh/uv/)

```bash
pipx install poetry
poetry install
uv sync
```

### Create and Run Tests
Expand All @@ -92,13 +96,13 @@ Create tests within the `tests` subfolder and
then run:

```bash
poetry run pytest
uv run pytest
```

You can also test the `tap-f1` CLI interface directly using `poetry run`:
You can also test the `tap-f1` CLI interface directly using `uv run`:

```bash
poetry run tap-f1 --help
uv run tap-f1 --help
```

### Testing with [Meltano](https://www.meltano.com)
Expand Down
Loading