File tree Expand file tree Collapse file tree 5 files changed +24
-9
lines changed Expand file tree Collapse file tree 5 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 11# Directories
2- / __pycache__
2+ ** __pycache__
33/.vscode
44/builds
5- /linux_undervolt /__pycache__
5+
6+ # Build stuff
7+ /deb_dist
8+ /dist
9+ * .egg-info
10+ * .tar.gz
11+
612
713# Files
814scratch.py
Original file line number Diff line number Diff line change 1- include linux_undervolt/GUI.glade
1+ include linux_undervolt/glade_files/GUI.glade
2+ include linux_undervolt/glade_files/main_adv.glade
3+
24include linux_undervolt/powersave.sh
5+ include README.md
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ def checkPrerequisites() -> bool:
218218 return check
219219
220220
221- def main ():
221+ def cli ():
222222 """
223223 Command line interface to change some settings. Should not be called from GUI.
224224 """
@@ -239,4 +239,4 @@ def main():
239239
240240
241241if __name__ == "__main__" :
242- main ()
242+ cli ()
Original file line number Diff line number Diff line change 11from setuptools import setup
22import linux_undervolt
33
4- with open ("README.md" , 'r' ) as fh :
5- long_description = fh .read ()
4+ def readme () -> str :
5+ with open ("README.md" , 'r' ) as f :
6+ return f .read ()
67
78
89setup (
1112 author = "TheOneMaster" ,
1213 author_email = "[email protected] " ,
1314 description = "GUI Frontend for intel-undervolt" ,
14- long_description = long_description ,
15+ long_description = readme () ,
1516 long_description_content_type = "text/markdown" ,
1617 license = "GPLv2" ,
1718 url = "https://github.com/TheOneMaster/linux-undervolt" ,
1819 packages = ['linux_undervolt' ],
1920 include_package_data = True ,
2021 entry_points = {
21- 'gui_scripts' : ["linux-undervolt = linux_undervolt.__main__:main" ]
22+ 'gui_scripts' : ["linux-undervolt = linux_undervolt.__main__:main" ],
23+ 'console_scripts' : ["linux-undervolt = linux_undervolt.config:cli" ]
2224 },
2325 data_files = [
2426 ('share/applications/' , ['theonemaster-linux_undervolt.desktop' ]),
Original file line number Diff line number Diff line change 1+ [DEFAULT]
2+ Depends: python3-gi python3-gi-cairo gir1.2-gtk-3.0
3+ XS-Python3-Version: >=3.10
4+ MIME-Desktop-Files: theonemaster-linux_undervolt.desktop
You can’t perform that action at this time.
0 commit comments