-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (70 loc) · 1.75 KB
/
pyproject.toml
File metadata and controls
86 lines (70 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tool.poetry]
name = "alcli"
version = "0.0.0"
description = ""
authors = ["m4dz <code@m4dz.net>"]
readme = "README.md"
packages = [{ include = "src" }]
[tool.poetry.dependencies]
python = "^3.10"
typer = "^0.7.0"
shellingham = "^1.5.0.post1"
requests = "^2.28.2"
tabulate = "^0.9.0"
chardet = "^5.1.0"
platformdirs = "^3.0.0"
rich = "^13.5.3"
[tool.poetry.group.build.dependencies]
nuitka = "^1.4"
zstandard = "^0.19.0"
ordered-set = "^4.1.0"
[tool.poetry.group.dev.dependencies]
black = "^22.12.0"
isort = "^5.11.4"
gitlint = "^0.18.0"
poethepoet = "^0.22.1"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.1"
[tool.poetry.scripts]
alwaysdata = "src.__main__:main"
[tool.poe]
poetry_command = "alcli"
[tool.poe.tasks.format]
help = "Format code/tests"
sequence = ["isort", "black"]
[tool.poe.tasks.black]
help = "Run black on the code base"
cmd = "black --line-length 119 src tests"
[tool.poe.tasks.isort]
help = "Run black on the code base"
cmd = "isort --line-length 119 src tests"
[tool.poe.tasks.test]
help = "Run unit and feature tests"
sequence = ["pytest"]
[tool.poe.tasks.pytest]
help = "Run unit tests"
cmd = "pytest"
[tool.poe.tasks.build]
help = "Build a local version (testing delivery purposes)"
cmd = """
python -m nuitka
--company-name=alwaysdata --product-name=alcli --product-version=0.1.0
--standalone
--onefile
--onefile-tempdir-spec='%CACHE_DIR%/%COMPANY%/%PRODUCT%/%VERSION%'
--python-flag=-m
--static-libpython=no
--follow-import-to=src
--assume-yes-for-downloads
--enable-plugin=no-qt
--clang
--noinclude-default-mode=nofollow
--show-anti-bloat-changes
--report=nuitka-build.xml
--output-dir=tmp
--output-filename=alwaysdata
src
"""
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"