Skip to content

hamacom2004jp/collect-license

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
[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/*

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages