Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail # fail on error, missing vars, or pipe fails

echo "▶ Cleaning previous artefacts (if any)…"
for dir in dist build; do
if [[ -d "$dir" ]]; then
echo " • Removing $dir"
rm -rf "$dir"
fi
done

shopt -s nullglob # *.egg-info expands to empty list if none
for egg in *.egg-info; do
echo " • Removing $egg"
rm -rf "$egg"
done
shopt -u nullglob # restore default

echo "▶ Building package…"
python -m build

echo "▶ Uploading to PyPI…"
twine upload dist/*
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[project]
name="hydra-server"
description="A JSON RPC web server to interact with the Hydra Platform Base Libary"

Copilot AI Jun 26, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typo in the description: 'Libary' should be 'Library'.

Suggested change
description="A JSON RPC web server to interact with the Hydra Platform Base Libary"
description="A JSON RPC web server to interact with the Hydra Platform Base Library"

Copilot uses AI. Check for mistakes.
readme="README.rst"
dynamic = ["version"]
authors = [
{name = "Stephen Knox", email = "knoxsp@gmail.com"},
]
requires-python=">=3.10"
license-files = ["LICENSE"]
dependencies=[
"spyne >= 2.13.2-alpha",
"hydra-base",
"lxml",
"click"
]


[project.urls]
Documentation="https://hydraplatform.org"
Repository="https://github.com/hydraplatform/hydra-server"

[build-system]
requires = ["setuptools>=77", "setuptools_scm", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"

[project.scripts]
hydra-server = "hydra_server.cli:start_cli"
58 changes: 0 additions & 58 deletions setup.py

This file was deleted.