Skip to content

Commit 1b70f54

Browse files
committed
migrate from setup to pyproject
1 parent d5692e0 commit 1b70f54

3 files changed

Lines changed: 37 additions & 36 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ wheels/
2929
.installed.cfg
3030
*.egg
3131
MANIFEST
32+
uv.lock
3233

3334
# PyInstaller
3435
# Usually these files are written by a python script from a template

pyproject.toml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,42 @@
1+
[project]
2+
name = "python-amazon-paapi"
3+
version = "5.1.0"
4+
description = "Amazon Product Advertising API 5.0 wrapper for Python"
5+
readme = "README.md"
6+
requires-python = ">=3.7"
7+
license = "MIT"
8+
authors = [{ name = "Sergio Abad", email = "sergio.abad@bytelix.com" }]
9+
classifiers = [
10+
"Programming Language :: Python",
11+
"License :: OSI Approved :: MIT License",
12+
"Operating System :: OS Independent",
13+
]
14+
dependencies = [
15+
"certifi",
16+
"six",
17+
"python_dateutil",
18+
"setuptools",
19+
"urllib3",
20+
"typing_extensions; python_version < '3.8'",
21+
]
22+
23+
[project.urls]
24+
Homepage = "https://github.com/sergioteula/python-amazon-paapi"
25+
Repository = "https://github.com/sergioteula/python-amazon-paapi"
26+
27+
[build-system]
28+
requires = ["hatchling"]
29+
build-backend = "hatchling.build"
30+
31+
[tool.hatch.build.targets.wheel]
32+
packages = ["amazon_paapi"]
33+
34+
[dependency-groups]
35+
dev = ["pytest>=7.4.4"]
36+
137
[tool.ruff]
238
target-version = "py37"
339
cache-dir = ".cache/ruff"
4-
unsafe-fixes = true
540

641
[tool.ruff.lint]
742
select = ["ALL"]

setup.py

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

0 commit comments

Comments
 (0)