mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-04 07:02:27 -04:00
Add __version__ to python package.
And bump version to 1.6
This commit is contained in:
parent
28c1071f09
commit
5872544115
@ -31,6 +31,9 @@ with the correct rc file.
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = "1.6"
|
||||||
|
|
||||||
|
|
||||||
def load_stylesheet(pyside=True):
|
def load_stylesheet(pyside=True):
|
||||||
"""
|
"""
|
||||||
Loads the stylesheet. Takes care of importing the rc module.
|
Loads the stylesheet. Takes care of importing the rc module.
|
||||||
|
12
setup.py
12
setup.py
@ -28,9 +28,19 @@ QDarkStyle is a darks stylesheet for python qt applications
|
|||||||
"""
|
"""
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
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='1.5',
|
version=read_version(),
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
package_data={'qdarkstyle': ["*.qss", "*.qrc", "rc/*.png"]},
|
package_data={'qdarkstyle': ["*.qss", "*.qrc", "rc/*.png"]},
|
||||||
url='https://github.com/ColinDuquesnoy/QDarkStyleSheet',
|
url='https://github.com/ColinDuquesnoy/QDarkStyleSheet',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user