Skip to content

Commit c00902e

Browse files
committed
Updated build tools
1 parent 5fc99b2 commit c00902e

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
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
814
scratch.py

MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
include linux_undervolt/GUI.glade
1+
include linux_undervolt/glade_files/GUI.glade
2+
include linux_undervolt/glade_files/main_adv.glade
3+
24
include linux_undervolt/powersave.sh
5+
include README.md

linux_undervolt/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

241241
if __name__ == "__main__":
242-
main()
242+
cli()

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from setuptools import setup
22
import 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

89
setup(
@@ -11,14 +12,15 @@
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']),

stdeb.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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

0 commit comments

Comments
 (0)