diff --git a/.gitignore b/.gitignore index fc17fb8..adf0e8a 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ __pycache__/ .python-version /.venv/ /examples/fastapi/.venv/ +/.env diff --git a/basic_components/cli/__init__.py b/basic_components/cli/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/basic_components/cli.py b/basic_components/cli/components.py similarity index 100% rename from basic_components/cli.py rename to basic_components/cli/components.py diff --git a/pyproject.toml b/pyproject.toml index 743106f..09ad32f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] @@ -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", @@ -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" @@ -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", @@ -148,7 +140,3 @@ dist_path = "dist/" upload_to_pypi = true commit_message = "chore(release): {version} [skip ci]" - -[tool.basic-components] -components_dir = "components" -