Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4ec4385b2 | ||
|
|
184832d805 | ||
|
|
d6015c5576 |
@@ -17,6 +17,13 @@ Usage
|
||||
requred arguments:
|
||||
-i, --index the number index of the workspace that should be openend. 1 = first workspace in config etc.
|
||||
|
||||
Current limitations
|
||||
--------------------
|
||||
The way this script is set up, it is sending commands in strings. and thus we cannot keep track of each workspace other than by its name. This is a limmitiaion as there is no way for us to know if the workspace "1" is reffering to the workspace 1 assigned to output DS-1 or output HDMI-2..
|
||||
|
||||
So in order to differentiate between these, you need to name your workspaces new names for each output. See example configuration under #Installation.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
|
||||
35
build.py
Normal file
35
build.py
Normal file
@@ -0,0 +1,35 @@
|
||||
import argparse
|
||||
import subprocess
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser("Build script for pypi and pypi test")
|
||||
group = parser.add_mutually_exclusive_group(required=True)
|
||||
group.add_argument(
|
||||
'--test',
|
||||
action='store_true',
|
||||
help='Build to test.pypi.org'
|
||||
)
|
||||
group.add_argument(
|
||||
'--re',
|
||||
action='store_true',
|
||||
help='Build to pypi.org'
|
||||
)
|
||||
group.add_argument(
|
||||
'--check',
|
||||
action='store_true',
|
||||
help='Displays the twine check for dist'
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
subprocess.call(['python3', 'setup.py', 'sdist', 'bdist_wheel'])
|
||||
if args.test:
|
||||
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'testpypi', 'dist/*'])
|
||||
elif args.re:
|
||||
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'pypi', 'dist/*'])
|
||||
else:
|
||||
subprocess.call(['twine', 'check', 'dist/*'])
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user