Skip to content

Commit 9cc6de7

Browse files
committed
feat: Update to PEP 639 and enable publish
Signed-off-by: Helio Chissini de Castro <helio.chissini.de.castro@cariad.technology>
1 parent de34110 commit 9cc6de7

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
- name: Publish Test 📦 package
5757
if: github.event_name == 'push'
5858
env:
59-
UV_PUBLISH_USERNAME: ${{ vars.TEST_PYPI_USERNAME }}
60-
UV_PUBLISH_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
59+
UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
6160
run: |
62-
uv publish --index testpypi dist/*
61+
uv publish --publish-url https://test.pypi.org/legacy/ dist/*

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[tool.hatch.build.targets.wheel]
6+
packages = ["src/ort"]
7+
18
[project]
29
name = "python-ort"
3-
version = "0.1.0"
10+
version = "0.1.1"
411
description = "A Python Ort model serialization library"
512
readme = "README.md"
13+
license = "MIT"
14+
license-files = ["LICENSE"]
615
requires-python = ">=3.10"
716
dependencies = [
817
"pydantic>=2.10.6",
918
"pyyaml>=6.0.2",
1019
]
1120
classifiers = [
1221
"Development Status :: 3 - Alpha",
13-
"License :: OSI Approved :: MIT License",
1422
"Operating System :: OS Independent",
1523
"Programming Language :: Python :: 3 :: Only",
1624
"Programming Language :: Python :: 3.10",

tests/test_ort_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pathlib import Path
44

5-
from ort import OrtConfiguration, Scanner, Severity, Storages
5+
from ort import OrtConfiguration, Scanner, Severity
66

77
CONFIG_PATH = Path(__file__).parent / "data" / "ort_config_reference.yml"
88

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)