Skip to content

Instantly share code, notes, and snippets.

View noahyonack's full-sized avatar

Noah Yonack noahyonack

  • San Francisco, CA
View GitHub Profile
@noahyonack
noahyonack / .pypirc
Created July 25, 2019 19:57
A simple .pypirc config file for automating the process of uploading your packages to PyPI
[distutils]
index-servers =
pypi
[pypi]
username: <YOUR PYPI USERNAME>
password: <YOUR PYPI PASSWORD>
#!/usr/bin/env bash
# just to be safe: wipe the dist folder of previous builds
rm -r dist/*
# ensure you hav the latest versions of twine, setuptools, and wheel
python3 -m pip install --user --upgrade twine setuptools wheel
# build the package
python3 setup.py sdist bdist_wheel