From 92531d9ca671935211ed0352be1de16cd8298b39 Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 3 Apr 2024 13:44:24 +0200 Subject: [PATCH] commit remaining --- openeo_fastapi/cli.py | 21 +++++++++++++-------- pyproject.toml | 3 ++- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/openeo_fastapi/cli.py b/openeo_fastapi/cli.py index 46b2eed..ff9546a 100644 --- a/openeo_fastapi/cli.py +++ b/openeo_fastapi/cli.py @@ -84,22 +84,29 @@ def new(path): raise ValueError("Provided path does not exist.") else: path = Path(fs.get_mapper("").root) - + + openeo_dir = path / "openeo_api" + db_dir = openeo_dir / "psql" + init_file = openeo_dir / "__init__.py" + app_file = openeo_dir / "app.py" + revise_file = openeo_dir / "revise.py" + + + alembic_dir = db_dir / "alembic" + alembic_models = db_dir / "models.py" + alembic_ini = db_dir / "alembic.ini" + fs.mkdir(openeo_dir) - db_dir = openeo_dir / "psql" fs.mkdir(db_dir) - alembic_dir = db_dir / "alembic" fs.mkdir(alembic_dir) - - alembic_models = db_dir / "models.py" + fs.touch(alembic_models) with fs.open(alembic_models, 'w') as f: f.write(get_models_template()) - alembic_ini = db_dir / "alembic.ini" alembic_cfg = Config(alembic_ini) command.init( @@ -107,10 +114,8 @@ def new(path): directory=alembic_dir ) - init_file = openeo_dir / "__init__.py" fs.touch(init_file) - app_file = openeo_dir / "app.py" fs.touch(app_file) with fs.open(app_file, 'w') as f: f.write(get_app_template()) diff --git a/pyproject.toml b/pyproject.toml index c51a123..39e948f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openeo-fastapi" -version = "2024.3.2" +version = "2024.4.1" description = "FastApi implementation conforming to the OpenEO Api specification." authors = ["Sean Hoyal "] readme = "README.md" @@ -49,6 +49,7 @@ pytest-cov = "^4.0.0" pytest-asyncio = "^0.23.0" aioresponses = "^0.7.5" pytest-postgresql = ">=4.1.1" +sphinx = "7.2.6" [tool.poetry.scripts] openeo_fastapi = "openeo_fastapi.cli:cli"