|
| 1 | +# SPDX-FileCopyrightText: (c) 2018-2024 Siemens |
| 2 | +# SPDX-License-Identifier: MIT |
| 3 | + |
| 4 | +[tool.poetry] |
| 5 | +name = "capycli" |
| 6 | +version = "2.6.0.dev1" |
| 7 | +description = "CaPyCli - Clearing Automation Python Command Line Interface for SW360" |
| 8 | +authors = [ "Thomas Graf <[email protected]>"] |
| 9 | +license = "MIT" |
| 10 | +readme="Readme.md" |
| 11 | +repository = "https://github.com/sw360/capycli" |
| 12 | +homepage = "https://github.com/sw360/capycli" |
| 13 | +keywords = ["sw360", "cli, automation", "license", "compliance", "clearing"] |
| 14 | +include = [ |
| 15 | + "LICENSE.md", |
| 16 | + { path = "capycli/data/granularity_list.csv", format = "wheel" }, |
| 17 | + { path = "capycli/data/__init__.py", format = "wheel" }, |
| 18 | + { path = "capycli/data/granularity_list.csv", format = "sdist" }, |
| 19 | + { path = "capycli/data/__init__.py", format = "sdist" }, |
| 20 | +] |
| 21 | +classifiers = [ |
| 22 | + "Development Status :: 5 - Production/Stable", |
| 23 | + "Intended Audience :: Developers", |
| 24 | + "Natural Language :: English", |
| 25 | + "Operating System :: OS Independent", |
| 26 | + "Programming Language :: Python :: 3 :: Only", |
| 27 | +] |
| 28 | + |
| 29 | + |
| 30 | +[tool.poetry.urls] |
| 31 | +issues = "https://github.com/sw360/capycli/issues" |
| 32 | + |
| 33 | +[tool.poetry.scripts] |
| 34 | +capycli = "capycli.main.cli:main" |
| 35 | + |
| 36 | +[tool.poetry.dependencies] |
| 37 | +python = "^3.8" # drop support for 3.6 and 3.7 because of wheel and cli-support |
| 38 | +colorama = "^0.4.3" |
| 39 | +requests = "^2.31.0" # fix CVE-2023-32681 |
| 40 | +semver = "3.0.2" |
| 41 | +packageurl-python = "^0.15.6" |
| 42 | +pyjwt = "^1.7.1" |
| 43 | +openpyxl = "^3.0.3" |
| 44 | +requirements-parser = "0.11.0" |
| 45 | +sw360 = "^1.5.0" |
| 46 | +wheel = "^0.38.4" |
| 47 | +cli-support = "2.0.1" |
| 48 | +chardet = "5.2.0" |
| 49 | +cyclonedx-python-lib = "^8.0.0" |
| 50 | +tomli = "^2.0.2" |
| 51 | +dateparser = "^1.1.8" |
| 52 | +urllib3 = "*" |
| 53 | +importlib-resources = "^5.12.0" |
| 54 | +beautifulsoup4 = "^4.11.1" |
| 55 | +jsonschema = "^4.23.0" |
| 56 | + |
| 57 | +[tool.poetry.group.dev.dependencies] |
| 58 | +flake8 = ">=3.7.8" |
| 59 | +coverage = "^5.4" |
| 60 | +responses = "0.24.1" |
| 61 | +pytest = "7.4.3" |
| 62 | +vcrpy = "4.4.0" # arrghh, no version of vcrpy supports urllib3 >= 2 |
| 63 | +cli-test-helpers = "^3.1.0" |
| 64 | +isort = "^5.12.0" |
| 65 | +mypy = "^1.8.0" |
| 66 | +types-colorama = "^0.4.15.12" |
| 67 | +types-urllib3 = "^1.26.25.14" |
| 68 | +types-openpyxl = "^3.1.0.32" |
| 69 | +types-python-dateutil = "^2.8.19.14" |
| 70 | +types-requests = "2.31.0.6" # this is the last version that uses urllib3 < 2 |
| 71 | +types-beautifulsoup4 = "^4.12.0.20240106" |
| 72 | +codespell = "^2.2.6" |
| 73 | + |
| 74 | +[build-system] |
| 75 | +requires = ["poetry>=0.12"] |
| 76 | +build-backend = "poetry.masonry.api" |
| 77 | + |
| 78 | +[tool.pytest.ini_options] |
| 79 | +filterwarnings = [ |
| 80 | + # note the use of single quote below to denote "raw" strings in TOML |
| 81 | + "ignore:pkg_resources is deprecated as an API:DeprecationWarning", |
| 82 | + "ignore:Both `id` and `name` have been supplied - `name` will be ignored!", |
| 83 | + # cyclonedx-python-lib - UserWarning: The Component this BOM is describing None... |
| 84 | + "ignore::UserWarning", |
| 85 | + # cyclonedx-python-lib - DeprecationWarning: `@.tools` is deprecated from CycloneDX v1.5 onwards |
| 86 | + "ignore::DeprecationWarning" |
| 87 | +] |
| 88 | + |
| 89 | +[tool.mypy] |
| 90 | +exclude = [ |
| 91 | + "/tests", |
| 92 | +] |
| 93 | + |
| 94 | +show_error_codes = true |
| 95 | +pretty = true |
| 96 | + |
| 97 | +warn_unreachable = true |
| 98 | +allow_redefinition = true |
| 99 | + |
| 100 | +### Strict mode ### |
| 101 | +warn_unused_configs = true |
| 102 | +disallow_subclassing_any = true |
| 103 | + |
| 104 | +disallow_any_generics = true |
| 105 | +disallow_untyped_calls = true |
| 106 | +disallow_untyped_defs = true |
| 107 | +disallow_incomplete_defs = true |
| 108 | +check_untyped_defs = true |
| 109 | +disallow_untyped_decorators = true |
| 110 | +no_implicit_optional = true |
| 111 | +warn_redundant_casts = true |
| 112 | +warn_unused_ignores = true |
| 113 | +no_implicit_reexport = true |
| 114 | + |
| 115 | +[tool.codespell] |
| 116 | +skip = "./htmlcov/*,./_internal_tests_/*,./__internal__/*,./tests/fixtures/*,*.svg,./capycli/data/granularity_list.csv,./ComponentCache.*" |
| 117 | +ignore-words-list = "manuel, assertIn" |
0 commit comments