Skip to content

Commit

Permalink
Update folders
Browse files Browse the repository at this point in the history
Closes #98
  • Loading branch information
edwardtheharris committed Aug 29, 2024
1 parent 8544b8a commit 9f63a22
Show file tree
Hide file tree
Showing 21 changed files with 79 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ GNUPGHOME="$(pwd)/.gnupg"
HATCH_CACHE_DIR="$(pwd)/.hatch/cache"
HATCH_DATA_DIR="$(pwd)/.hatch/data"
HATCH_ENV="local"
HATCH_PROJECT="panegyric"
HATCH_VERBOSE=2
PIPENV_VENV_IN_PROJECT=1

export GNUPGHOME
export HATCH_CACHE_DIR
export HATCH_DATA_DIR
export HATCH_ENV
export HATCH_PROJECT
export HATCH_VERBOSE
export PIPENV_VENV_IN_PROJECT
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ build/
_build/
.gnupg/
.vscode/
.hatch/
File renamed without changes.
File renamed without changes.
File renamed without changes.
61 changes: 61 additions & 0 deletions panegyric/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "panegyric"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "Xander Harris", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = []

[project.urls]
Documentation = "https://github.com/edwardtheharris/panegyric#readme"
Issues = "https://github.com//panegyric/issues"
Source = "https://github.com/Xander Harris/panegyric"

[tool.hatch.version]
path = "src/panegyric/__about__.py"

[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/panegyric tests}"

[tool.coverage.run]
source_pkgs = ["panegyric", "tests"]
branch = true
parallel = true
omit = [
"src/panegyric/__about__.py",
]

[tool.coverage.paths]
panegyric = ["src/panegyric", "*/panegyric/src/panegyric"]
tests = ["tests", "*/panegyric/tests"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
File renamed without changes.
17 changes: 17 additions & 0 deletions panegyric/src/panegyric/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Metadata related to the panegyric project."""
# SPDX-FileCopyrightText: 2024-present Xander Harris <[email protected]>
#
# SPDX-License-Identifier: MIT
from pathlib import Path

import version_query

def get_version():
"""Return the most recent version of the project."""
try:
ret_value = version_query.query_folder(Path('.'))
except ValueError:
ret_value = version_query.Version.from_str('0.0.1')
return ret_value

__version__ = get_version()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions src/panegyric/__about__.py

This file was deleted.

0 comments on commit 9f63a22

Please sign in to comment.