mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05:00
Add support to stdeb
to create debian package out of the qdarkstyle python package
This commit is contained in:
parent
44252b23db
commit
5ac98faadc
6
.gitignore
vendored
6
.gitignore
vendored
@ -14,3 +14,9 @@ __pycache__
|
|||||||
*.sig
|
*.sig
|
||||||
pkg/
|
pkg/
|
||||||
src/
|
src/
|
||||||
|
|
||||||
|
*.tar.gz
|
||||||
|
deb_dist
|
||||||
|
*~
|
||||||
|
*.usr
|
||||||
|
|
||||||
|
18
setup.py
18
setup.py
@ -27,29 +27,19 @@
|
|||||||
QDarkStyle is a darks stylesheet for python qt applications
|
QDarkStyle is a darks stylesheet for python qt applications
|
||||||
"""
|
"""
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
from qdarkstyle import __version__
|
||||||
def read_version():
|
|
||||||
"""
|
|
||||||
Reads the version without self importing
|
|
||||||
"""
|
|
||||||
with open("qdarkstyle/__init__.py") as f:
|
|
||||||
lines = f.read().splitlines()
|
|
||||||
for l in lines:
|
|
||||||
if "__version__" in l:
|
|
||||||
return l.split("=")[1].strip().replace('"', "")
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='QDarkStyle',
|
name='QDarkStyle',
|
||||||
version=read_version(),
|
version=__version__,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
url='https://github.com/ColinDuquesnoy/QDarkStyleSheet',
|
url='https://github.com/ColinDuquesnoy/QDarkStyleSheet',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
author='Colin Duquesnoy',
|
author='Colin Duquesnoy',
|
||||||
author_email='colin.duquesnoy@gmail.com',
|
author_email='colin.duquesnoy@gmail.com',
|
||||||
description='A dark stylesheet for pyside/pyqt applications',
|
description='A dark stylesheet for PyQt/PySide applications',
|
||||||
long_description="""
|
long_description="""
|
||||||
This package provides a dark style sheet for PySide/PyQt4/PyQt5
|
This package provides a dark style sheet for PySide/PyQt4/PyQt5 applications.
|
||||||
applications.
|
|
||||||
|
|
||||||
All you have to do is the following::
|
All you have to do is the following::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user