Metadata-Version: 2.4
Name: FirstPyPiRegistrationTestHkr
Version: 0.1.0
Summary: First PyPi Registration Test
Home-page: https://github.com/biyako/FirstPyPiRegistrationTestHkr
Download-URL: https://github.com/biyako/FirstPyPiRegistrationTestHkr
Author: biyako
Author-email: uraki928biyako@gmail.com
License: MIT
Keywords: test,pypi,registration
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest
Requires-Dist: pytest-cov
Requires-Dist: flake8
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# 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 (最後に)
