aws / aws/aws-step-functions-data-science-sdk-python

Make sagemaker an optional dependency

Đang mở
#184 5 bình luận 3 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
299
Fork
84
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'd like to see sagemaker marked as an optional dependency, as it is not always required.

### Use Case

Not all users of this package are using the sagemaker dependency, and it adds a lot of bloat to overall installations by forcing users to have gcc and g++ to be able to install numpy and pandas.

### Proposed Solution

It's quite simple to actually do this.

In `setup.py` you'd have to change `install_requires` and add `extras_require`:

```python
setup(
# [...]
install_requires = [
"boto3>=1.14.38",
"pyyaml"
]
extras_require = {
"sagemaker": ["sagemaker>=2.1.0"],
"test": [] # [...]
}
# [...]
)
```

In addition to this, some extra documentation should probably be added to the README to make it easier for users to understand how to install the extra dependency (`pip install stepfunctions[sagemaker]`).

### Other

If this is implemented, the major version probably has to be bumped because it's a change in how the package is installed.

---

* [x] :wave: I may be able to implement this feature request
* [x] :warning: This feature might incur a breaking change

---

This is a :rocket: Feature Request

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu trong setup.py và kiểm tra install_requires cùng extras_require, sau đó xem README để biết hướng dẫn cài đặt. Xác minh rằng việc cài đặt mặc định không còn yêu cầu sagemaker và người dùng có thể cài đặt dependency tùy chọn bằng lệnh pip được ghi trong tài liệu; xem xét tác động đối với major version trước khi thay đổi nó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, python
Lĩnh vực
build-system, cloud, documentation, machine-learning
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.