Utils to release Python project from GitHub to PyPi.
Project description
github2pypi
Utils to release Python repository on GitHub to PyPi
Usage
pip install github2pypi
2. Edit setup.py
.
import github2pypi
...
with open('README.md') as f:
# e.g., ![](examples/image.jpg) ->
# ![](https://github.com/wkentaro/imgviz/blob/main/examples/image.jpg)
long_description = github2pypi.replace_url(
slug='wkentaro/imgviz', content=f.read(), branch="main"
)
setup(
...
long_description=long_description,
long_description_content_type='text/markdown',
)
Examples
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
github2pypi-1.0.0a0.tar.gz
(2.7 kB
view hashes)