2013-03-10 17:59:50 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
2019-05-04 07:28:37 -05:00
|
|
|
"""
|
|
|
|
|
A dark style sheet for QtWidgets application.
|
|
|
|
|
"""
|
2018-02-07 16:50:08 -02:00
|
|
|
|
2019-05-04 07:28:37 -05:00
|
|
|
# Standard library imports
|
2020-03-18 21:34:14 -03:00
|
|
|
import glob
|
|
|
|
|
import os
|
2020-03-04 11:40:25 -03:00
|
|
|
from setuptools import find_packages, setup
|
2019-05-04 07:28:37 -05:00
|
|
|
|
|
|
|
|
# Local imports
|
2018-02-07 16:50:08 -02:00
|
|
|
from qdarkstyle import __doc__ as long_desc
|
2020-03-04 11:40:25 -03:00
|
|
|
from qdarkstyle import __version__
|
2014-02-20 13:31:58 +01:00
|
|
|
|
2021-03-29 00:12:34 -03:00
|
|
|
install_requires = ['qtpy>=1.9']
|
2019-05-03 15:03:46 -03:00
|
|
|
|
|
|
|
|
extras_require = {
|
2019-05-06 14:20:04 -03:00
|
|
|
'develop': ['qtsass', 'watchdog'],
|
2019-06-22 10:11:06 -03:00
|
|
|
'docs': ['sphinx', 'sphinx_rtd_theme'],
|
2019-06-04 11:12:20 -03:00
|
|
|
'example': ['pyqt5', 'pyside2']
|
2019-05-03 15:03:46 -03:00
|
|
|
}
|
|
|
|
|
|
2020-03-18 21:34:14 -03:00
|
|
|
|
|
|
|
|
def remove_all(dir_path, patterns='*.pyc'):
|
2020-03-19 11:05:55 -03:00
|
|
|
"""Remove all files from `dir_path` matching the `patterns`.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
dir_path (str): Directory path.
|
|
|
|
|
patterns (str): Pattern using regex. Defaults to '*.pyc'.
|
|
|
|
|
"""
|
|
|
|
|
|
2020-03-18 21:34:14 -03:00
|
|
|
for pattern in patterns:
|
|
|
|
|
for filename in glob.iglob(dir_path + '/**/' + pattern, recursive=True):
|
|
|
|
|
os.remove(filename)
|
|
|
|
|
|
2020-03-19 11:05:55 -03:00
|
|
|
|
2013-03-10 17:59:50 +01:00
|
|
|
setup(
|
|
|
|
|
name='QDarkStyle',
|
2015-04-09 16:01:51 +02:00
|
|
|
version=__version__,
|
2013-03-10 17:59:50 +01:00
|
|
|
packages=find_packages(),
|
|
|
|
|
url='https://github.com/ColinDuquesnoy/QDarkStyleSheet',
|
2014-01-02 15:57:14 +01:00
|
|
|
license='MIT',
|
2013-03-10 17:59:50 +01:00
|
|
|
author='Colin Duquesnoy',
|
|
|
|
|
author_email='colin.duquesnoy@gmail.com',
|
2019-06-22 10:11:06 -03:00
|
|
|
description='The most complete dark stylesheet for Python and Qt applications',
|
2018-02-07 16:50:08 -02:00
|
|
|
long_description=long_desc,
|
2020-03-23 09:14:56 -03:00
|
|
|
long_description_content_type='text/x-rst',
|
2014-01-02 16:41:43 +01:00
|
|
|
classifiers=[
|
2018-02-07 16:50:08 -02:00
|
|
|
'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',
|
2019-06-04 11:12:20 -03:00
|
|
|
'Programming Language :: Python :: 3.4',
|
2018-02-07 16:50:08 -02:00
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
|
'Programming Language :: Python :: 3.6',
|
2019-05-24 10:45:01 -03:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2020-03-04 11:40:25 -03:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2018-02-07 16:50:08 -02:00
|
|
|
'Topic :: Software Development :: Libraries :: Application Frameworks'
|
2018-10-25 16:43:17 -03:00
|
|
|
],
|
|
|
|
|
zip_safe=False, # don't use eggs
|
2021-03-28 22:08:11 -03:00
|
|
|
entry_points={"console_scripts": ["qdarkstyle=qdarkstyle.__main__:main",
|
2021-03-28 23:14:29 -03:00
|
|
|
"qdarkstyle.example=qdarkstyle.example.__main__:main"]},
|
2019-05-03 15:03:46 -03:00
|
|
|
extras_require=extras_require,
|
2019-05-24 10:45:01 -03:00
|
|
|
install_requires=install_requires,
|
|
|
|
|
project_urls={
|
|
|
|
|
"Issues": "https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues",
|
|
|
|
|
"Docs": "https://qdarkstylesheet.readthedocs.io/en/stable",
|
|
|
|
|
}
|
2018-10-25 16:43:17 -03:00
|
|
|
)
|