Skip to content

Commit

Permalink
Add crypto extra to the securesystemslib requirement (#182)
Browse files Browse the repository at this point in the history
The `cryptography` package is a dependency of the `securesystemslib`
package, to be exact it is an _optional_ dependency.
`securesystemslib` uses "optional dependencies" ("extras") to allow
a default installation with limited capabilities.
However, since we are making use of the `cryptography` library
via `securesystemslib`, we need to install at least the `crypto`
extra.

Fixes #131

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
  • Loading branch information
KAUTH authored Jan 24, 2023
1 parent 28819bc commit e74b0e7
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 70 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "pypi"

[packages]
rich-click = "*"
securesystemslib = "*"
securesystemslib = {extras = ["crypto"], version = "*"}
click = "*"
rich = "*"
PyNaCl = "==1.5.0"
Expand Down
63 changes: 46 additions & 17 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
"requests",
"rich",
"rich-click",
"securesystemslib",
"securesystemslib[crypto]",
"tuf==2.0.0",
]
dynamic = ["version"]
Expand Down
85 changes: 43 additions & 42 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,76 +1,77 @@
-i https://pypi.org/simple
alabaster==0.7.13 ; python_version >= '3.6'
attrs==22.2.0 ; python_version >= '3.6'
babel==2.11.0 ; python_version >= '3.6'
alabaster==0.7.13; python_version >= '3.6'
attrs==22.2.0; python_version >= '3.6'
babel==2.11.0; python_version >= '3.6'
black==22.3.0
build==0.10.0
cachetools==5.3.0 ; python_version ~= '3.7'
certifi==2022.12.7 ; python_version >= '3.6'
cfgv==3.3.1 ; python_full_version >= '3.6.1'
chardet==5.1.0 ; python_version >= '3.7'
charset-normalizer==3.0.1 ; python_full_version >= '3.6.0'
cachetools==5.3.0; python_version ~= '3.7'
certifi==2022.12.7; python_version >= '3.6'
cfgv==3.3.1; python_full_version >= '3.6.1'
chardet==5.1.0; python_version >= '3.7'
charset-normalizer==3.0.1
click==8.1.3
colorama==0.4.6 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
colorama==0.4.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
coverage==7.0.5
distlib==0.3.6
docutils==0.19 ; python_version >= '3.7'
editables==0.3 ; python_version >= '3.1'
exceptiongroup==1.1.0 ; python_version < '3.11'
filelock==3.9.0 ; python_version >= '3.7'
docutils==0.17.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
editables==0.3; python_version > '3'
exceptiongroup==1.1.0; python_version < '3.11'
filelock==3.9.0; python_version >= '3.7'
flake8==6.0.0
hatchling==0.22.0
identify==2.5.15 ; python_version >= '3.7'
idna==3.4 ; python_version >= '3.5'
imagesize==1.4.1 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
iniconfig==2.0.0 ; python_version >= '3.7'
identify==2.5.15; python_version >= '3.7'
idna==3.4; python_version >= '3.5'
imagesize==1.4.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
iniconfig==2.0.0; python_version >= '3.7'
isort==5.11.4
jinja2==3.1.2 ; python_version >= '3.7'
markupsafe==2.1.2 ; python_version >= '3.7'
mccabe==0.7.0 ; python_version >= '3.6'
jinja2==3.1.2; python_version >= '3.7'
markupsafe==2.1.2; python_version >= '3.7'
mccabe==0.7.0; python_version >= '3.6'
mypy==0.991
mypy-extensions==0.4.3
nodeenv==1.7.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
packaging==23.0 ; python_version >= '3.1'
pathspec==0.10.3 ; python_version >= '3.7'
nodeenv==1.7.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
packaging==23.0; python_version > '3'
pathspec==0.10.3; python_version >= '3.7'
pip==22.3.1
platformdirs==2.6.2 ; python_version >= '3.7'
pluggy==1.0.0 ; python_version >= '3.1'
platformdirs==2.6.2; python_version >= '3.7'
pluggy==1.0.0; python_version > '3'
pre-commit==3.0.0
pretend==1.0.9
pycodestyle==2.10.0 ; python_version >= '3.6'
pyflakes==3.0.1 ; python_version >= '3.6'
pygments==2.14.0 ; python_version >= '3.6'
pyproject-api==1.5.0 ; python_version >= '3.7'
pyproject-hooks==1.0.0 ; python_version >= '3.7'
pycodestyle==2.10.0; python_version >= '3.6'
pyflakes==3.0.1; python_version >= '3.6'
pygments==2.14.0; python_version >= '3.6'
pyproject-api==1.5.0; python_version >= '3.7'
pyproject-hooks==1.0.0; python_version >= '3.7'
pytest==7.2.1
pytz==2022.7.1
pyyaml==6.0 ; python_version >= '3.6'
pyyaml==6.0; python_version >= '3.6'
requests==2.28.2
setuptools==66.1.1 ; python_version >= '3.7'
setuptools==66.1.1; python_version >= '3.7'
snowballstemmer==2.2.0
sphinx==6.1.3
sphinx-rtd-theme==0.5.1
sphinx==5.3.0
sphinx-rtd-theme==1.1.1
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-plantuml==0.24.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tomli==2.0.1 ; python_version < '3.11'
tomli==2.0.1; python_version < '3.11'
tox==4.3.5
typing-extensions==4.4.0 ; python_version >= '3.7'
urllib3==1.26.14 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
virtualenv==20.17.1 ; python_version >= '3.6'
typing-extensions==4.4.0; python_version >= '3.7'
urllib3==1.26.14; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
virtualenv==20.17.1; python_version >= '3.6'
cffi==1.15.1
configobj==5.0.8
cryptography==39.0.0
dynaconf[ini]==3.1.11
markdown-it-py==2.1.0 ; python_version >= '3.7'
mdurl==0.1.2 ; python_version >= '3.7'
markdown-it-py==2.1.0; python_version >= '3.7'
mdurl==0.1.2; python_version >= '3.7'
pycparser==2.21
pynacl==1.5.0
rich==13.2.0
rich-click==1.6.1
securesystemslib==0.26.0
six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
securesystemslib[crypto]==0.26.0
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
tuf==2.0.0
19 changes: 10 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
-i https://pypi.org/simple
certifi==2022.12.7 ; python_version >= '3.6'
certifi==2022.12.7; python_version >= '3.6'
cffi==1.15.1
charset-normalizer==3.0.1 ; python_full_version >= '3.6.0'
charset-normalizer==3.0.1
click==8.1.3
configobj==5.0.8
cryptography==39.0.0
dynaconf[ini]==3.1.11
idna==3.4 ; python_version >= '3.5'
markdown-it-py==2.1.0 ; python_version >= '3.7'
mdurl==0.1.2 ; python_version >= '3.7'
idna==3.4; python_version >= '3.5'
markdown-it-py==2.1.0; python_version >= '3.7'
mdurl==0.1.2; python_version >= '3.7'
pycparser==2.21
pygments==2.14.0 ; python_version >= '3.6'
pygments==2.14.0; python_version >= '3.6'
pynacl==1.5.0
requests==2.28.2
rich==13.2.0
rich-click==1.6.1
securesystemslib==0.26.0
six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
securesystemslib[crypto]==0.26.0
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
tuf==2.0.0
urllib3==1.26.14 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
urllib3==1.26.14; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'

0 comments on commit e74b0e7

Please sign in to comment.