Skip to content

Commit

Permalink
refactor: adjust project configuration and file structure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phernandez committed Nov 17, 2024
1 parent 3aa76c8 commit 7fc49f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ __pycache__/
.python-version
/.venv/
/examples/fastapi/.venv/
/.env
Empty file.
File renamed without changes.
18 changes: 3 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ dependencies = [
"copier>=9.4.1",
"typer>=0.9.0",
"rich>=13.7.0",
"tomli>=2.0.2",
"tomli-w>=1.1.0",
]

[project.license]
Expand Down Expand Up @@ -80,8 +82,6 @@ docs = [
"pymdown-extensions>=10.12",
"setuptools>=75.5.0",
"copier>=9.4.1",
"tomli>=2.0.2",
"tomli-w>=1.1.0",
]
dev = [
"black>=24.1.0",
Expand All @@ -97,7 +97,7 @@ full = [
]

[project.scripts]
components = "basic_components.cli:app"
components = "basic_components.cli.components:app"

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

[tool.hatch.build.targets.wheel]
packages = [
"basic_components",
]

[tool.hatch.build.targets.wheel.scripts]
components = "basic_components.cli:app"

[tool.pytest.ini_options]
testpaths = [
"tests",
Expand All @@ -148,7 +140,3 @@ dist_path = "dist/"
upload_to_pypi = true
commit_message = "chore(release): {version} [skip ci]"


[tool.basic-components]
components_dir = "components"

0 comments on commit 7fc49f2

Please sign in to comment.