File tree Expand file tree Collapse file tree 7 files changed +81
-0
lines changed Expand file tree Collapse file tree 7 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Python Package
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ # call-test:
12+ # uses: ./.github/workflows/test.yml
13+
14+ build :
15+ runs-on : ubuntu-latest
16+ # needs: [call-test]
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v2
21+ with :
22+ enable-cache : true
23+ # cache-dependency-glob: "uv.lock"
24+ - name : Set up Python 3.12
25+ uses : actions/setup-python@v5
26+ with :
27+ python-version : " 3.12"
28+ - name : Install dependencies
29+ run : uv sync --dev --python 3.12 --python-preference only-system
30+ - name : Build
31+ run : |
32+ uv build
33+ - name : Store the distribution packages
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : python-package-distribution
37+ path : dist/
38+
39+ deploy :
40+ runs-on : ubuntu-latest
41+ needs :
42+ - build
43+ environment : release
44+ permissions :
45+ id-token : write
46+ steps :
47+ - name : Download dist
48+ uses : actions/download-artifact@v4
49+ with :
50+ name : python-package-distribution
51+ path : dist/
52+ - name : Publish to PyPI
53+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1+ # Python-generated files
2+ __pycache__ /
3+ * .py [oc ]
4+ build /
5+ dist /
6+ wheels /
7+ * .egg-info
8+
9+ # Virtual environments
10+ .venv
Original file line number Diff line number Diff line change 1+ 3.10
Original file line number Diff line number Diff line change 1+ # langchain-mcp
2+
3+ Placeholder
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " langchain-mcp"
3+ version = " 0.0.0"
4+ description = " Placholder, coming soon"
5+ readme = " README.md"
6+ authors = [
7+ {
name =
" Andrew Wason" ,
email =
" [email protected] " }
8+ ]
9+ requires-python = " >=3.10"
10+ dependencies = []
11+
12+ [build-system ]
13+ requires = [" hatchling" ]
14+ build-backend = " hatchling.build"
You can’t perform that action at this time.
0 commit comments