{"id":980,"date":"2025-03-11T21:33:51","date_gmt":"2025-03-11T21:33:51","guid":{"rendered":"https:\/\/www.little-beak.com\/?p=980"},"modified":"2025-03-12T09:06:47","modified_gmt":"2025-03-12T09:06:47","slug":"added-my-first-project-to-pypi","status":"publish","type":"post","link":"https:\/\/www.little-beak.com\/?p=980","title":{"rendered":"Added my first project to PYPI"},"content":{"rendered":"\n<p>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 &#8220;lyntin&#8221; seems like a bit of a hassle, so I just had to come up with a new name. So, decided on lyntinv, for &#8220;Lyntin V&#8221; or Lyntin version 5. Baby steps.<\/p>\n\n\n\n<p>In case any else every needs to do this, here are the steps I would recommend.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Search for the &#8216;name&#8217; 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.<\/li>\n\n\n\n<li>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 &#8220;user&#8221; will be &#8216;__token__&#8217;, and the long hash will act as your password.<\/li>\n\n\n\n<li>I used Hatch as an application packager, and did the following steps:\n<ul class=\"wp-block-list\">\n<li>create a pyproject.toml file, which stores your information about your package, i.e. name, version, description, readme, license, file locations, etc.<\/li>\n\n\n\n<li>from the command line: hatch clean<\/li>\n\n\n\n<li>hatch build<\/li>\n\n\n\n<li>hatch publish<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You will be prompted for a login, so use your token.<\/li>\n\n\n\n<li>Done!<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After porting Lyntin from python 2.7 to python 3+, I need to repackage it (used hatch), and uploaded it to pip. I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-tech-tips"],"_links":{"self":[{"href":"https:\/\/www.little-beak.com\/index.php?rest_route=\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.little-beak.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.little-beak.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.little-beak.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.little-beak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=980"}],"version-history":[{"count":0,"href":"https:\/\/www.little-beak.com\/index.php?rest_route=\/wp\/v2\/posts\/980\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.little-beak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.little-beak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.little-beak.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}