Add package data, remove unneeded function from setup

This commit is contained in:
Daniel Pizetta
2021-03-30 15:28:59 -03:00
parent 5e5c4b8dd2
commit e4e07fdc2f
3 changed files with 32 additions and 38 deletions
+1 -5
View File
@@ -5,9 +5,5 @@
include MANIFEST.in
include setup.py
include AUTHORS.rst
include CHANGES.rst
include CONTRIBUTING.rst
include LICENSE.rst
include README.rst
include *.rst
include qdarkstyle/*
+14 -3
View File
@@ -1,7 +1,18 @@
Known Issues
============
Combo Box
---------
Dialog style
------------
Describe the problem, add some images and code.
Dialogs, e.g. file dialogs, could appear not styled since it inherits from OS
theme/style as described in the issue
`#172 <https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/172>`__.
There are some options that can be exploited there.
System icons
------------
Similar to the Dialogs, default icons are inherited from OS but we
are planning to create our own set of icons to provide a more uniform UI. See
`#192 <https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/192>`__.
+17 -30
View File
@@ -5,8 +5,6 @@ A dark style sheet for QtWidgets application.
"""
# Standard library imports
import glob
import os
from setuptools import find_packages, setup
# Local imports
@@ -21,19 +19,21 @@ extras_require = {
'example': ['pyqt5', 'pyside2']
}
def remove_all(dir_path, patterns='*.pyc'):
"""Remove all files from `dir_path` matching the `patterns`.
Args:
dir_path (str): Directory path.
patterns (str): Pattern using regex. Defaults to '*.pyc'.
"""
for pattern in patterns:
for filename in glob.iglob(dir_path + '/**/' + pattern, recursive=True):
os.remove(filename)
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries :: Application Frameworks'
]
setup(
name='QDarkStyle',
@@ -46,21 +46,8 @@ setup(
description='The most complete dark/light style sheet for C++/Python and Qt applications',
long_description=long_desc,
long_description_content_type='text/x-rst',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries :: Application Frameworks'
],
include_package_data=True, # add data file from MANIFEST.in #193
classifiers=classifiers,
zip_safe=False, # don't use eggs
entry_points={"console_scripts": ["qdarkstyle=qdarkstyle.__main__:main",
"qdarkstyle.example=qdarkstyle.example.__main__:main",