File tree 6 files changed +73
-30
lines changed
6 files changed +73
-30
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ python:
20
20
- " 3.8"
21
21
22
22
install :
23
- - pip install -r test-requirements.txt
23
+ - pip --upgarde pip
24
+ - ./mk-requires.sh
25
+ - pip install -r requirements.txt
24
26
25
27
script :
26
28
- wget -q "$LIBGIT2_SRC_URL" -O $LIBGIT2_TAR_NAME
27
29
- tar -xzf $LIBGIT2_TAR_NAME
28
30
- (cd $LIBGIT2_DIR_NAME; cmake . -DMAKE_INSTALL_PREFIX=${LIBGIT2} && make -j 5 install)
29
- - pip install --upgrade pip
30
- - pip install --upgrade -r <( bash pkg/generate-requirements.sh )
31
31
- pytest tests/unittests
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ D=" $( dirname " $0 " ) "
4
+ F=" $D /requirements.txt"
5
+
6
+ echo " # This file was generated by $0 " > " $F "
7
+ echo " # $( date -u) " >> " $F "
8
+ echo >> " $F "
9
+
10
+ bash " $D /pkg/generate-requirements.sh" " $@ " | tee -a " $F "
11
+
12
+ CMD=( pip install --upgrade -r requirements.txt )
13
+
14
+ read -ep " issue ${CMD[*]} ? [Y/n]" YN
15
+ [[ " $YN " =~ [Nn] ]] || " ${CMD[@]} "
Original file line number Diff line number Diff line change @@ -8,5 +8,7 @@ cat "$setup_py_dir/hubblestack.egg-info/requires.txt" \
8
8
" $setup_py_dir /optional-requirements.txt" \
9
9
" $setup_py_dir /package-requirements.txt" \
10
10
" $setup_py_dir /test-requirements.txt" \
11
+ \
11
12
| tr A-Z a-z | grep -v ^# | grep . | sort -u \
12
- | perl -ne ' chomp; $P{$1} = $_ if m/^([^<>=]+)/; END { print "$_\n" for sort values %P }'
13
+ | perl -ne ' chomp; $P{$1} = $_ if m/^([^<>=]+)/ and length($_) > length($P{$1});
14
+ END { print "$_\n" for sort values %P }'
Original file line number Diff line number Diff line change 1
- ntplib
2
- distro
3
- pyinstaller == 3.3.1
4
- Crypto
5
- pyopenssl >= 16.2.0
1
+ # This file was generated by ./mk-requires.sh
2
+ # Wed Mar 18 14:02:09 UTC 2020
3
+
4
+ ansi2html
6
5
argparse
7
- requests >= 2.13.0
8
- pprint
9
- daemon
6
+ azure-storage-blob == 2.1.0
7
+ azure-storage-common == 2.1.0
8
+ azure == 4.0.0
9
+ backports-abc
10
+ bandit
10
11
boto3
11
12
botocore
12
- pygit2 < 0.27.0
13
- salt-ssh
14
- gitpython
15
- pyinotify
13
+ certifi
16
14
cffi
17
- azure
18
- azure-storage-common
19
- azure-storage-blob
15
+ chardet
20
16
croniter
21
- vulners
17
+ cryptography
18
+ daemon
19
+ futures
20
+ gitdb2
21
+ gitpython
22
+ gprof2dot
23
+ idna
24
+ jinja2
25
+ markupsafe
26
+ mock
27
+ msgpack
28
+ ntplib
29
+ patch == 1.*
30
+ pprint
31
+ pycryptodome
32
+ pygit2 < 0.27.0
33
+ pyinotify
34
+ pyinstaller-hooks
35
+ pyinstaller == 3.6
36
+ pylint
37
+ pyopenssl >= 16.2.0
38
+ pytest
39
+ pytest-cov
40
+ pytest-html
41
+ pytest-pythonpath
42
+ python-dateutil
43
+ pyyaml
44
+ requests >= 2.13.0
45
+ salt-ssh == 2019.2.3
46
+ saltpylint
47
+ singledispatch
48
+ six
49
+ smmap2
50
+ tornado
51
+ urllib3
52
+ vulners
Original file line number Diff line number Diff line change 13
13
# Default to CentOS7
14
14
data_files = [('/usr/lib/systemd/system' , ['pkg/source/hubble.service' ]),
15
15
('/etc/hubble' , ['conf/hubble' ]), ]
16
- dependencies = [
16
+
17
+ build_dependencies = [
17
18
'pycryptodome' ,
18
19
'cryptography' ,
19
20
'pyopenssl>=16.2.0' ,
28
29
'vulners' ,
29
30
'ntplib' ,
30
31
'patch==1.*' ,
31
- ]
32
+ ]
32
33
33
34
if distro == 'redhat' or distro == 'centos' :
34
35
if version .startswith ('6' ):
42
43
('/etc/hubble' , ['conf/hubble' ]), ]
43
44
44
45
if platform_name == 'Windows' :
45
- dependencies .remove ('pyinotify' )
46
+ build_dependencies .remove ('pyinotify' )
46
47
47
48
with open ('hubblestack/__init__.py' , 'r' ) as fd :
48
49
version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
64
65
'hubble = hubblestack.daemon:run' ,
65
66
],
66
67
},
67
- tests_require = [
68
- 'mock' ,
69
- ],
70
- install_requires = dependencies ,
68
+ install_requires = build_dependencies ,
71
69
data_files = data_files ,
72
70
options = {
73
71
# 'build_scripts': {
Original file line number Diff line number Diff line change 1
1
argparse
2
- crypto
3
2
daemon
4
3
pprint
5
4
backports-abc
@@ -17,8 +16,6 @@ markupsafe
17
16
mock
18
17
msgpack
19
18
ntplib
20
- cryptography
21
- pycryptodome
22
19
pyinotify
23
20
pytest
24
21
pytest-cov
You can’t perform that action at this time.
0 commit comments