mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05: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
|
||||
|
||||
|
||||
__version__ = "1.6"
|
||||
|
||||
|
||||
def load_stylesheet(pyside=True):
|
||||
"""
|
||||
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
|
||||
|
||||
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(
|
||||
name='QDarkStyle',
|
||||
version='1.5',
|
||||
version=read_version(),
|
||||
packages=find_packages(),
|
||||
package_data={'qdarkstyle': ["*.qss", "*.qrc", "rc/*.png"]},
|
||||
url='https://github.com/ColinDuquesnoy/QDarkStyleSheet',
|
||||
|
Loading…
Reference in New Issue
Block a user