Skip to content

Commit

Permalink
Added support for pipx
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Nov 28, 2023
1 parent 90101b3 commit 91c1f4a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
MAIN FILE
"""

from pydetex.gui import PyDetexGUI
from pydetex.gui import main

PyDetexGUI().start()
main()
11 changes: 9 additions & 2 deletions pydetex/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Basic gui that convers and executes a given pipeline.
"""

__all__ = ['PyDetexGUI']
__all__ = ['PyDetexGUI', 'main']

import concurrent.futures
import tkinter as tk
Expand Down Expand Up @@ -815,5 +815,12 @@ def _check_version_event(self) -> None:
)


if __name__ == '__main__':
def main() -> None:
"""
Main app entry.
"""
PyDetexGUI().start()


if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion pydetex/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def __str__(self) -> str:
patch = property(lambda self: self[2])


vernum = Version(1, 0, 7)
vernum = Version(1, 0, 8)
ver = str(vernum)
rev = ''
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
packages=find_packages(exclude=['test']),
python_requires='>=3.7, <4',
install_requires=requirements,
entry_points={
'console_scripts': [
'pydetex = pydetex.gui:main',
],
'gui_scripts': [
'pydetex = pydetex.gui:main',
]
},
extras_require={
'docs': ['sphinx<7', 'sphinx-autodoc-typehints>=1.2.0', 'sphinx-rtd-theme'],
'installer': ['pyinstaller==4.10'],
Expand Down

0 comments on commit 91c1f4a

Please sign in to comment.