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/*
Metadata
Release files for collectlicense 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collectlicense-0.2.0.tar.gz | 5.4 kB | Without provenance | Details for collectlicense-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collectlicense-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for collectlicense-0.2.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / collectlicense-0.2.0.tar.gz
| Download URL | collectlicense-0.2.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e512719418c0b6977a185690f3aa8d692da64f47fac9e2f2dfed69eb144d783
|
|
BLAKE2b-256 checksum How to use checksums |
9cc9d0c7696352e733b0ccb3182b81edfbe3493f199c1bb37dcbbeb025b7c44c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / collectlicense-0.2.0-py3-none-any.whl
| Download URL | collectlicense-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
708d0af4e0a0573ea17f34b259cc142081ccfaa1c09993f4a865676be1b8a58b
|
|
BLAKE2b-256 checksum How to use checksums |
755787a5b1c16cf62a8375c041267ee339588345fc9d18068c4941f6d920fffe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Security for collectlicense 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.