| 1 |
|
| 2 |
import os |
| 3 |
import io |
| 4 |
|
| 5 |
from setuptools import setup |
| 6 |
|
| 7 |
|
| 8 |
import setupbase |
| 9 |
|
| 10 |
HERE = os.path.abspath(os.path.dirname(__file__)) |
| 11 |
|
| 12 |
VERSION_NS = {} |
| 13 |
with open(os.path.join(HERE, "qtawesome", "_version.py")) as f: |
| 14 |
exec(f.read(), {}, VERSION_NS) |
| 15 |
|
| 16 |
with io.open(os.path.join(HERE, "README.md"), encoding="utf-8") as f: |
| 17 |
LONG_DESCRIPTION = f.read() |
| 18 |
|
| 19 |
|
| 20 |
setup( |
| 21 |
name="QtAwesome", |
| 22 |
version=VERSION_NS["__version__"], |
| 23 |
description="FontAwesome icons in PyQt and PySide applications", |
| 24 |
long_description=LONG_DESCRIPTION, |
| 25 |
long_description_content_type="text/markdown", |
| 26 |
author="Sylvain Corlay and the Spyder Development Team", |
| 27 |
author_email="[email protected]", |
| 28 |
maintainer="Spyder Development Team and QtAwesome Contributors", |
| 29 |
maintainer_email="[email protected]", |
| 30 |
license="MIT", |
| 31 |
url="https://github.com/spyder-ide/qtawesome", |
| 32 |
keywords=["PyQt", "PySide", "Icons", "Font Awesome", "Fonts"], |
| 33 |
packages=["qtawesome"], |
| 34 |
install_requires=["qtpy"], |
| 35 |
include_package_data=True, |
| 36 |
python_requires=">=3.7", |
| 37 |
platforms=["OS-independent"], |
| 38 |
classifiers=[ |
| 39 |
"Development Status :: 5 - Production/Stable", |
| 40 |
"Intended Audience :: Developers", |
| 41 |
"Topic :: Software Development :: User Interfaces", |
| 42 |
"License :: OSI Approved :: MIT License", |
| 43 |
"Programming Language :: Python :: 3", |
| 44 |
"Programming Language :: Python :: 3.7", |
| 45 |
"Programming Language :: Python :: 3.8", |
| 46 |
"Programming Language :: Python :: 3.9", |
| 47 |
"Programming Language :: Python :: 3.10", |
| 48 |
], |
| 49 |
cmdclass={ |
| 50 |
"update_fa6": setupbase.UpdateFA6Command, |
| 51 |
"update_msc": setupbase.UpdateCodiconCommand, |
| 52 |
}, |
| 53 |
entry_points={ |
| 54 |
"console_scripts": [ |
| 55 |
"qta-browser=qtawesome.icon_browser:run", |
| 56 |
"qta-install-fonts-all-users=qtawesome:install_bundled_fonts_system_wide", |
| 57 |
], |
| 58 |
}, |
| 59 |
) |