Skip to content

Commit 28a6ba4

Browse files
authored
Bump requests version and add pip-compile (#102)
* Bump requests version and add pip-compile * Bump version of colorama * Run lint job on Python 3.8
1 parent 9cb082b commit 28a6ba4

File tree

5 files changed

+84
-9
lines changed

5 files changed

+84
-9
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ['3.6']
13+
python-version: ['3.8']
1414

1515
name: Linting
1616
steps:

requirements.in

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cookiecutter==2.1.1
2+
click==7.0
3+
fire==0.2.1
4+
pyyaml==5.4
5+
Pygments==2.7.4
6+
requests==2.28.1
7+
colorama==0.4.6
8+
appdirs==1.4.3
9+
python-frontmatter==1.0.0

requirements.txt

+62-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,65 @@
1-
cookiecutter==2.1.1
1+
#
2+
# This file is autogenerated by pip-compile with python 3.9
3+
# To update, run:
4+
#
5+
# ./scripts/pip-compile.sh
6+
#
7+
appdirs==1.4.3
8+
# via -r requirements.in
9+
arrow==1.2.3
10+
# via jinja2-time
11+
binaryornot==0.4.4
12+
# via cookiecutter
13+
certifi==2022.9.24
14+
# via requests
15+
chardet==5.0.0
16+
# via binaryornot
17+
charset-normalizer==2.1.1
18+
# via requests
219
click==7.0
20+
# via
21+
# -r requirements.in
22+
# cookiecutter
23+
colorama==0.4.6
24+
# via -r requirements.in
25+
cookiecutter==2.1.1
26+
# via -r requirements.in
327
fire==0.2.1
4-
pyyaml==5.4
5-
Pygments==2.7.4
6-
requests==2.22.0
7-
colorama==0.4.3
8-
appdirs==1.4.3
28+
# via -r requirements.in
29+
idna==3.4
30+
# via requests
31+
jinja2==3.1.2
32+
# via
33+
# cookiecutter
34+
# jinja2-time
35+
jinja2-time==0.2.0
36+
# via cookiecutter
37+
markupsafe==2.1.1
38+
# via jinja2
39+
pygments==2.7.4
40+
# via -r requirements.in
41+
python-dateutil==2.8.2
42+
# via arrow
943
python-frontmatter==1.0.0
44+
# via -r requirements.in
45+
python-slugify==6.1.2
46+
# via cookiecutter
47+
pyyaml==5.4
48+
# via
49+
# -r requirements.in
50+
# cookiecutter
51+
# python-frontmatter
52+
requests==2.28.1
53+
# via
54+
# -r requirements.in
55+
# cookiecutter
56+
six==1.16.0
57+
# via
58+
# fire
59+
# python-dateutil
60+
termcolor==2.1.0
61+
# via fire
62+
text-unidecode==1.3
63+
# via python-slugify
64+
urllib3==1.26.12
65+
# via requests

scripts/pip-compile.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
# Script to pin Python requirements in a Docker container
3+
ROOTDIR=`pwd -P`
4+
docker run \
5+
--rm \
6+
--entrypoint bash \
7+
-v $ROOTDIR:/mnt/ctfcli \
8+
-e CUSTOM_COMPILE_COMMAND='./scripts/pip-compile.sh' \
9+
-it python:3.9-slim-buster \
10+
-c 'cd /mnt/ctfcli && pip install pip-tools==6.6.0 && pip-compile'

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def read(fname):
3838
"fire==0.2.1",
3939
"pyyaml==5.4",
4040
"Pygments==2.7.4",
41-
"requests==2.22.0",
42-
"colorama==0.4.3",
41+
"requests==2.28.1",
42+
"colorama==0.4.6",
4343
"appdirs==1.4.3",
4444
"python-frontmatter==1.0.0",
4545
],

0 commit comments

Comments
 (0)