Skip to content

Commit 8b97b85

Browse files
committed
change: Update package metadata
1 parent c5fc93f commit 8b97b85

File tree

6 files changed

+93
-137
lines changed

6 files changed

+93
-137
lines changed

MANIFEST.in

Lines changed: 0 additions & 13 deletions
This file was deleted.

pyproject.toml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-requirements-txt>=0.3.0"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "sagemaker"
7+
dynamic = ["version", "optional-dependencies"]
8+
description = "Open source library for training and deploying models on Amazon SageMaker."
9+
readme = "README.rst"
10+
license = "Apache-2.0"
11+
requires-python = ">= 3.7"
12+
authors = [
13+
{ name = "Amazon Web Services" },
14+
]
15+
keywords = [
16+
"AI",
17+
"AWS",
18+
"Amazon",
19+
"ML",
20+
"MXNet",
21+
"Tensorflow",
22+
]
23+
classifiers = [
24+
"Development Status :: 5 - Production/Stable",
25+
"Intended Audience :: Developers",
26+
"License :: OSI Approved :: Apache Software License",
27+
"Natural Language :: English",
28+
"Programming Language :: Python",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
]
34+
dependencies = [
35+
"attrs>=20.3.0,<23",
36+
"boto3>=1.26.20,<2.0",
37+
"google-pasta",
38+
"importlib-metadata>=1.4.0,<5.0",
39+
"numpy>=1.9.0,<2.0",
40+
"packaging==20.9",
41+
"pandas",
42+
"pathos",
43+
"protobuf3-to-dict>=0.1.5,<1.0",
44+
"protobuf>=3.1,<4.0",
45+
"schema",
46+
"smdebug_rulesconfig==1.0.1",
47+
]
48+
49+
[project.scripts]
50+
sagemaker-upgrade-v2 = "sagemaker.cli.compatibility.v2.sagemaker_upgrade_v2:main"
51+
52+
[project.urls]
53+
Homepage = "https://github.com/aws/sagemaker-python-sdk"
54+
55+
[tool.hatch.version]
56+
path = "VERSION"
57+
pattern = "(?P<version>.+)"
58+
59+
[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
60+
all = [
61+
"requirements/extras/local_requirements.txt",
62+
"requirements/extras/scipy_requirements.txt",
63+
]
64+
local = [
65+
"requirements/extras/local_requirements.txt",
66+
]
67+
scipy = [
68+
"requirements/extras/scipy_requirements.txt",
69+
]
70+
test = [
71+
"requirements/extras/local_requirements.txt",
72+
"requirements/extras/scipy_requirements.txt",
73+
"requirements/extras/test_requirements.txt",
74+
]
75+
76+
[tool.hatch.build.targets.sdist]
77+
include = [
78+
"/requirements/extras",
79+
"/src",
80+
"/VERSION",
81+
]
82+
83+
[tool.pytest.ini_options]
84+
addopts = [
85+
"-vv",
86+
]
87+
testpaths = [
88+
"tests",
89+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
build==0.9.0
12
twine==3.8.0

setup.cfg

Lines changed: 0 additions & 15 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 107 deletions
This file was deleted.

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7+
isolated_build = true
78
envlist = black-format,flake8,pylint,docstyle,sphinx,doc8,twine,py37,py38,py39,py310
89

910
skip_missing_interpreters = False
@@ -47,7 +48,7 @@ ignore =
4748
require-code = True
4849

4950
[doc8]
50-
ignore-path=.tox,src/sagemaker.egg-info
51+
ignore-path=.tox
5152
# TODO: fix files before enabling max-line-length (D001)
5253
ignore=D001
5354

@@ -106,7 +107,7 @@ commands =
106107
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
107108
commands =
108109
pip install --exists-action=w -r requirements/tox/twine_requirements.txt
109-
python setup.py sdist
110+
python -m build --sdist
110111
twine check dist/*.tar.gz
111112

112113
[testenv:sphinx]

0 commit comments

Comments
 (0)