Skip to content

Commit be63241

Browse files
authored
Fix import path for version module (#9)
2 parents a94e524 + a9e2f90 commit be63241

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ venv:
5757

5858
.PHONY: upgrade-pip ## Upgrades pip.
5959
upgrade-pip:
60-
python -m pip install -U pip
60+
python -m pip install pip==25.2
6161

6262
.PHONY: install-test ## Install and only test dependencies.
6363
install-test: upgrade-pip

docker-compose.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
services:
22
gcloud:
33
image: google/cloud-sdk:latest
4+
platform: linux/amd64
45
volumes:
5-
- "gcp:/root/.config/"
6+
- 'gcp:/root/.config/'
67
entrypoint: gcloud
78

89
dev:
910
build:
1011
context: .
1112
target: dev
13+
platform: linux/amd64
1214
volumes:
13-
- ".:/opt/project"
14-
- "gcp:/root/.config/"
15+
- '.:/opt/project'
16+
- 'gcp:/root/.config/'
1517
entrypoint: /bin/bash
1618

1719
test:
20+
platform: linux/amd64
1821
# Runs tests using the production Docker image.
1922
# Intended to be executed in the GitHub CI environment.
2023
build:
2124
context: .
2225
target: test
23-
entrypoint: "pytest -v"
26+
entrypoint: 'pytest -v'
2427
volumes:
2528
gcp:
2629
external: true

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ classifiers = [
3333
requires-python = ">= 3.9"
3434
dependencies = [
3535
"pyyaml~=6.0",
36-
"rich~=13.9",
36+
"rich~=14.0",
3737
"rich-argparse~=1.6",
3838
]
3939

@@ -63,7 +63,7 @@ lint = [
6363
# Development workflow and tools
6464
dev = [
6565
"pre-commit~=4.2", # Framework for managing pre-commit hooks.
66-
"pip-tools~=7.0", # Freezing dependencies for production containers.
66+
"pip-tools>=7.4,<8.0", # Compatible with pip 24+, fixes use_pep517 AttributeError.
6767
"pip-audit~=2.8", # Audit for finding vulnerabilities in dependencies.
6868
]
6969

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
#
55
# pip-compile --output-file=requirements.txt
66
#
7-
markdown-it-py==3.0.0
7+
markdown-it-py==4.0.0
88
# via rich
99
mdurl==0.1.2
1010
# via markdown-it-py
11-
pygments==2.19.1
11+
pygments==2.19.2
1212
# via rich
13-
pyyaml==6.0.2
13+
pyyaml==6.0.3
1414
# via python-app-template (setup.py)
15-
rich==13.9.4
15+
rich==14.2.0
1616
# via
1717
# python-app-template (setup.py)
1818
# rich-argparse
19-
rich-argparse==1.7.0
19+
rich-argparse==1.7.2
2020
# via python-app-template (setup.py)

src/python_app_template/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import logging
33

4-
from .version import __version__
4+
from ..version import __version__
55

66
logging.basicConfig(level=logging.INFO)
77
logger = logging.getLogger(__name__)

tests/cli/test_main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from python_app_template.cli.main import main
2+
3+
4+
def test_main():
5+
main()

0 commit comments

Comments
 (0)