Skip to content

Commit 5daebaf

Browse files
committed
update
1 parent 46c6718 commit 5daebaf

4 files changed

Lines changed: 55 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Publish
3+
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
publish:
11+
name: "Publish release"
12+
runs-on: "ubuntu-latest"
13+
14+
steps:
15+
- uses: "actions/checkout@v5"
16+
- uses: "actions/setup-python@v6"
17+
with:
18+
python-version-file: ".python-version"
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v7
21+
- name: "Install dependencies"
22+
run: make install
23+
- name: "Build package & docs"
24+
run: |
25+
make build
26+
- name: "Publish"
27+
run: |
28+
make publish
29+
env:
30+
UV_PUBLISH_USERNAME: __token__
31+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ jobs:
2626
with:
2727
python-version: "${{ matrix.python-version }}"
2828
- name: "Install dependencies"
29-
run: uv sync --all-groups
29+
run: make install
3030
- name: "Run linting checks"
3131
run: make lint
32-
# - name: "Build docs"
33-
# run: |
34-
# make docs
3532
- name: "Run tests"
3633
run: make test
3734
- name: "Upload Coverage"

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.DEFAULT_GOAL := all
22

3+
.PHONY: install
4+
install:
5+
uv sync --all-groups
6+
37
.PHONY: format
48
format:
59
ruff check --fix .
@@ -14,5 +18,14 @@ lint:
1418
test:
1519
pytest --cov-report term --cov-report xml:coverage.xml --cov=aws_lambda_opentelemetry tests -vvv
1620

21+
.PHONY: build
22+
build:
23+
uv build
24+
25+
26+
.PHONY: publish
27+
publish:
28+
uv publish
29+
1730
.PHONY: all
18-
all: format lint test
31+
all: format lint test

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ classifiers = [
2020
"License :: OSI Approved :: BSD License",
2121
"Operating System :: OS Independent",
2222
]
23+
24+
[build-system]
25+
requires = ["uv_build>=0.9.18,<0.10.0"]
26+
build-backend = "uv_build"
27+
28+
[tool.uv.build-backend]
29+
module-name = "aws_lambda_opentelemetry"
30+
module-root = ""
31+
2332
dependencies = [
2433
"opentelemetry-api>=1.0.0",
2534
"opentelemetry-sdk>=1.0.0",

0 commit comments

Comments
 (0)