-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
51 lines (46 loc) · 1.5 KB
/
tox.ini
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
[tox]
envlist = py37
[testenv]
deps =
-rrequirements_dev.txt
commands =
python -m pytest
[testenv:testpypi]
; Build and deploy the program on test.pypi.org
skip_install = True
deps =
wheel
setuptools
twine
passenv =
TWINE_USERNAME
TWINE_PASSWORD
commands =
python setup.py clean --all sdist bdist_wheel
twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ {toxinidir}/dist/*
[testenv:pypi]
; Build and deploy the program on pypi
skip_install = True
deps =
wheel
setuptools
twine
passenv =
TWINE_USERNAME
TWINE_PASSWORD
commands =
python setup.py clean --all sdist bdist_wheel
twine upload {toxinidir}/dist/*
; Running this testenv successfully creates an .exe but running it
; fails ("Failed to execute script screen2table") for some (yet) unknown reasons.
; The built .exe has almost the same size as the .exe built directly
; with PyInstaller, using the exact same command. This .exe works perfectly,
; so the command is saved here for future builds.
; [testenv:pyinstaller]
; skip_install = True
; deps =
; -rrequirements_pyinstaller.txt
; commands =
; pip freeze
; pyinstaller --distpath .\dist_pyinstaller -y --clean --onefile --windowed --add-data "screen2table/configs.cfg;screen2table" --version-file pyinstaller/file_version_info.txt screen2table\screen2table.py
; ; pyinstaller --distpath .\dist_pyinstaller --debug noarchive -y --clean --add-data "screen2table/configs.cfg;screen2table" screen2table\screen2table.py