FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-sdk/Makefile at package-scripts · openSUSE-Python/python-sdk · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
openSUSE-Python
/
python-sdk
Public
forked from
agentclientprotocol/python-sdk
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-sdk
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (49 loc) · 1.85 KB
Breadcrumbs
python-sdk
/
Makefile
Copy path
File metadata and controls
60 lines (49 loc) · 1.85 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY
: install
install
:
#
# Install the virtual environment and install the pre-commit hooks
@echo
"
🚀 Creating virtual environment using uv
"
@uv sync
@uv run prek install
.PHONY
: gen-all
gen-all
:
#
# Generate all code from schema
@echo
"
🚀 Generating all code
"
@uv run scripts/gen_all.py
@uv run ruff check --fix
@uv run ruff format
.
.PHONY
: check
check
:
#
# Run code quality tools.
@echo
"
🚀 Checking lock file consistency with 'pyproject.toml'
"
@uv lock --locked
@echo
"
🚀 Linting code: Running pre-commit via prek
"
@uv run prek run -a
@echo
"
🚀 Static type checking: Running ty
"
@uv run ty check --exclude
"
src/acp/meta.py
"
--exclude
"
src/acp/schema.py
"
--exclude
"
examples/*.py
"
@echo
"
🚀 Checking for obsolete dependencies: Running deptry
"
@uv run deptry src
.PHONY
: test
test
:
#
# Test the code with pytest
@echo
"
🚀 Testing code: Running pytest
"
@uv run python -m pytest --doctest-modules
.PHONY
: build
build
: clean-build
#
# Build wheel file
@echo
"
🚀 Creating wheel file
"
@uvx --from build pyproject-build --installer uv
.PHONY
: clean-build
clean-build
:
#
# Clean build artifacts
@echo
"
🚀 Removing build artifacts
"
@uv run python -c
"
import shutil; import os; shutil.rmtree('dist') if os.path.exists('dist') else None
"
.PHONY
: publish
publish
:
#
# Publish a release to PyPI.
@echo
"
🚀 Publishing.
"
@uvx twine upload --repository-url https://upload.pypi.org/legacy/ dist/
*
.PHONY
: build-and-publish
build-and-publish
: build publish
#
# Build and publish.
.PHONY
: docs-test
docs-test
:
#
# Test if documentation can be built without warnings or errors
@uv run mkdocs build -s
.PHONY
: docs
docs
:
#
# Build and serve the documentation
@uv run mkdocs serve
.PHONY
: help
help
:
@awk -F
'
##
'
'
/^[A-Za-z_-]+:.*##/ { target = $$1; sub(/:.*/, "", target); printf "\033[36m%-20s\033[0m %s\n", target, $$2 }
'
$(
MAKEFILE_LIST
)
.DEFAULT_GOAL
:= help
Back
|
FazBrowse Home
|
New Git URL