Skip to content

Commit 289965d

Browse files
authored
Merge pull request #493 from lukpueh/fix-misc-deps
Misc fixes in dependency definitions
2 parents 86b44c0 + aadd835 commit 289965d

File tree

3 files changed

+7
-34
lines changed

3 files changed

+7
-34
lines changed

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ Issues = "https://github.com/secure-systems-lab/securesystemslib/issues"
4545
[project.optional-dependencies]
4646
crypto = ["cryptography>=37.0.0"]
4747
gcpkms = ["google-cloud-kms", "cryptography>=37.0.0"]
48+
hsm = ["asn1crypto", "cryptography>=37.0.0", "PyKCS11"]
4849
pynacl = ["pynacl>1.2.0"]
49-
PySPX = ["PySPX==0.5.0"]
50-
asn1 = ["asn1crypto"]
51-
pykcs11 = ["PyKCS11"]
50+
PySPX = ["PySPX>=0.5.0"]
5251

5352
[tool.hatch.version]
5453
path = "securesystemslib/__init__.py"

requirements-pinned.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.8
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
44
#
55
# pip-compile --output-file=requirements-pinned.txt requirements.txt
66
#
@@ -11,7 +11,7 @@ cffi==1.15.1
1111
# cryptography
1212
# pynacl
1313
# pyspx
14-
cryptography==38.0.3 ; python_version >= "3"
14+
cryptography==38.0.3
1515
# via -r requirements.txt
1616
pycparser==2.21
1717
# via cffi

requirements.txt

+2-28
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
1-
# All runtime requirements including extras (see 'install_requires' and
2-
# 'extras_require' in setup.py)
1+
# Requirements for full feature install (includes all optional dependencies).
32
#
43
# This file together with 'pip-compile' is used to generate a pinned
54
# requirements file with all immediate and transitive dependencies.
65
#
76
# 'requirements-pinned.txt' is updated on GitHub with Dependabot, which
87
# triggers CI/CD builds to automatically test against updated dependencies.
9-
#
10-
# Below instructions can be used to re-generate 'requirements-pinned.txt', e.g.
11-
# if:
12-
# - requirements are added or removed from this file
13-
# - Python version support is changed
14-
# - CI/CD build breaks due to updates (e.g. transitive dependency conflicts)
15-
#
16-
# 1. Use this script to create a pinned requirements file for each Python
17-
# version
18-
# ```
19-
# for v in 3.7 3.8 3.9; do
20-
# mkvirtualenv sslib-env-${v} -p python${v};
21-
# pip install pip-tools;
22-
# pip-compile --no-header -o requirements-${v}.txt requirements.txt;
23-
# deactivate;
24-
# rmvirtualenv sslib-env-${v};
25-
# done;
26-
#
27-
# ```
28-
# 2. Use this command to merge per-version files
29-
# `sort -o requirements-pinned.txt -u requirements-?.?.txt`
30-
# 2. Manually add environment markers to requirements-pinned.txt
31-
# 3. Use this command to remove per-version files
32-
# `rm requirements-?.?.txt`
33-
#
34-
cryptography >= 37.0.0; python_version >= '3'
8+
cryptography >= 37.0.0
359
pynacl
3610
PySPX
3711
PyKCS11

0 commit comments

Comments
 (0)