Skip to content

Commit

Permalink
Add pyproject.toml and package build, use uv to run CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Oct 17, 2024
1 parent bd83fb8 commit bf8251e
Show file tree
Hide file tree
Showing 4 changed files with 586 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,17 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive

- name: Setting up Python 3.12 (${{ matrix.os }})
uses: actions/setup-python@v5
- name: Install a specific version of uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.12"
version: "0.4.x"
enable-cache: true

- name: Installing dtspy dependencies (${{ matrix.os }})
run: python3 -m pip install -r requirements.txt
- name: Install Python 3.12
run: uv python install 3.12

- name: Running tests (${{ matrix.os }})
run: coverage run -m unittest discover
run: uv run coverage run -m unittest discover
env:
DTS_KBASE_DEV_TOKEN: ${{ secrets.DTS_KBASE_DEV_TOKEN }}

Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "dtspy"
version = "0.1.0"
description = "Python client for the Data Transfer Service"
authors = [
{ name = "Jeffrey N. Johnson", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"frictionless>=5.17.0,<6",
"requests>=2.32.3,<3",
]
Loading

0 comments on commit bf8251e

Please sign in to comment.