diff options
author | 2025-07-15 22:43:34 +0100 | |
---|---|---|
committer | 2025-07-15 22:48:09 +0100 | |
commit | 20ab25e8b0e76aeea964cd94adf527508379c372 (patch) | |
tree | 5c24d79abcbcfcc73b445f1b945786ba642d6086 | |
parent | Update README.md to reflect uv usage (diff) |
Remove pip-licenses
-rw-r--r-- | .github/workflows/lint-test.yml | 30 | ||||
-rw-r--r-- | pyproject.toml | 1 | ||||
-rw-r--r-- | uv.lock | 36 |
3 files changed, 1 insertions, 66 deletions
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 966c2c419..bb89e42d5 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -7,18 +7,6 @@ jobs: lint-test: runs-on: ubuntu-latest env: - # List of licenses that are compatible with the MIT License and - # can be used in our project - ALLOWED_LICENSE: Apache Software License; - BSD License; - GNU Library or Lesser General Public License (LGPL); - ISC License (ISCL); - MIT License; - Mozilla Public License 2.0 (MPL 2.0); - Public Domain; - Python Software Foundation License; - The Unlicense (Unlicense) - # Dummy values for required bot environment variables BOT_API_KEY: foo BOT_SENTRY_DSN: blah @@ -37,26 +25,10 @@ jobs: enable-cache: true cache-dependency-glob: "uv.lock" activate-environment: true - + - name: Install dependencies run: uv sync --frozen - # Check all of our non-dev dependencies are compatible with the MIT license. - # If you added a new dependencies that is being rejected, - # please make sure it is compatible with the license for this project, - # and add it to the ALLOWED_LICENSE variable - - # NOTE: at time of writing pip-licenses is not PEP-639 compliant - # so is not detecting the license for packages now following that style. - # As a temp fix, add packages to the ignore list after manually checking - # that the license in use is compatible with ours. - # Ref: https://github.com/raimon49/pip-licenses/issues/225 - - name: Check Dependencies License - run: | - pip-licenses --allow-only="$ALLOWED_LICENSE" \ - --ignore-packages attrs \ - --package $(uv export --no-hashes --format requirements.txt --no-header --no-annotate | sed "s/==.*//g" | tr "\n" " ") - - name: Run pre-commit hooks run: SKIP=ruff pre-commit run --all-files diff --git a/pyproject.toml b/pyproject.toml index d378875f8..ed8f56500 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,6 @@ prerelease = "allow" dev = [ "coverage==7.6.12", "httpx==0.28.1", - "pip-licenses==5.0.0", "pre-commit==4.1.0", "pytest==8.3.4", "pytest-cov==6.0.0", @@ -172,7 +172,6 @@ dependencies = [ dev = [ { name = "coverage" }, { name = "httpx" }, - { name = "pip-licenses" }, { name = "pre-commit" }, { name = "pytest" }, { name = "pytest-cov" }, @@ -210,7 +209,6 @@ requires-dist = [ dev = [ { name = "coverage", specifier = "==7.6.12" }, { name = "httpx", specifier = "==0.28.1" }, - { name = "pip-licenses", specifier = "==5.0.0" }, { name = "pre-commit", specifier = "==4.1.0" }, { name = "pytest", specifier = "==8.3.4" }, { name = "pytest-cov", specifier = "==6.0.0" }, @@ -635,19 +633,6 @@ wheels = [ ] [[package]] -name = "pip-licenses" -version = "5.0.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "prettytable" }, - { name = "tomli" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/a0/49/d36a3ddb73d22970a35afa3e9fd53c8318150f8122e4257ca9875f1d4e38/pip_licenses-5.0.0.tar.gz", hash = "sha256:0633a1f9aab58e5a6216931b0e1d5cdded8bcc2709ff563674eb0e2ff9e77e8e", size = 41542, upload-time = "2024-07-23T10:48:29.785Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/27/0a/bfaf1479d09d19f503a669d9c8e433ac59ae687fb8da1d8207eb85c5a9f4/pip_licenses-5.0.0-py3-none-any.whl", hash = "sha256:82c83666753efb86d1af1c405c8ab273413eb10d6689c218df2f09acf40e477d", size = 20497, upload-time = "2024-07-23T10:48:27.59Z" }, -] - -[[package]] name = "platformdirs" version = "4.3.8" source = { registry = "https://pypi.org/simple" } @@ -682,18 +667,6 @@ wheels = [ ] [[package]] -name = "prettytable" -version = "3.16.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "wcwidth" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/99/b1/85e18ac92afd08c533603e3393977b6bc1443043115a47bb094f3b98f94f/prettytable-3.16.0.tar.gz", hash = "sha256:3c64b31719d961bf69c9a7e03d0c1e477320906a98da63952bc6698d6164ff57", size = 66276, upload-time = "2025-03-24T19:39:04.008Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/02/c7/5613524e606ea1688b3bdbf48aa64bafb6d0a4ac3750274c43b6158a390f/prettytable-3.16.0-py3-none-any.whl", hash = "sha256:b5eccfabb82222f5aa46b798ff02a8452cf530a352c31bddfa29be41242863aa", size = 33863, upload-time = "2025-03-24T19:39:02.359Z" }, -] - -[[package]] name = "propcache" version = "0.3.2" source = { registry = "https://pypi.org/simple" } @@ -1225,15 +1198,6 @@ wheels = [ ] [[package]] -name = "wcwidth" -version = "0.2.13" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/6c/63/53559446a878410fc5a5974feb13d31d78d752eb18aeba59c7fef1af7598/wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5", size = 101301, upload-time = "2024-01-06T02:10:57.829Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859", size = 34166, upload-time = "2024-01-06T02:10:55.763Z" }, -] - -[[package]] name = "yarl" version = "1.20.1" source = { registry = "https://pypi.org/simple" } |