Skip to content

Commit a7c8425

Browse files
Build using Hatch
1 parent 4690364 commit a7c8425

6 files changed

Lines changed: 57 additions & 20 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ __pycache__
1717
helloasso_api_wrapper.egg-info
1818
build
1919

20-
.env.test
20+
.env.test
21+
22+
main.py
23+
24+
dist

helloasso_api_wrapper/__about__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.1"

pyproject.toml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "HelloAssoAPIWrapper"
7+
dynamic = ["version"]
8+
description = "Python wrapper for Helloasso APIV5"
9+
readme = "README.md"
10+
requires-python = ">=3.8"
11+
license = "MIT"
12+
keywords = []
13+
authors = [{ name = "AEECL ECLAIR" }]
14+
classifiers = [
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Framework :: Pydantic",
22+
"Framework :: Pydantic :: 2",
23+
]
24+
dependencies = ["helloasso-apiv5==1.0.0", "pydantic>=2.5"]
25+
26+
[project.urls]
27+
Source = "https://github.com/aeecleclair/HelloAssoAPIWrapper"
28+
29+
[tool.hatch.version]
30+
path = "helloasso_api_wrapper/__about__.py"
31+
32+
[tool.hatch.build]
33+
packages = ["helloasso_api_wrapper/"]
34+
35+
36+
[[tool.hatch.envs.all.matrix]]
37+
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
38+
39+
[tool.hatch.envs.default]
40+
installer = "uv"
41+
142
[tool.ruff]
243
# By default ruff also respect gitignore files
344
# Same as Black.
@@ -81,6 +122,12 @@ exclude = '''(?x)(
81122
| __pycache__
82123
| .pytest_cache
83124
| .venv
125+
| build
126+
| dist
84127
)'''
85128
strict = true
86129
disallow_any_generics = false
130+
131+
[[tool.mypy.overrides]]
132+
module = ["helloasso_api"]
133+
ignore_missing_imports = true

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
-r requirements.txt
22
ruff==0.3.7
33
mypy==1.8.0
4+
pytest==8.2.1
5+
pydantic_settings==4.11.0

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
helloasso-apiv5==1.0.0
2-
pydantic>=2.5
1+
helloasso-apiv5==1.0.0 # NOTE: helloasso-apiv5 version must be the same as pyproject.toml's dependencies configuration
2+
pydantic>=2.5 # NOTE: pydantic version must be the same as pyproject.toml's dependencies configuration

setup.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)