Skip to content

Commit 670500a

Browse files
committed
adjust structure
1 parent a65ab4b commit 670500a

File tree

9 files changed

+85
-20
lines changed

9 files changed

+85
-20
lines changed

.github/workflows/release.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
# This is a manual workflow for releasing new version of the package.
4+
#
5+
# It will:
6+
# - Build the distribution
7+
# - Publish it to PyPI
8+
# - Create a new release on GitHub
9+
#
10+
# The version (and tag) of the release is determined by the version in the
11+
# `pyproject.toml` file.
12+
on:
13+
workflow_dispatch:
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
19+
permissions:
20+
contents: write # Required for making the Release
21+
id-token: write # Required for PyPI Trusted Publishing
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: astral-sh/setup-uv@v5
26+
with:
27+
version: "0.6.x"
28+
29+
- name: Build distribution
30+
run: uv build
31+
32+
- name: Publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
skip-existing: true
36+
verbose: true
37+
38+
- name: Create GitHub Release
39+
env:
40+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: |
42+
VERSION=$(uv run udi-grammar-py version --output-format=json | jq -r '.version')
43+
gh release create v$VERSION
44+
git fetch --tags
45+
awk '/^## / {if (p++) exit} p && NR > 2' CHANGELOG.md > release-notes.md
46+
uvx --from 'rooster-blue>=0.0.9' rooster contributors --version=v$VERSION --quiet >> release-notes.md
47+
gh release edit v$VERSION --notes-file release-notes.md
File renamed without changes.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# udi-grammar-py
2-
Python code for generating udi-grammar specifications.
2+
3+
Python code for generating Universal Discovery Interface (UDI) specifications.

pyproject.toml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[project]
2+
name = "udi-grammar-py"
3+
version = "0.1.0"
4+
description = "A python library for creating udi-grammar specifications"
5+
readme = "README.md"
6+
authors = [
7+
{ name = "Devin Lange", email = "devinscottlange@gmail.com" }
8+
]
9+
requires-python = ">=3.8"
10+
license = { text = "MIT" }
11+
classifiers = [
12+
"Environment :: Console",
13+
"Intended Audience :: Developers",
14+
"Operating System :: OS Independent",
15+
"License :: OSI Approved :: MIT License",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Programming Language :: Python :: 3 :: Only",
24+
]
25+
26+
[build-system]
27+
requires = ["hatchling"]
28+
build-backend = "hatchling.build"

udi-grammar-py/README.md

-3
This file was deleted.

udi-grammar-py/pyproject.toml

-14
This file was deleted.

udi-grammar-py/src/udi_grammar_py/__init__.py

-2
This file was deleted.

udi-grammar-py/src/udi_grammar_py/py.typed

Whitespace-only changes.

uv.lock

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)