File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11.DEFAULT_GOAL := all
22
3+ .PHONY : install
4+ install :
5+ uv sync --all-groups
6+
37.PHONY : format
48format :
59 ruff check --fix .
1418test :
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
Original file line number Diff line number Diff 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+
2332dependencies = [
2433 " opentelemetry-api>=1.0.0" ,
2534 " opentelemetry-sdk>=1.0.0" ,
You can’t perform that action at this time.
0 commit comments