-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature: separating sagemaker dependencies into more use case specific installable components. #1130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: separating sagemaker dependencies into more use case specific installable components. #1130
Changes from 5 commits
c1f7ff0
35c01aa
617d50f
ca5f0d6
e98d6c8
349c9d4
c064a9f
978582d
90d56bf
afc10d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,12 +38,35 @@ def read_version(): | |
"numpy>=1.9.0", | ||
"protobuf>=3.1", | ||
"scipy>=0.19.0", | ||
"urllib3>=1.21, <1.25", | ||
"protobuf3-to-dict>=0.1.5", | ||
"requests>=2.20.0, <2.21", | ||
"fabric>=2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I realize this was part of an old change, but There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! |
||
] | ||
|
||
# Specific use case dependencies | ||
extras = {"analytics": ["pandas"], "local": ["urllib3>=1.21, <1.25", "docker-compose>=1.23.0"]} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we add one for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i didn't want to touch it, but actually why not :) |
||
# Meta dependency groups | ||
extras["all"] = [item for group in extras.values() for item in group] | ||
# Tests specific dependencies (do not need to be included in 'all') | ||
extras["test"] = ( | ||
[ | ||
extras["all"], | ||
"tox==3.13.1", | ||
"flake8", | ||
"pytest==4.4.1", | ||
"pytest-cov", | ||
"pytest-rerunfailures", | ||
"pytest-xdist", | ||
"mock", | ||
"tensorflow>=1.3.0", | ||
"contextlib2", | ||
"awslogs", | ||
"black==19.3b0 ; python_version >= '3.6'", | ||
"stopit==1.1.2", | ||
"apache-airflow==1.10.5", | ||
], | ||
) | ||
|
||
# enum is introduced in Python 3.4. Installing enum back port | ||
if sys.version_info < (3, 4): | ||
required_packages.append("enum34>=1.1.6") | ||
|
@@ -70,24 +93,6 @@ def read_version(): | |
"Programming Language :: Python :: 3.6", | ||
], | ||
install_requires=required_packages, | ||
extras_require={ | ||
"test": [ | ||
"tox==3.13.1", | ||
"flake8", | ||
"pytest==4.4.1", | ||
"pytest-cov", | ||
"pytest-rerunfailures", | ||
"pytest-xdist", | ||
"mock", | ||
"tensorflow>=1.3.0", | ||
"contextlib2", | ||
"awslogs", | ||
"pandas", | ||
"black==19.3b0 ; python_version >= '3.6'", | ||
"stopit==1.1.2", | ||
"apache-airflow==1.10.5", | ||
"docker-compose>=1.23.0", | ||
] | ||
}, | ||
extras_require=extras, | ||
entry_points={"console_scripts": ["sagemaker=sagemaker.cli.main:main"]}, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize this isn't strictly in scope, but the request bounds were somewhat defined by docker-compose - we could probably change it to
requests>=2.20.0
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, don't have bandwidth to do a proper check for it as part of this PR knowing how many problems it caused before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough 😂