aws / sagemaker-core

Apache License 2.0
5 stars 3 forks source link

Migrate setup.py to modern pyproject.toml and allow import using sagemaker_core namespace #19

Closed benieric closed 4 months ago

benieric commented 4 months ago

Issue #, if available:

Description of changes:

Testing

!python -m build
!pip install dist/sagemaker_core-0.1.0.tar.gz
from sagemaker_core.generated.resources import TrainingJob
for job in TrainingJob.get_all():
    print(job.training_job_name)

VS Before

from src.generated.resource import TrainingJob

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.