Skip to main content

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


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.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file github2pypi-1.0.0.tar.gz.

File metadata

  • Download URL: github2pypi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for github2pypi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d2510f85d558784936aff88c5fef109b9927ca5073b596bcd7eb71035d1f2ed
MD5 3c5d4b44cfccfb15efd3034ec380830d
BLAKE2b-256 4ad05f2b9b16cb34405abcc895d49fc621df5a126f19d4e2b07ab59a0afa6cd6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page