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
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.8', '3.9', '3.10' ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]

steps:
- name: Checkout
Expand All @@ -27,9 +27,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Run linting
run: |
make lint

- name: Run tests
run: |
make test-coverage

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
Expand Down
25 changes: 14 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,39 @@ VENV_RUN = . $(VENV_ACTIVATE)

venv: $(VENV_ACTIVATE)

$(VENV_ACTIVATE): setup.cfg setup.py pyproject.toml
$(VENV_ACTIVATE): pyproject.toml
test -d $(VENV_DIR) || $(VENV_BIN) $(VENV_DIR)
$(VENV_RUN); pip install --upgrade setuptools wheel
$(VENV_RUN); pip install -e ".[dev]"
touch $(VENV_DIR)/bin/activate

clean:
rm -rf build/
rm -rf .eggs/
rm -rf *.egg-info/
rm -rf .venv

clean-dist: clean
rm -rf dist/

clean-venv:
rm -rf .venv
lint: venv
$(VENV_RUN); python -m ruff check .

format:
$(VENV_RUN); python -m isort .; python -m black .
format: venv
$(VENV_RUN); python -m ruff format . && python -m ruff check . --fix

test: venv
$(VENV_RUN); python -m pytest tests
$(VENV_RUN); python -m pytest

test-coverage: venv
$(VENV_RUN); coverage run --source=verdin -m pytest tests && coverage lcov -o .coverage.lcov

install: venv

dist: venv
$(VENV_RUN); python setup.py sdist bdist_wheel
$(VENV_RUN); python -m build

install: venv
$(VENV_RUN); pip install -e .

upload: venv
$(VENV_RUN); pip install --upgrade twine; twine upload dist/*

.PHONY: clean venv-clean format
.PHONY: clean clean-dist format test test-coverage upload
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Install
Requirements
------------

Python 3.8+
Python 3.10+

Usage
-----
Expand Down
53 changes: 43 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,50 @@
# Verdin project configuration
[build-system]
requires = ['setuptools', 'wheel']
build-backend = "setuptools.build_meta"
requires = ['hatchling']
build-backend = "hatchling.build"

[tool.black]
line_length = 100
include = '((verdin)/.*\.py$|tests/.*\.py$)'
#extend_exclude = '()'
[project]
name = "verdin"
authors = [
{ name = "Thomas Rausch", email = "[email protected]" }
]
description = "A Python SDK for Tinybird"
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Networking",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities"
]
requires-python = ">=3.10"
dynamic = ["version"]

[project.urls]
Repository = "https://github.com/localstack/verdin"

[project.optional-dependencies]
dev = [
"pytest>=6.2.4",
"ruff==0.9.1",
"pytest_httpserver>=1.0.1",
"coverage[toml]>=5.0",
"pytest-cov>=2.7.1",
"coveralls",
]

[tool.hatch.version]
path = "verdin/__init__.py"

[tool.isort]
profile = 'black'
#extend_skip = []
line_length = 100
[tool.ruff]
line-length = 100
target-version = "py310"

[tool.coverage.run]
relative_files = true
Expand Down
45 changes: 0 additions & 45 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.