Skip to content

Commit

Permalink
build: remove obsolete infos in requirements
Browse files Browse the repository at this point in the history
- Removes version marker left over from Python 2 times, and
instructions to semi-automatically generate a pinned
requirements file.
The latter was relevant when we had different requirements for
different Python versions, which is not the case anymore.

- Automatically re-generates requirements-pinned.txt

Signed-off-by: Lukas Puehringer <[email protected]>
  • Loading branch information
lukpueh committed Jan 11, 2023
1 parent 58857ca commit aadd835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
6 changes: 3 additions & 3 deletions requirements-pinned.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements-pinned.txt requirements.txt
#
Expand All @@ -11,7 +11,7 @@ cffi==1.15.1
# cryptography
# pynacl
# pyspx
cryptography==38.0.3 ; python_version >= "3"
cryptography==38.0.3
# via -r requirements.txt
pycparser==2.21
# via cffi
Expand Down
30 changes: 2 additions & 28 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
# All runtime requirements including extras (see 'install_requires' and
# 'extras_require' in setup.py)
# Requirements for full feature install (includes all optional dependencies).
#
# This file together with 'pip-compile' is used to generate a pinned
# requirements file with all immediate and transitive dependencies.
#
# 'requirements-pinned.txt' is updated on GitHub with Dependabot, which
# triggers CI/CD builds to automatically test against updated dependencies.
#
# Below instructions can be used to re-generate 'requirements-pinned.txt', e.g.
# if:
# - requirements are added or removed from this file
# - Python version support is changed
# - CI/CD build breaks due to updates (e.g. transitive dependency conflicts)
#
# 1. Use this script to create a pinned requirements file for each Python
# version
# ```
# for v in 3.7 3.8 3.9; do
# mkvirtualenv sslib-env-${v} -p python${v};
# pip install pip-tools;
# pip-compile --no-header -o requirements-${v}.txt requirements.txt;
# deactivate;
# rmvirtualenv sslib-env-${v};
# done;
#
# ```
# 2. Use this command to merge per-version files
# `sort -o requirements-pinned.txt -u requirements-?.?.txt`
# 2. Manually add environment markers to requirements-pinned.txt
# 3. Use this command to remove per-version files
# `rm requirements-?.?.txt`
#
cryptography >= 37.0.0; python_version >= '3'
cryptography >= 37.0.0
pynacl
PySPX
PyKCS11
Expand Down

0 comments on commit aadd835

Please sign in to comment.