Skip to content

Commit

Permalink
fix: try to make railway happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Oct 9, 2024
1 parent 49c40b6 commit 3a29068
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "byte-bot"
dynamic = ['version']
version = "0.2.0"
description = "Byte is a bot destined to serve in developer-oriented servers."
authors = [
{ name = "Jacob Coffee", email = "jacob@z7x.org" },
Expand Down Expand Up @@ -60,9 +60,6 @@ build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.version]
path = 'src/__metadata__.py'

[tool.hatch.build]
dev-mode-dirs = ["src/", "."]
packages = ["src/", "."]
Expand Down
14 changes: 10 additions & 4 deletions src/__metadata__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
"""Source of truth for project metadata."""

__version__ = "0.2.0"
"""Project version."""
__project__ = "byte-bot"
"""Project name."""
from __future__ import annotations

import importlib.metadata

__all__ = ("__version__", "__project__")

__version__ = importlib.metadata.version("byte-bot")
"""Version of the app."""
__project__ = importlib.metadata.metadata("byte-bot")["Name"]
"""Name of the app."""

0 comments on commit 3a29068

Please sign in to comment.