forked from spyder-ide/qtawesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
77 lines (63 loc) · 2.46 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# -*- coding: utf-8 -*-
import os
try:
from setuptools import setup
from setuptools.command.install import install
except ImportError:
from distutils.core import setup
from distutils.core.command.install import install
here = os.path.abspath(os.path.dirname(__file__))
version_ns = {}
with open(os.path.join(here, 'qtawesome', '_version.py')) as f:
exec(f.read(), {}, version_ns)
LONG_DESCRIPTION = """
.. image:: https://img.shields.io/pypi/v/QtAwesome.svg
:target: https://pypi.python.org/pypi/QtAwesome/
:alt: Latest PyPI version
.. image:: https://img.shields.io/pypi/dm/QtAwesome.svg
:target: https://pypi.python.org/pypi/QtAwesome/
:alt: Number of PyPI downloads
QtAwesome - Iconic Fonts in PyQt and PySide applications
========================================================
QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons in PyQt and PySide applications.
It is a port to Python - PyQt / PySide of the QtAwesome C++ library by Rick Blommers.
.. code-block:: python
# Get icons by name.
fa_icon = qta.icon('fa.flag')
fa_button = QtGui.QPushButton(fa_icon, 'Font Awesome!')
asl_icon = qta.icon('ei.asl')
elusive_button = QtGui.QPushButton(asl_icon, 'Elusive Icons!')
"""
setup(
name='QtAwesome',
version=version_ns['__version__'],
description='FontAwesome icons in PyQt and PySide applications',
long_description=LONG_DESCRIPTION,
author='Sylvain Corlay',
author_email='[email protected]',
license='MIT',
url='https://github.com/spyder-ide/qtawesome',
keywords=['PyQt', 'PySide', 'Icons', 'Font Awesome', 'Fonts'],
packages=['qtawesome'],
install_requires=['qtpy', 'six'],
include_package_data=True,
platforms=['OS-independent'],
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: User Interfaces',
# License
'License :: OSI Approved :: MIT License',
# Supported Python versions
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',]
)