Skip to content

Commit 2196533

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

File tree

5 files changed

+35
-25
lines changed

5 files changed

+35
-25
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ init:
99

1010
.PHONY: test
1111
test: check-format
12+
pip install .
1213
pytest --cov awslambdaric --cov-report term-missing --cov-fail-under 90 tests
1314

1415
.PHONY: setup-codebuild-agent

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"

requirements/base.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
simplejson>=3.18.4
2+
uv

setup.py

-24
Original file line numberDiff line numberDiff line change
@@ -7,7 +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__
1110

1211

1312
def get_curl_extra_linker_flags():
@@ -68,33 +67,10 @@ def read_requirements(req="base.txt"):
6867

6968

7069
setup(
71-
name="awslambdaric",
72-
version=__version__,
73-
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",
7870
packages=find_packages(
7971
exclude=("tests", "tests.*", "docs", "examples", "versions")
8072
),
8173
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",
9874
ext_modules=get_runtime_client_extension(),
9975
test_suite="tests",
10076
)

0 commit comments

Comments
 (0)