Skip to content

Commit 059e6a5

Browse files
Migrate to pyproject.toml
1 parent 57e70f5 commit 059e6a5

File tree

3 files changed

+33
-23
lines changed

3 files changed

+33
-23
lines changed

awslambdaric/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
"""
44

5-
__version__ = "2.0.12"
5+
import importlib.metadata
6+
7+
__version__ = importlib.metadata.version("awslambdaric")

pyproject.toml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[project]
2+
name = "awslambdaric"
3+
version = "2.0.12"
4+
description = "AWS Lambda Runtime Interface Client for Python"
5+
authors = [
6+
{ name = "Amazon Web Services" }
7+
]
8+
dependencies = []
9+
readme = "README.md"
10+
requires-python = ">= 3.8"
11+
12+
classifiers = [
13+
"Development Status :: 5 - Production/Stable",
14+
"Intended Audience :: Developers",
15+
"Natural Language :: English",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.6",
18+
"Programming Language :: Python :: 3.7",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"License :: OSI Approved :: Apache Software License",
25+
"Operating System :: OS Independent",
26+
]
27+
28+
[project.urls]
29+
Repository = "https://github.com/aws/aws-lambda-python-runtime-interface-client"
30+
Issues = "https://github.com/aws/aws-lambda-python-runtime-interface-client/issues"

setup.py

-22
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import platform
88
from subprocess import check_call, check_output
99
from setuptools import Extension, find_packages, setup
10-
from awslambdaric import __version__
11-
1210

1311
def get_curl_extra_linker_flags():
1412
# We do not want to build the dependencies during packaging
@@ -71,30 +69,10 @@ def read_requirements(req="base.txt"):
7169
name="awslambdaric",
7270
version=__version__,
7371
author="Amazon Web Services",
74-
description="AWS Lambda Runtime Interface Client for Python",
75-
long_description=read("README.md"),
76-
long_description_content_type="text/markdown",
77-
url="https://github.com/aws/aws-lambda-python-runtime-interface-client",
7872
packages=find_packages(
7973
exclude=("tests", "tests.*", "docs", "examples", "versions")
8074
),
8175
install_requires=read_requirements("base.txt"),
82-
classifiers=[
83-
"Development Status :: 5 - Production/Stable",
84-
"Intended Audience :: Developers",
85-
"Natural Language :: English",
86-
"Programming Language :: Python :: 3",
87-
"Programming Language :: Python :: 3.6",
88-
"Programming Language :: Python :: 3.7",
89-
"Programming Language :: Python :: 3.8",
90-
"Programming Language :: Python :: 3.9",
91-
"Programming Language :: Python :: 3.10",
92-
"Programming Language :: Python :: 3.11",
93-
"Programming Language :: Python :: 3.12",
94-
"License :: OSI Approved :: Apache Software License",
95-
"Operating System :: OS Independent",
96-
],
97-
python_requires=">=3.6",
9876
ext_modules=get_runtime_client_extension(),
9977
test_suite="tests",
10078
)

0 commit comments

Comments
 (0)