Skip to content

Commit 2cc2681

Browse files
authored
feature: working model.py and tests with reliance on v2 (#1704)
* feat: working sagemaker-serve with reliance on v2 lib 1. pip install sagemaker pytest deepdiff mlflow sagemaker_schema_inference_artifacts 2. ada assume * feature: working model.py and tests with reliance on v2 * test_model targets new v3 _Model * Add pyproject.toml
1 parent 5d3bec9 commit 2cc2681

File tree

7 files changed

+4618
-44
lines changed

7 files changed

+4618
-44
lines changed

sagemaker-serve/pyproject.toml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[build-system]
2+
requires = ["setuptools>=64", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "sagemaker-serve"
7+
version = "0.1.0"
8+
description = "SageMaker Serve package for model serving and deployment"
9+
readme = "README.md"
10+
requires-python = ">=3.9"
11+
authors = [
12+
{name = "Amazon Web Services"},
13+
]
14+
classifiers = [
15+
"Development Status :: 3 - Alpha",
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: Apache Software License",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
]
24+
dependencies = [
25+
"sagemaker",
26+
"boto3",
27+
"botocore",
28+
"deepdiff",
29+
"mlflow",
30+
"sagemaker_schema_inference_artifacts",
31+
"pytest"
32+
]
33+
34+
[project.optional-dependencies]
35+
test = [
36+
"pytest",
37+
"pytest-cov",
38+
"mock",
39+
]
40+
dev = [
41+
"pytest",
42+
"pytest-cov",
43+
"mock",
44+
"black",
45+
"flake8",
46+
]
47+
48+
[tool.setuptools]
49+
package-dir = {"" = "src"}
50+
include-package-data = true
51+
52+
[tool.setuptools.packages.find]
53+
where = ["src"]
54+
include = ["sagemaker*"]
55+
namespaces = true
56+
57+
[tool.pytest.ini_options]
58+
testpaths = ["tests"]
59+
python_files = ["test_*.py"]
60+
python_classes = ["Test*"]
61+
python_functions = ["test_*"]
62+
addopts = "-v --tb=short"
63+
64+
[tool.black]
65+
line-length = 100
66+
target-version = ['py38']
67+
include = '\.pyi?$'
68+
extend-exclude = '''
69+
/(
70+
# directories
71+
\.eggs
72+
| \.git
73+
| \.hg
74+
| \.mypy_cache
75+
| \.tox
76+
| \.venv
77+
| build
78+
| dist
79+
)/
80+
'''

0 commit comments

Comments
 (0)