Added my first project to PYPI

After porting Lyntin from python 2.7 to python 3+, I need to repackage it (used hatch), and uploaded it to pip. I was disappointed to find that I could not use the original name, even though the project has not been updated in over 15 years. Getting ownership of the project name “lyntin” seems like a bit of a hassle, so I just had to come up with a new name. So, decided on lyntinv, for “Lyntin V” or Lyntin version 5. Baby steps.

In case any else every needs to do this, here are the steps I would recommend.

  1. Search for the ‘name’ you would like to use first. This will ensure you can upload with that name, and give you time to come up with a new name, if necessary.
  2. Go to pypi.org and create a token for your account. You will get a long string/token to use as a password, and later you can save it to a file on your system to save you the hassle of logging every time you update. the “user” will be ‘__token__’, and the long hash will act as your password.
  3. I used Hatch as an application packager, and did the following steps:
    • create a pyproject.toml file, which stores your information about your package, i.e. name, version, description, readme, license, file locations, etc.
    • from the command line: hatch clean
    • hatch build
    • hatch publish
  4. You will be prompted for a login, so use your token.
  5. Done!