collect-license: Collect license files for packages installed with pip.
Project description
collect-license
pipインストールされたパッケージのライセンスファイルを収集するモジュールです。 pip-licensesを使用します。
動作確認OS
Windows 11 Pro
インストール方法
pip install collectlicense
実行方法
python -m collectlicense --out .licenses --clear
- --out:収集したライセンスファイルの保存先ディレクトリ
- --clear:--outで指定したディレクトリを削除してから収集する
ソースから実行する方法
git clone https://github.com/hamacom2004jp/collect-license.git
cd collect-license
python -m venv .venv
.venv\Scripts\activate
python.exe -m pip install --upgrade pip
pip install -r requirements.txt
python -m collectlicense
deactivate
pyplにアップするための準備
python setup.py sdist
python setup.py bdist_wheel
-
pyplのユーザー登録【本番】 https://pypi.org/account/register/
-
pyplのユーザー登録【テスト】 https://test.pypi.org/account/register/
-
それぞれ2要素認証とAPIトークンを登録
-
ホームディレクトリに
.pypircを作成
[distutils]
index-servers =
pypi
testpypi
[pypi]
repository: https://upload.pypi.org/legacy/
username: __token__
password: 本番環境のAPIトークン
[testpypi]
repository: https://test.pypi.org/legacy/
username: __token__
password: テスト環境のAPIトークン
- テスト環境にアップロード
.pyplrcを作っていない場合はコマンド実行時にusernameとpasswordを要求される 成功するとURLが返ってくる。
twine upload --repository testpypi dist/*
- pipコマンドのテスト
pip install -i https://test.pypi.org/simple/ collectlicense
- 本番環境にアップロード
twine upload --repository pypi dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
collectlicense-0.2.0.tar.gz
(5.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file collectlicense-0.2.0.tar.gz.
File metadata
- Download URL: collectlicense-0.2.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e512719418c0b6977a185690f3aa8d692da64f47fac9e2f2dfed69eb144d783
|
|
| MD5 |
52f6889f633a33c32582bedf3e867c6a
|
|
| BLAKE2b-256 |
9cc9d0c7696352e733b0ccb3182b81edfbe3493f199c1bb37dcbbeb025b7c44c
|
File details
Details for the file collectlicense-0.2.0-py3-none-any.whl.
File metadata
- Download URL: collectlicense-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
708d0af4e0a0573ea17f34b259cc142081ccfaa1c09993f4a865676be1b8a58b
|
|
| MD5 |
81b9aa6364952564893d6216635a0de6
|
|
| BLAKE2b-256 |
755787a5b1c16cf62a8375c041267ee339588345fc9d18068c4941f6d920fffe
|