Skip to content

Commit

Permalink
Add release targets
Browse files Browse the repository at this point in the history
  • Loading branch information
augray committed Aug 28, 2024
1 parent 09fdd61 commit 5b96a0b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ PY_VERSION := "3.11"
wheel:
uvx pip wheel -w dist .

.PHONY: test-release
test-release: wheel
uvx twine check dist/*airtrain*.whl
uvx twine upload --repository testpypi dist/*airtrain*.whl

.PHONY: release
test-release: wheel
uvx twine check dist/*airtrain*.whl
uvx twine upload dist/*airtrain*.whl

.PHONY: py-prep
py-prep:
uv --version || curl -LsSf https://astral.sh/uv/install.sh | sh
Expand All @@ -14,12 +24,10 @@ py-prep:
uv tool install --force ruff==0.6.1
uv add --editable .


.PHONY: sync
sync:
uv sync


.PHONY: fix
fix:
uvx ruff format
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<a href="https://docs.python.org/3.12/" target="_blank">
<img height="30px" src="https://img.shields.io/badge/Python-3.12-blue?style=for-the-badge&logo=python" alt="Python Version">
</a>
<a href="https://github.com/sematic-ai/py-airtrain/actions/workflows/ci.yaml?query=branch%3Amain+" target="_blank">
<img height="30px" src="https://github.com/sematic-ai/py-airtrain/actions/workflows/ci.yaml/badge.svg?branch=main" alt="CI status">
</a>
</p>


Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ dependencies = [
"airtrain",
]

classifiers = [
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[tool.uv]
dev-dependencies = [
"mypy==1.11.1",
Expand Down

0 comments on commit 5b96a0b

Please sign in to comment.