Skip to content

Commit 74629d3

Browse files
⬆️ [upgraded_dependency] Upgraded the copier-UvScaffolding dependency (#19)
2 parents bbf03cc + 34a2813 commit 74629d3

File tree

8 files changed

+163
-149
lines changed

8 files changed

+163
-149
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# available at https://github.com/gt-sse-center/copier-UvScaffolding.
77
#
88

9-
_commit: v0.2.4
9+
_commit: v0.3.4
1010
_src_path: .
1111
author_email: github@DavidBrownell.com
1212
author_name: David Brownell

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If applicable, add screenshots to help explain your problem.
2626
## Environment (please complete the following information):
2727
- OS: [e.g. iOS]
2828
- Python Version: [e.g. 3.13, 3.12, 3.11, etc.]
29-
- dbrownell_DevTools Version [e.g. 1.2.3]
29+
- FileBackup Version [e.g. 1.2.3]
3030

3131
## Additional context
3232
Add any other context about the problem here.

.github/workflows/CICD_impl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
run: uv sync --frozen
162162

163163
- name: Update Version
164-
run: uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/FileBackup/__init__.py ./src --verbose
164+
run: uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./pyproject.toml ./src --verbose
165165

166166
- name: Build Python Package
167167
run: uv build

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| Static Code Analysis | `uv run ruff check` | Validate source code using [ruff](https://github.com/astral-sh/ruff) based on settings in `pyproject.toml`. | :white_check_mark: | :white_check_mark: (via [pre-commit](https://pre-commit.com/)) |
1818
| Run pre-commit scripts | `uv run pre-commit run` | Run [pre-commit](https://pre-commit.com/) scripts based on settings in `.pre-commit-config.yaml`. | :white_check_mark: | :white_check_mark: |
1919
| Automated Testing | `uv run pytest` or<br/>`uv run pytest --no-cov` | Run automated tests using [pytest](https://docs.pytest.org/) and extract code coverage using [coverage](https://coverage.readthedocs.io/) based on settings in `pyproject.toml`. | :white_check_mark: | :white_check_mark: |
20-
| Semantic Version Generation | `uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/FileBackup/__init__.py ./src` | Generate a new [Semantic Version](https://semver.org/) based on git commits using [AutoGitSemVer](https://github.com/davidbrownell/AutoGitSemVer). Version information is stored in `./src/FileBackup/__init__.py`. | | :white_check_mark: |
20+
| Semantic Version Generation | `uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./pyproject.toml ./src` | Generate a new [Semantic Version](https://semver.org/) based on git commits using [AutoGitSemVer](https://github.com/davidbrownell/AutoGitSemVer). Version information is stored in `pyproject.toml`. | | :white_check_mark: |
2121
| Python Package Creation | `uv build` | Create a python package using [uv](https://github.com/astral-sh/uv) based on settings in `pyproject.toml`. Generated packages will be written to `./dist`. | | :white_check_mark: |
2222
| Sign Artifacts | `uv run python -c "import minisign; minisign.SecretKey.from_file(<temp_filename>).sign_file(<filename>, trusted_comment='<package_name> v<package_version>', drop_signature=True)` | Signs artifacts using [py-minisign](https://github.com/x13a/py-minisign). Note that the private key is stored as a [GitHub secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions). | | :white_check_mark: |
2323
| Python Package Publishing | `uv publish` | Publish a python package to [PyPi](https://pypi.org/) using [uv](https://github.com/astral-sh/uv) based on settings in `pyproject.toml`. | | :white_check_mark: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Package:**
55
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/FileBackup?color=dark-green)](https://pypi.org/project/FileBackup/)
66
[![PyPI - Version](https://img.shields.io/pypi/v/FileBackup?color=dark-green)](https://pypi.org/project/FileBackup/)
7-
[![PyPI - Downloads](https://img.shields.io/pypi/dm/FileBackup)](https://pypistats.org/packages/FileBackup)
7+
[![PyPI - Downloads](https://img.shields.io/pypi/dm/FileBackup)](https://pypistats.org/packages/filebackup)
88

99
**Development:**
1010
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)

pyproject.toml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
[project]
22
name = "FileBackup"
3+
version = "0.0.0"
4+
# ^^^^^
5+
# Wheel names will be generated according to this value. Do not manually modify this value; instead
6+
# update it according to committed changes by running this command from the root of the repository:
7+
#
8+
# uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./pyproject.toml ./src
9+
310
description = "Tool for creating and restoring file system backups."
411
readme = "README.md"
512
authors = [
@@ -11,7 +18,6 @@ dependencies = [
1118
"paramiko>=3.5.1",
1219
"typer>=0.15.3",
1320
]
14-
dynamic = ["version"]
1521

1622
keywords = [
1723
"backup",
@@ -53,12 +59,12 @@ FileBackup = "FileBackup.CommandLine:EntryPoint.app"
5359
file_backup = "FileBackup.CommandLine:EntryPoint.app"
5460

5561
[build-system]
56-
requires = ["hatchling"]
57-
build-backend = "hatchling.build"
62+
requires = ["uv_build>=0.8.15,<0.9.0"]
63+
build-backend = "uv_build"
5864

5965
[dependency-groups]
6066
dev = [
61-
"autogitsemver>=0.8.4",
67+
"autogitsemver>=0.9.2",
6268
"cx-freeze>=8.3.0",
6369
"dbrownell-commitemojis>=0.1.4",
6470
"pre-commit>=4.2.0",
@@ -68,9 +74,6 @@ dev = [
6874
"ruff>=0.12.3",
6975
]
7076

71-
[tool.hatch.version]
72-
path = "src/FileBackup/__init__.py"
73-
7477
[tool.pytest.ini_options]
7578
addopts = "--verbose -vv --capture=no --cov=FileBackup --cov-report term --cov-report xml:coverage.xml --cov-fail-under=85.0"
7679
python_files = [
@@ -113,3 +116,6 @@ max-complexity = 15
113116
max-args = 10
114117
max-branches = 20
115118
max-returns = 20
119+
120+
[tool.uv.build-backend]
121+
module-name = "FileBackup"

src/FileBackup/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# noqa: D104
22

3-
# Wheel names will be generated according to this value. Do not manually modify this value; instead
4-
# update it according to committed changes by running this command from the root of the repository:
5-
#
6-
# uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/FileBackup/__init__.py ./src
7-
#
8-
__version__ = "0.1.0"
3+
from importlib.metadata import version
4+
5+
6+
__version__ = version("FileBackup")

0 commit comments

Comments
 (0)