Merge pull request #4852 from PySimpleGUI/Dev-latest

Fix for upgrade from github problem when using psgupgrade.  Loses the…
This commit is contained in:
PySimpleGUI 2021-10-21 15:49:15 -04:00 committed by GitHub
commit 6742297045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -1,13 +1,14 @@
#!/usr/bin/python3
version = __version__ = "4.51.4 Released 21-Oct-2021"
version = __version__ = "4.51.4.1 Unreleased"
_change_log = """
Changelog since 4.51.4 released to PyPI on -Oct-2021
4.51.4.1
Support for making the command-line tools available after upgrade from GitHub.
"""
@ -21758,8 +21759,21 @@ def _copy_files_from_github():
"description='Unreleased Development Version',",
"url='https://github.com/PySimpleGUI/PySimpleGUI',"
"packages=setuptools.find_packages(),",
"version='", package_version, "')"
"version='", package_version, "',"
])
setup_text += """
entry_points={
'gui_scripts': [
'psgissue=PySimpleGUI.PySimpleGUI:main_open_github_issue',
'psgmain=PySimpleGUI.PySimpleGUI:main',
'psgupgrade=PySimpleGUI.PySimpleGUI:main_upgrade_from_github',
'psghelp=PySimpleGUI.PySimpleGUI:main_sdk_help',
'psgver=PySimpleGUI.PySimpleGUI:main_get_debug_data',
'psgsettings=PySimpleGUI.PySimpleGUI:main_global_pysimplegui_settings',
],
},)
"""
popup_scrolled(setup_text)
with open(os.path.join(temp_dir.name, 'setup.py'), 'w', encoding='utf-8') as f:
f.write(setup_text)