forked from svavelsyra/PyVault
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.py
More file actions
24 lines (20 loc) · 690 Bytes
/
deploy.py
File metadata and controls
24 lines (20 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import subprocess
import sys
from acid_vault.version import __version__
for filename in os.listdir('dist'):
os.remove(os.path.join('dist', filename))
p = subprocess.Popen([sys.executable, 'setup.py', 'sdist', 'bdist_wheel'])
p.wait()
p = subprocess.Popen(['twine', 'upload', '-r', 'pypi', 'dist/*'])
p.wait()
p = subprocess.Popen(['pyinstaller',
'install.py',
'-F',
'-n',
f'PyVault-Win-Install-v{__version__}',
'--add-data',
'install data;install data',
'--distpath',
'win_installers'])
p.wait()