Skip to content

Commit

Permalink
Fixes pypi's rst: pypi disables .. raw::.
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Nov 22, 2020
1 parent dee5d65 commit 5b7dc39
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import os
import textwrap

from setuptools import setup, Extension, find_packages
from setuptools.command.build_ext import build_ext
Expand Down Expand Up @@ -45,6 +46,19 @@ def has_ext_modules(self):
mode='r') as fp:
long_description = fp.read()

# Github doesn't respect "align: center", and pypi disables `.. raw`.
replacement = textwrap.dedent('''
.. image:: https://v6d.io/_static/vineyard_logo.png
:target: https://v6d.io
:align: center
:alt: libvineyard
:width: 397px
vineyard:: an in-memory immutable data manager
----------------------------------------------
''')
long_description = replacement + '\n'.join(long_description.split('\n')[8:])


setup(
name='vineyard',
Expand Down

0 comments on commit 5b7dc39

Please sign in to comment.