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
22 changes: 11 additions & 11 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: "3.9"
python-version: '3.14'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install flake8

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide, we further relax this
flake8 . --count --exit-zero --max-complexity=30 --max-line-length=130 --statistics

- name: Build
run: |
pip install build
python -m build
uv build

- name: Test with pytest
run: |
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
pytest --cov-report term --cov=cs3client tests/
uv run pytest --cov-report term --cov=cs3client tests/
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[build-system]
requires = ["hatchling==1.33.0"]
build-backend = "hatchling.build"

[project]
name = "cs3client"
description = "CS3 client for Python"
version = "1.8.0"
authors = [
{ name = "Rasmus Welander" },
{ name = "Diogo Castro" },
{ name = "Giuseppe Lo Presti" },
]
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"grpcio>=1.47.0",
"grpcio-tools>=1.47.0",
"pyOpenSSL",
"requests",
"cs3apis>=0.1.dev101",
"PyJWT",
"protobuf",
"cryptography",
]

[project.urls]
Homepage = "https://github.com/cs3org/cs3-python-client"
GitHub = "https://github.com/cs3org/cs3-python-client"

[dependency-groups]
dev = ["pytest", "pytest-cov", "sphinx"]

[tool.hatch.build.targets.wheel]
packages = ["cs3client"]
9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

Loading