Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 958 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 958 Bytes

github2pypi

Utils to release Python repository on GitHub to PyPi

Usage

1. Add github2pypi as submodule.

See imgviz as an example.

git clone https://github.com/wkentaro/imgviz
cd imgviz

git submodule add https://github.com/wkentaro/github2pypi.git

2. Edit setup.py.

import github2pypi

...
with open('README.md') as f:
    # e.g., ![](examples/image.jpg) ->
    #       ![](https://github.com/wkentaro/imgviz/blob/master/examples/image.jpg)
    long_description = github2pypi.replace_url(
        slug='wkentaro/imgviz', content=f.read()
    )

setup(
    ...
    long_description=long_description,
    long_description_content_type='text/markdown',
)