-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
62 lines (53 loc) · 1.24 KB
/
setup.cfg
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
[metadata]
name = grocy_importer
version = 0.1
author = Adam Schmalhofer
author_email = [email protected]
description = Help importing into and from Grocy
long_description = file: README.rst
keywords = grocy, todo.txt
license = MIT
[options]
scripts = grocy_importer.py
install_requires = file: requires.txt
[tox:tox]
envlist = py311
[testenv]
deps =
bs4
requests
marshmallow
appdirs
argcomplete
rstcheck
flake8
pdfminer.six
html5lib
recipe_scrapers
pyyaml
passenv =
GROCY_API_KEY
GROCY_BASE_URL
commands =
python -mdoctest grocy_importer.py
[testenv:type]
deps =
mypy>=1.0
types-beautifulsoup4
types-requests
types-appdirs
types-pyyaml
commands = mypy --strict grocy_importer.py
[testenv:rst]
commands = rstcheck README.rst
[testenv:clitest]
allowlist_externals =
clitest
cp
commands =
cp tests/setup/todo.txt.orig tests/setup/todo.txt
clitest --prefix 4 --pre-flight "alias todo-txt='todo-txt -d tests/setup/todo.cfg -p'" README.rst
clitest --prefix 4 --prompt '#$ ' README.rst
clitest --prefix 4 --pre-flight "alias grocy_importer.py='XDG_CONFIG_HOME=tests/setup python grocy_importer.py'" tests/README.rst
[testenv:flake]
commands = flake8 grocy_importer.py