Skip to content

Commit 568449c

Browse files
anton-bAnton Benkevich
andauthored
Add reuirements (#97)
Co-authored-by: Anton Benkevich <[email protected]>
1 parent 6a1fadd commit 568449c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
jsonschema[format_nongpl]==3.2.0
2+
pyyaml==5.1.2
3+
requests>=2.18

scripts/validate_my_definition.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fi
1818

1919
if $PYTHON -m venv $TEMP; then
2020
source $TEMP/bin/activate
21-
pip3 install requests jsonschema PyYaml alertlogic-sdk-definitions --no-cache-dir --ignore-requires-python
21+
pip3 install alertlogic-sdk-definitions --no-cache-dir --ignore-requires-python
2222
curl https://raw.githubusercontent.com/alertlogic/alertlogic-sdk-definitions/master/scripts/validate_my_definition.py -o $TEMP/validate_my_definition.py
2323
if [ $# -eq 0 ]
2424
then

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with open('README.md') as readme_file:
44
readme = readme_file.read()
55

6-
requirements = []
6+
requirements = ['jsonschema[format_nongpl]==3.2.0', 'pyyaml==5.1.2', 'requests>=2.18']
77

88
setup(
99
name='alertlogic-sdk-definitions',
@@ -28,7 +28,7 @@
2828
scripts=[],
2929
# yeah yeah i know, circular dependency, but we need it for test now, later i'll think how to decouple
3030
# definitions parsing/loading and client
31-
tests_require=['jsonschema', 'PyYaml', 'requests', 'alertlogic-sdk-python'],
31+
tests_require=requirements,
3232
packages=find_packages(exclude=['contrib', 'docs', 'tests*', 'troubleshooting']),
3333
include_package_data=True,
3434
zip_safe=False,

0 commit comments

Comments
 (0)