FCCI Tech: Publishing Open Source

https://github.com/rantahar/google_takeout_email.git

The Plan

  • Quick look at the code: Why should it be published separately?
  • Steps needed:
    • License
    • Readme / Documentation
    • dependencies
    • citations.cff
    • tests
  • Publish on:
    • GitHub
    • PyPI

Creating the repository

Building and testing

Pushing to PyPI

  • Flit instructions are a bit behind. The steps needed:
    • Create an account on PyPI (I already had one)
    • In your settings, add an API token
    • It tells you what to add into .pypirc
  • Push to test PyPI: flit publish --repository testpypi
  • Push to PyPI: flit publish