Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lubuntu-team/lubuntu-about
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8c7aa4b883fd
Choose a base ref
...
head repository: lubuntu-team/lubuntu-about
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 751b8fe7cec6
Choose a head ref
  • 16 commits
  • 12 files changed
  • 1 contributor

Commits on Jan 28, 2018

  1. Add the initial setup file.

    tsimonq2 committed Jan 28, 2018
    Copy the full SHA
    191004f View commit details
  2. Initial packaging.

    tsimonq2 committed Jan 28, 2018
    Copy the full SHA
    c1c274f View commit details
  3. Only build with Python 3.

    tsimonq2 committed Jan 28, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    80a5c44 View commit details
  4. Copy the full SHA
    55a9eeb View commit details
  5. Copy the full SHA
    1440523 View commit details
  6. Copy the full SHA
    b91e9be View commit details
  7. Copy the full SHA
    4039d53 View commit details
  8. Copy the full SHA
    45be711 View commit details
  9. Copy the full SHA
    82be45a View commit details
  10. Copy the full SHA
    af6cdc2 View commit details
  11. Copy the full SHA
    f17e1ad View commit details
  12. Replace one bit of horrible spaghetti code with some spaghetti code t…

    …hat's less horrible but still horrible.
    tsimonq2 committed Jan 28, 2018
    Copy the full SHA
    1b6d3e1 View commit details
  13. Make the form a bit better.

    tsimonq2 committed Jan 28, 2018
    Copy the full SHA
    e3d2b40 View commit details
  14. Copy the full SHA
    c618d5c View commit details
  15. Copy the full SHA
    e388c6d View commit details
  16. Copy the full SHA
    751b8fe View commit details
Showing with 255 additions and 159 deletions.
  1. +5 −0 debian/changelog
  2. +1 −0 debian/compat
  3. +34 −0 debian/control
  4. +22 −0 debian/copyright
  5. +15 −0 debian/rules
  6. +1 −0 debian/source/format
  7. +1 −0 debian/source/options
  8. +14 −0 setup.py
  9. +4 −3 src/Makefile
  10. BIN src/{ → images}/Lubuntu.png
  11. +9 −3 src/{main.py → lubuntu-about}
  12. +149 −153 src/main.ui
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lubuntu-about (1.0.0) UNRELEASED; urgency=medium

* Initial release.

-- Simon Quigley <tsimonq2@ubuntu.com> Sat, 27 Jan 2018 22:52:50 -0600
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
34 changes: 34 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Source: lubuntu-about
Section: x11
Priority: optional
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
Uploaders: Simon Quigley <tsimonq2@ubuntu.com>,
Julien Lavergne <gilir@ubuntu.com>
Build-Depends: debhelper (>= 11),
dh-python,
pyqt5-dev-tools,
python3-all,
python3-distutils,
python3-distutils-extra,
python3-setuptools
Standards-Version: 4.1.3
Homepage: https://github.com/lubuntu-team/lubuntu-about
X-Python3-Version: >= 3.6
Vcs-Git: https://github.com/lubuntu-team/lubuntu-about
Vcs-Browser: https://github.com/lubuntu-team/lubuntu-about

Package: lubuntu-about
Architecture: all
Depends: lsb-release,
neofetch,
pyqt5-dev,
python3-cpuinfo,
python3-psutil,
${misc:Depends},
${python3:Depends}
Description: Program showing information about a Lubuntu system - libraries
A simple entry in Lubuntu's main menu with a command showing some basic
hardware and software information, like free memory, processor, OS version,
kernel, etc.
.
This package installs the main executable.
22 changes: 22 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lubuntu-about
Source: https://github.com/lubuntu-team/lubuntu-about

Files: *
Copyright: 2018 Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
15 changes: 15 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/make -f

export DH_VERBOSE = 1

export PYBUILD_NAME=lubuntu-about

%:
(cd src && make clean && make)
dh $@ --with python3 --buildsystem=pybuild

override_dh_install:
dh_missing --fail-missing

override_dh_python3:
dh_python3 --no-shebang-rewrite
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
1 change: 1 addition & 0 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-

from distutils.core import setup
import glob
import os
from DistUtilsExtra.command import *

setup(name='lubuntu-about',
version='1.0.0',
packages=['src'],
scripts=['src/lubuntu-about'],
cmdclass = { "build" : build_extra.build_extra }
)
7 changes: 4 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/make -f

all:
pyuic5 main.ui -o aboutlubuntu_auto.py
pyrcc5 main.qrc -o main_rc.py
pyuic5 main.ui -o aboutlubuntu_autowidgets.py
pyrcc5 main.qrc -o aboutlubuntu_autoresources.py
sed -i "s/main_rc/aboutlubuntu_autoresources/g" aboutlubuntu_autowidgets.py

clean:
rm -rvf *_auto.py main_rc.py __pycache__
rm -rvf aboutlubuntu_auto*.py __pycache__
File renamed without changes
12 changes: 9 additions & 3 deletions src/main.py → src/lubuntu-about
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
from lsb_release import get_distro_information
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow

from aboutlubuntu_auto import Ui_Dialog
from aboutlubuntu_autowidgets import Ui_Dialog

class LubuntuAbout(QMainWindow, Ui_Dialog):
def __init__(self):
@@ -79,8 +79,14 @@ def setvariables():

cpu = cpuinfo.get_cpu_info()["brand"]

# FIXME: Please, someone simplify this...
graphics = (run(["lspci", "-mm"], stdout=PIPE).stdout.decode('utf-8').split("\n")[2].replace("\"", "").split("VGA compatible controller ")[1].split("Controller")[0])+"Controller"
# FIXME: This code is horrible, it shouldn't depend on neofetch and should be reworked.
graphicslist = run(["neofetch", "--stdout"], stdout=PIPE).stdout.decode("utf-8").split("\n")

i = 0
while i < len(graphicslist):
if "GPU" in graphicslist[i]:
graphics = graphicslist[i].replace("GPU: ", "")
i += 1

freemem = memcalc(virtual_memory().free)
totalmem = memcalc(virtual_memory().total)
Loading