Skip to content

Release tools from GitHub to PyPi.

Notifications You must be signed in to change notification settings

wkentaro/github2pypi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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',
)

About

Release tools from GitHub to PyPi.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages