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
ソースから実行する方法
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にアップするための準備
pip install wheel twine
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
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.0.4.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for collectlicense-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11af12e9f03f71a0095209ebaf89cbc451bd26a257e156f521e2b59a7c5ea28 |
|
MD5 | 7dc01286682bcfa50e799e21c9a38be1 |
|
BLAKE2b-256 | 6cc5476e2cc79180a56efc7450ad9727294b75b8c634ec6629b381329ddbb844 |