LoginSignup
0
0

More than 1 year has passed since last update.

pypi に自作ライブラリを登録する手順(2021版)

Posted at

pypi に自作ライブラリを登録する手順(2021版)

pypiとは?

Python Package Indexの略とのこと。
pip install ライブラリ名で簡単にライブラリがインストールされます。

ざっくりと説明。

①pypiでユーザー登録。

②Gitにリモートリポジトリにpush。

③パッケージをビルドする。

④パッケージをアップロードする。

これだけです。

pip install twine

python setup.py sdist
python setup.py bdist_wheel

git add .
git commint -m ''
git push origin main

twine upload -u pipyのユーザーID -p pipyのユーザーPW --repository-url https://upload.pypi.org/legacy/ dist/*

ソース元

Pythonで自分だけのクソライブラリを作る方法

Python: Twine を使って PyPI にパッケージをアップロードする - CUBE SUGAR CONTAINER

Pythonで作成したライブラリを、PyPIに公開/アップロードする - Qiita

【Python】PyPIエラー対応 Invalid or non-existent authentication informationの対処法 - Qiita

Scraping-Perlverity-Python

gitにpushする際に失敗してしまいます。|teratail

gitignoreの書き方チートシート2021年版

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0