Skip to content

Commit

Permalink
refactor: Remove setup.py, add pyproject.toml, add badges. (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanelli authored Nov 21, 2024
1 parent 714dae4 commit de30c69
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests
name: Tests

on:
pull_request:
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[![tests](https://github.com/bvanelli/actualpy/workflows/Tests/badge.svg)](https://github.com/bvanelli/actualpy/actions)
[![codecov](https://codecov.io/github/bvanelli/actualpy/graph/badge.svg?token=N6V05MY70U)](https://codecov.io/github/bvanelli/actualpy)
[![version](https://img.shields.io/pypi/v/actualpy.svg?color=52c72b)](https://pypi.org/project/actualpy/)
[![pyversions](https://img.shields.io/pypi/pyversions/actualpy.svg)](https://pypi.org/project/actualpy/)
[![docs](https://readthedocs.org/projects/actualpy/badge/?version=latest)](https://actualpy.readthedocs.io/)
[![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/actualpy)](https://pypistats.org/packages/actualpy)

# actualpy

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

[project]
name = "actualpy"
description = "Implementation of the Actual API to interact with Actual over Python."
readme = "README.md"
authors = [
{ name = "Brunno Vanelli", email = "[email protected]" }
]
requires-python = ">=3.8.0"
dependencies = [
"requests>=2,<2.32.0",
"sqlmodel==0.0.18",
"pydantic>=2,<3",
"sqlalchemy>=1.4",
"proto-plus>=1",
"protobuf>=4",
"cryptography>=42",
"python-dateutil>=2.9.0",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["actual", "actualbudget", "api", "client"]
dynamic = ["version"]

[project.optional-dependencies]
cli = [
"rich>=13",
"typer>=0.12.0",
"pyyaml>=6",
]

[project.urls]
Homepage = "https://github.com/bvanelli/actualpy"
Documentation = "https://actualpy.readthedocs.io/"
Repository = "https://github.com/bvanelli/actualpy.git"
"Bug Tracker" = "https://github.com/bvanelli/actualpy/issues"

[project.scripts]
actualpy = "actual.cli.main:app"

[tool.setuptools.packages.find]
exclude = ["docs*", "tests*", "examples*"]

[tool.setuptools.dynamic]
version = { attr = "actual.version.__version__" }
27 changes: 0 additions & 27 deletions setup.py

This file was deleted.

0 comments on commit de30c69

Please sign in to comment.