Skip to content

Commit 7fc49f2

Browse files
author
phernandez
committed
refactor: adjust project configuration and file structure
Move dependencies and script definitions in pyproject.toml for better structure. Rename and relocate cli.py to components.py to improve clarity. Update .gitignore to include .env files.
1 parent 3aa76c8 commit 7fc49f2

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ __pycache__/
2828
.python-version
2929
/.venv/
3030
/examples/fastapi/.venv/
31+
/.env

basic_components/cli/__init__.py

Whitespace-only changes.

pyproject.toml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ dependencies = [
4646
"copier>=9.4.1",
4747
"typer>=0.9.0",
4848
"rich>=13.7.0",
49+
"tomli>=2.0.2",
50+
"tomli-w>=1.1.0",
4951
]
5052

5153
[project.license]
@@ -80,8 +82,6 @@ docs = [
8082
"pymdown-extensions>=10.12",
8183
"setuptools>=75.5.0",
8284
"copier>=9.4.1",
83-
"tomli>=2.0.2",
84-
"tomli-w>=1.1.0",
8585
]
8686
dev = [
8787
"black>=24.1.0",
@@ -97,7 +97,7 @@ full = [
9797
]
9898

9999
[project.scripts]
100-
components = "basic_components.cli:app"
100+
components = "basic_components.cli.components:app"
101101

102102
[project.urls]
103103
Homepage = "https://github.com/basicmachines-co/basic-components"
@@ -118,14 +118,6 @@ include = [
118118
"basic_components/component_dependencies.toml",
119119
]
120120

121-
[tool.hatch.build.targets.wheel]
122-
packages = [
123-
"basic_components",
124-
]
125-
126-
[tool.hatch.build.targets.wheel.scripts]
127-
components = "basic_components.cli:app"
128-
129121
[tool.pytest.ini_options]
130122
testpaths = [
131123
"tests",
@@ -148,7 +140,3 @@ dist_path = "dist/"
148140
upload_to_pypi = true
149141
commit_message = "chore(release): {version} [skip ci]"
150142

151-
152-
[tool.basic-components]
153-
components_dir = "components"
154-

0 commit comments

Comments
 (0)