Skip to content

Commit c3a4900

Browse files
committed
build: fix pytest discovery on -e installation
1 parent 895578a commit c3a4900

12 files changed

Lines changed: 9 additions & 6 deletions

File tree

cookiecutter.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"project_name": "snake_case_project_name",
2+
"package_name": "package_name",
33
"author_name": "David Zhang",
44
"version": "0.1.0",
5-
"description": "Main goal of the project.",
5+
"description": "What's the main goal of this package?",
66
"python_version": "3.13",
77
"year": "2025"
88
}
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{cookiecutter.project_name}}
1+
# {{cookiecutter.package_name}}
22

33
{{cookiecutter.description}}
44

{{cookiecutter.project_name}}/pyproject.toml renamed to {{cookiecutter.package_name}}/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "{{cookiecutter.project_name}}"
2+
name = "{{cookiecutter.package_name}}"
33
version = "{{cookiecutter.version}}"
44
description = "{{cookiecutter.description}}"
55
authors = [
@@ -19,4 +19,7 @@ dev = [
1919

2020
[build-system]
2121
requires = ["uv_build>=0.8.14,<0.9.0"]
22-
build-backend = "uv_build"
22+
build-backend = "uv_build"
23+
24+
[tool.pytest.ini_options]
25+
pythonpath = ["src"]

{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/__init__.py renamed to {{cookiecutter.package_name}}/src/{{cookiecutter.package_name}}/__init__.py

File renamed without changes.

{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/add_one.py renamed to {{cookiecutter.package_name}}/src/{{cookiecutter.package_name}}/add_one.py

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)