Skip to main content

First PyPi Registration Test

Project description

FirstPyPiRegistrationTestHkr

PyPi登録テスト用

前提条件:githubのアカウント登録は完了している状態

目的:新規作成したプロジェクトをPyPiに登録する

手順: ■リポジトリの作成 1.自分のgithubページを開く 2.右上に「+」のマークがあるので新規リポジトリを作成 3.登録画面にこのプロジェクト名をつける(FirstPyPiRegistrationTestHkr) 4.プロジェクト名の他にライセンスの項目があるので「MIT」を選択 5.その他、プライベートや説明やREADMEにチェックをいれる。 6.リポジトリの作成は完了。

■ローカルのプロジェクトをGitHub(サーバー上)にsrcをアップロードする 1.srcエディタの左側にgitのマークがあるのでクリック。 2.gitに関して何もしていなければ、初回のコミットをするアイコンがあると思う。 3.それをやると以下のようなメッセージがターミナルに表示されるはず… [main (root-commit) b9d5829] Initial commit 2 files changed, 10 insertions(+) create mode 100644 lib/init.py create mode 100644 lib/test_regist_pypi.py

4.gitに登録したプロジェクト(FirstPyPiRegistrationTestHkr)ページに「<>Code」があるのでクリック 5.https~のURLがあるのでコピー 6.ターミナル上で「git remote add origin https://github.com/biyako/FirstPyPiRegistrationTestHkr.git」 7.続けて「git push -u origin main」 このとき、以下のエラーが発生した To https://github.com/biyako/FirstPyPiRegistrationTestHkr.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/biyako/FirstPyPiRegistrationTestHkr.git' hint: Updates were rejected because the remote contains work that you do not hint: have locally. This is usually caused by another repository pushing to hint: the same ref. If you want to integrate the remote changes, use hint: 'git pull' before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. 8.「git remote -v」を実行。ローカルリポジトリにリモートを追加 9.「git push -u origin main」コードをGithubにプッシュ エラーが発生する場合、リモートリポジトリにコンクリフト(競合)があるかも リモートの変更を取得してから再度プッシュする。 「git pull origin main --allow-unrelated-histories」 10.とくにエラーが無ければ完了。 11.GitHub上でコードが確認できるはず。

■requirements.txtを作成して依存関係を記載 1.claude-4にやってもらった。requirements.txt参照

■setup.pyを作成 1.ネットの記事を参考に作成。

■requirements.txtやsetup.pyをgitにアップロードするには? 1.git add . 2.git commit -m "setup.py" とか 3.git commit -m update README.md とか 4.git push origin main (最後に)

■配布物をビルド 1.python setup.py sdist を入力 2.プロジェクトフォルダに以下が作成された 「dist」 「FirstPyPiRegistrationTestHkr-0.1.0.tar.gz」 「FirstPyPiRegistrationTestHkr.egg-info」

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

firstpypiregistrationtesthkr-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firstpypiregistrationtesthkr-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file firstpypiregistrationtesthkr-0.1.0.tar.gz.

File metadata

File hashes

Hashes for firstpypiregistrationtesthkr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 582a1902073465d5f529456b0f6fd744d1896699fbc726992cdeb26222b2e80e
MD5 e122d98473711fc5cdf5abf25d9799d2
BLAKE2b-256 d5498f83a73c95b08ddb40825a66c3beb400447d8c328eb5a24567edfe959615

See more details on using hashes here.

File details

Details for the file firstpypiregistrationtesthkr-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for firstpypiregistrationtesthkr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85bce3175ae77d889aaba0b51ce73e0abe98c63a4007632a70b66322d25c08eb
MD5 cc181c7b0fc345de61ca49b4bfb7388e
BLAKE2b-256 92ef450a715423d2f87b0857c0ed46b3efc95ff463537ef91527e02a3d1a7ab3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page