onema.dev

    Navigation

    • Blog
        • AWS Lambda and µServerless for Scala
        • AWS Security groups nuances
        • Deploying a Production Ready Hugo Site With 2 Lines of Code to AWS
        • Testing and Deploying Applications with GitHub, CodePipeline and Elastic Beanstalk
        • Creating a Scikit Learn Layer for AWS Lambda
        • HLS Manifest DSL
        • Json Extensions for Scala
        • KT-Robots Programming Challenge
        • KT-Robots Programming Reference
        • Scala Case Classes to CSV
        • How to make a JAR file Linux executable
        • Publish python packages to PyPI
        • REST resources
        • Route53 - Allow Access to a Single Hosted Zone
        • Building a CI/CD Pipeline for PHP Apps
        • Building DSLs for Fun
        • Developing SOLID Applications with PHP
        • Functionally Insane
        • KT Robots
        • Type Safety
    • About Juan

    More

    • Personal Website
    • GitHub

    Publish python packages to PyPI

    Nov 9, 2019

    This is a TL;DR, see the references for more info.

    Install requirements

    pip install twine
    

    Create package

    python setup.py sdist bdist_wheel
    

    Test your package

    tar tzf /dist/package-name-0.0.1.tar.gz
    

    Check for problems

    twine check dist/*
    

    Push to PyPI

    twine upload dist/*
    

    References

    • How to Publish an Open-Source Python Package to PyPI
    • How to upload your python packages to PyPi
    Built with Hugo and