From 39520934bcf057cc4654b7de1f48462226911ed1 Mon Sep 17 00:00:00 2001 From: Alex Christy Date: Mon, 25 Nov 2024 16:48:31 -0500 Subject: [PATCH] Validate hatch version --- .github/workflows/publish.yml | 8 ++++---- README.md | 1 + test-requirements.txt | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2340f3d..fae4f39 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,10 +20,6 @@ jobs: ref: main fetch-depth: 0 - # Verify the version - - name: Verify version - run: hatch version - # Set up Python - name: Set up Python uses: actions/setup-python@v5 @@ -36,6 +32,10 @@ jobs: pip install --upgrade pip pip install -r requirements.txt pip install -r test-requirements.txt + + # Verify the version + - name: Verify version + run: hatch version # Build packages - name: Build package distributions diff --git a/README.md b/README.md index 212e3ef..8fe6eaf 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Auto Release](https://img.shields.io/badge/release-auto.svg?colorA=888888&colorB=9B065A&label=auto)](https://github.com/intuit/auto) [![CI](https://github.com/alexchristy/PyOPN/actions/workflows/ci.yml/badge.svg)](https://github.com/alexchristy/PyOPN/actions) +[![PyPI version](https://badge.fury.io/py/pyopn.svg)](https://badge.fury.io/py/pyopn) A simple Python wrapper for the OPNsense REST API. diff --git a/test-requirements.txt b/test-requirements.txt index 36cc5f9..5c52fe4 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,4 +11,5 @@ black~=23.0 ruff>=0.8.0 pytest>=8.3.3 pre-commit>=4.0.1 -build>=1.2.2 \ No newline at end of file +build>=1.2.2 +hatch>=1.13.0 \ No newline at end of file