Update to hatch-gradle-version 0.6.0

This commit is contained in:
object-Object 2023-09-02 15:02:24 -04:00
parent c36138a6db
commit cbadf511b0
7 changed files with 10 additions and 14 deletions

6
.gitignore vendored
View file

@ -1,3 +1,8 @@
# hexdoc
doc/**/_export/generated/
_site/
__gradle_version__.py
# eclipse
bin
*.launch
@ -29,7 +34,6 @@ plot/
# Python
/_site/
# Byte-compiled / optimized / DLL files
__pycache__/

1
doc/.gitignore vendored
View file

@ -1 +0,0 @@
/src/hexdoc/_export/generated/

View file

@ -1,10 +1,4 @@
# This file is auto-generated by hatch-gradle-version.
# Only the value of PY_VERSION is editable.
# All changes to other values will be ignored and overwritten.
# Only the value of PY_VERSION is editable. Do not edit other values.
PY_VERSION = "1.0.dev0"
# Everything below this line is completely auto-generated.
GRADLE_VERSION = "0.11.1-7"
FULL_VERSION = "0.11.1.1.0rc7.dev0"

View file

@ -19,7 +19,7 @@ from hexdoc.utils import HexdocModel, ModResourceLoader, Properties
from hexdoc.utils.cd import cd
from hexdoc.utils.path import write_to_path
from .__version__ import GRADLE_VERSION
from .__gradle_version__ import GRADLE_VERSION
from .utils.jinja_extensions import IncludeRawExtension, hexdoc_block, hexdoc_wrap
MARKER_NAME = ".sitemap-marker.json"
@ -221,7 +221,6 @@ def main(args: Args | None = None) -> None:
if args.is_release:
# root should be the latest released version
versions.append(GRADLE_VERSION)
if args.update_latest:
versions.append("")

View file

@ -2,7 +2,7 @@ from enum import Enum
from functools import total_ordering
from typing import Any, Callable, Self
from hexdoc.__version__ import GRADLE_VERSION
from hexdoc.__gradle_version__ import GRADLE_VERSION
@total_ordering

View file

@ -9,7 +9,7 @@ from typing import Callable, Literal, Self, TypeVar, overload
from pydantic.dataclasses import dataclass
from hexdoc.__version__ import GRADLE_VERSION
from hexdoc.__gradle_version__ import GRADLE_VERSION
from hexdoc.utils.deserialize import JSONDict, decode_json_dict
from hexdoc.utils.model import DEFAULT_CONFIG, HexdocModel, ValidationContext
from hexdoc.utils.path import strip_suffixes, write_to_path

View file

@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling", "hatch-gradle-version>=0.5.0"]
requires = ["hatchling", "hatch-gradle-version>=0.6.0"]
build-backend = "hatchling.build"
# project metadata