This commit is contained in:
Asger Geel Weirsøe
2020-09-05 12:36:16 +02:00
parent 184832d805
commit 72ba8f2f76
2 changed files with 8 additions and 2 deletions

View File

@@ -15,6 +15,11 @@ def main():
action='store_true', action='store_true',
help='Build to pypi.org' help='Build to pypi.org'
) )
group.add_argument(
'--check',
action='store_true',
help='Displays the twine check for dist'
)
args = parser.parse_args() args = parser.parse_args()
@@ -23,7 +28,8 @@ def main():
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'testpypi', 'dist/*']) subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'testpypi', 'dist/*'])
elif args.re: elif args.re:
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'pypi', 'dist/*']) subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'pypi', 'dist/*'])
else:
subprocess.call(['twine', 'check', 'dist/*'])
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@@ -4,7 +4,7 @@ with open('README.rst', 'r') as fh:
setup( setup(
name='pi3-smart-workspace', name='pi3-smart-workspace',
version='0.1.1', version='0.1.2',
packages=['pi3'], packages=['pi3'],
url='https://github.com/GeneralDenmark/PyOutputHandler', url='https://github.com/GeneralDenmark/PyOutputHandler',
license='Apache-2.0 License ', license='Apache-2.0 License ',