-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from doudz/patch-3
PR: Generate PyPI long description from README.md
- Loading branch information
Showing
1 changed file
with
4 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
import os | ||
import io | ||
try: | ||
from setuptools import setup | ||
from setuptools.command.install import install | ||
|
@@ -13,37 +14,15 @@ | |
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('fa5s.flag') | ||
fa_button = QtGui.QPushButton(fa_icon, 'Font Awesome!') | ||
asl_icon = qta.icon('ei.asl') | ||
elusive_button = QtGui.QPushButton(asl_icon, 'Elusive Icons!') | ||
""" | ||
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
setup( | ||
name='QtAwesome', | ||
version=version_ns['__version__'], | ||
description='FontAwesome icons in PyQt and PySide applications', | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type='text/markdown', | ||
author='Sylvain Corlay', | ||
author_email='[email protected]', | ||
license='MIT', | ||
|