From f01d244865b2bac21aa21d18f3676beb34af79cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20RAMAGE?= Date: Tue, 23 Oct 2018 13:40:24 +0200 Subject: [PATCH 1/3] pypi long description generated from README.md --- setup.py | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/setup.py b/setup.py index c15cfb73..a23525f1 100644 --- a/setup.py +++ b/setup.py @@ -13,37 +13,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 open(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='sylvain.corlay@gmail.com', license='MIT', From dadedf3de6ce2201a939d5d8fafa9f7e607a4d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20RAMAGE?= Date: Tue, 23 Oct 2018 21:00:53 +0200 Subject: [PATCH 2/3] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a23525f1..161a05a2 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with open(os.path.join(here, 'qtawesome', '_version.py')) as f: exec(f.read(), {}, version_ns) -with open(path.join(here, 'README.md'), encoding='utf-8') as f: +with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() setup( From 26b3fd7fb5663eb2e498ec9a2fef659d743d2c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20RAMAGE?= Date: Wed, 24 Oct 2018 08:09:48 +0200 Subject: [PATCH 3/3] change open to io.open --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 161a05a2..37ca0a81 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- import os +import io try: from setuptools import setup from setuptools.command.install import install @@ -13,7 +14,7 @@ with open(os.path.join(here, 'qtawesome', '_version.py')) as f: exec(f.read(), {}, version_ns) -with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: +with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() setup(