Skip to main content

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

Release files for github2pypi 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for github2pypi 1.0.0
File Size Uploaded
github2pypi-1.0.0.tar.gz 2.7 kB Details

Release files / github2pypi-1.0.0.tar.gz

Download URL github2pypi-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5d2510f85d558784936aff88c5fef109b9927ca5073b596bcd7eb71035d1f2ed
BLAKE2b-256 checksum
How to use checksums
4ad05f2b9b16cb34405abcc895d49fc621df5a126f19d4e2b07ab59a0afa6cd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page