Skip to content
Merged
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
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -43,6 +45,19 @@ jobs:
python -m pip install --upgrade build
python -m build --wheel

- name: Verify built version matches tag
shell: bash
run: |
set -euo pipefail
ls -la dist/
if ! ls dist/testbricks-${GITHUB_REF_NAME}-*.whl >/dev/null 2>&1; then
echo "::error::Expected wheel 'testbricks-${GITHUB_REF_NAME}-*.whl' not found in dist/."
echo "Built artifacts:"
ls dist/
exit 1
fi
echo "Verified: built wheel matches tag ${GITHUB_REF_NAME}"

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
6 changes: 3 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ echo "Building testbrick package..."
rm -rf build/ dist/ *.egg-info/

# Install build dependencies
pip install setuptools wheel twine
pip install build twine

# Build the package
python setup.py sdist bdist_wheel
# Build the package (sdist + wheel) via pyproject.toml
python -m build

# Publish to PyPI
echo "Publishing to PyPI..."
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "testbricks"
description = "A set of proxy objects to facilitate testing of Databricks notebooks in CI/CD pipelines"
dynamic = ["version"]
requires-python = ">=3.8"
authors = [
{name = "Karan Gupta", email = "gkaran184@gmail.com"},
]
dependencies = [
"pyspark",
"pandas",
"pyarrow",
"numpy",
"py4j",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
31 changes: 0 additions & 31 deletions setup.py

This file was deleted.

Loading