dynamic version test

This commit is contained in:
truePhilipp committed 2024-05-11 01:18:00 +02:00
1 parent eef7756e5b
commit a274f53b6e
3 files changed
+34 -4

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
name: Deploy
on:
push:
branches:
- 'main'
tags:
- 'v*.*.*'
pull_request:
branches:
- 'main'
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: pip install ".[dev]"
- name: Build on Python ${{ matrix.python-version }}
run: hatch build
-1
View File
@@ -1 +0,0 @@
__version__ = "0.0.1"
+4 -3
View File
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
@@ -29,7 +29,8 @@ test = [
"pycodestyle==2.11.1"
]
dev = [
"hatch==1.10.0"
"hatch==1.10.0",
"hatch-vcs==0.4.0"
]
[project.urls]
@@ -41,4 +42,4 @@ html_to_django = "html_to_django.converter:command_entry"
html_to_django_r = "html_to_django.converter:command_entry_r"
[tool.hatch.version]
path = "html_to_django/__about__.py"
source = "vcs"