collectlicense


Namecollectlicense JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/hamacom2004jp/collect-license
Summarycollect-license: Collect license files for packages installed with pip.
upload_time2023-09-24 05:25:13
maintainerhamacom2004jp
docs_urlNone
authorhamacom2004jp
requires_python
licenseMIT
keywords license.txt license collect
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # collect-license

pipインストールされたパッケージのライセンスファイルを収集するモジュールです。
pip-licensesを使用します。

## 動作確認OS

- `Windows 11 Pro`

## インストール方法

``` cmd or bash
pip install collectlicense
```

## 実行方法

``` cmd or bash
python -m collectlicense --out .licenses --clear
```
- --out:収集したライセンスファイルの保存先ディレクトリ
- --clear:--outで指定したディレクトリを削除してから収集する


## ソースから実行する方法

``` cmd or bash
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にアップするための準備

``` cmd or bash
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```を作成
``` .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が返ってくる。
``` cmd or bash
twine upload --repository testpypi dist/*
```
- pipコマンドのテスト
``` cmd or bash
pip install -i https://test.pypi.org/simple/ collectlicense
```

- 本番環境にアップロード
``` cmd or bash
twine upload --repository pypi dist/*
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hamacom2004jp/collect-license",
    "name": "collectlicense",
    "maintainer": "hamacom2004jp",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "hamacom2004jp@gmail.com",
    "keywords": "LICENSE.txt LICENSE Collect",
    "author": "hamacom2004jp",
    "author_email": "hamacom2004jp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e8/20/2b28924ee6e1cca1ef4842c195f40d2c23ff0c53b375f74cde057c88306e/collectlicense-0.1.0.tar.gz",
    "platform": null,
    "description": "# collect-license\r\n\r\npip\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u53ce\u96c6\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002\r\npip-licenses\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\r\n\r\n## \u52d5\u4f5c\u78ba\u8a8dOS\r\n\r\n- `Windows 11 Pro`\r\n\r\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\r\n\r\n``` cmd or bash\r\npip install collectlicense\r\n```\r\n\r\n## \u5b9f\u884c\u65b9\u6cd5\r\n\r\n``` cmd or bash\r\npython -m collectlicense --out .licenses --clear\r\n```\r\n- --out\uff1a\u53ce\u96c6\u3057\u305f\u30e9\u30a4\u30bb\u30f3\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\n- --clear\uff1a--out\u3067\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3057\u3066\u304b\u3089\u53ce\u96c6\u3059\u308b\r\n\r\n\r\n## \u30bd\u30fc\u30b9\u304b\u3089\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\r\n\r\n``` cmd or bash\r\ngit clone https://github.com/hamacom2004jp/collect-license.git\r\ncd collect-license\r\npython -m venv .venv\r\n.venv\\Scripts\\activate\r\npython.exe -m pip install --upgrade pip\r\npip install -r requirements.txt\r\npython -m collectlicense\r\ndeactivate\r\n```\r\n\r\n## pypl\u306b\u30a2\u30c3\u30d7\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\r\n\r\n``` cmd or bash\r\npython setup.py sdist\r\npython setup.py bdist_wheel\r\n```\r\n\r\n- pypl\u306e\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3010\u672c\u756a\u3011\r\n  https://pypi.org/account/register/\r\n\r\n- pypl\u306e\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3010\u30c6\u30b9\u30c8\u3011\r\n  https://test.pypi.org/account/register/\r\n\r\n- \u305d\u308c\u305e\u308c2\u8981\u7d20\u8a8d\u8a3c\u3068API\u30c8\u30fc\u30af\u30f3\u3092\u767b\u9332\r\n\r\n- \u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b```.pypirc```\u3092\u4f5c\u6210\r\n``` .pypirc\r\n[distutils]\r\nindex-servers =\r\n  pypi\r\n  testpypi\r\n\r\n[pypi]\r\nrepository: https://upload.pypi.org/legacy/\r\nusername: __token__\r\npassword: \u672c\u756a\u74b0\u5883\u306eAPI\u30c8\u30fc\u30af\u30f3\r\n\r\n[testpypi]\r\nrepository: https://test.pypi.org/legacy/\r\nusername: __token__\r\npassword: \u30c6\u30b9\u30c8\u74b0\u5883\u306eAPI\u30c8\u30fc\u30af\u30f3\r\n```\r\n\r\n- \u30c6\u30b9\u30c8\u74b0\u5883\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\r\n  ```.pyplrc```\u3092\u4f5c\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306busername\u3068password\u3092\u8981\u6c42\u3055\u308c\u308b\r\n  \u6210\u529f\u3059\u308b\u3068URL\u304c\u8fd4\u3063\u3066\u304f\u308b\u3002\r\n``` cmd or bash\r\ntwine upload --repository testpypi dist/*\r\n```\r\n- pip\u30b3\u30de\u30f3\u30c9\u306e\u30c6\u30b9\u30c8\r\n``` cmd or bash\r\npip install -i https://test.pypi.org/simple/ collectlicense\r\n```\r\n\r\n- \u672c\u756a\u74b0\u5883\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\r\n``` cmd or bash\r\ntwine upload --repository pypi dist/*\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "collect-license: Collect license files for packages installed with pip.",
    "version": "0.1.0",
    "project_urls": {
        "Download": "https://github.com/hamacom2004jp/collect-license",
        "Homepage": "https://github.com/hamacom2004jp/collect-license"
    },
    "split_keywords": [
        "license.txt",
        "license",
        "collect"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f49c0c29b8d0ca9e36b113a1bde0782f43fc80f7554069bf5e9e75bd4f833c30",
                "md5": "3fe3767248beea09d14a15c60633c885",
                "sha256": "f1abca5b28d2ea20f6c6165b78209b899e7edd81e6d3467222035e79a62dc46f"
            },
            "downloads": -1,
            "filename": "collectlicense-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3fe3767248beea09d14a15c60633c885",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6273,
            "upload_time": "2023-09-24T05:25:12",
            "upload_time_iso_8601": "2023-09-24T05:25:12.058331Z",
            "url": "https://files.pythonhosted.org/packages/f4/9c/0c29b8d0ca9e36b113a1bde0782f43fc80f7554069bf5e9e75bd4f833c30/collectlicense-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8202b28924ee6e1cca1ef4842c195f40d2c23ff0c53b375f74cde057c88306e",
                "md5": "fea492bb437695b67f5529de450afe40",
                "sha256": "a9c75a2f9dfb913bbbcc22baf5760d2164a9c86d56e8e62533f9ef6260c77473"
            },
            "downloads": -1,
            "filename": "collectlicense-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fea492bb437695b67f5529de450afe40",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5261,
            "upload_time": "2023-09-24T05:25:13",
            "upload_time_iso_8601": "2023-09-24T05:25:13.725000Z",
            "url": "https://files.pythonhosted.org/packages/e8/20/2b28924ee6e1cca1ef4842c195f40d2c23ff0c53b375f74cde057c88306e/collectlicense-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-24 05:25:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hamacom2004jp",
    "github_project": "collect-license",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "collectlicense"
}
        
Elapsed time: 0.13678s