Skip to content

Commit

Permalink
chore: deps management (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich authored Jul 25, 2024
1 parent 369476f commit 97239d3
Show file tree
Hide file tree
Showing 4 changed files with 1,118 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
default: help

.PHONY: help
help:
@echo "\nUsage: make [target] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
@echo "Available targets:\n"

@echo "Environment Management --------------------------------------------------------"
@echo " \033[1m\033[35mclean-venv\033[0m \033[37m(cv)\033[0m: \033[36mRemove virtual environment.\033[0m"
@echo " \033[1m\033[35minstall\033[0m \033[37m(i)\033[0m: \033[36mInstall dependencies and {{ cookiecutter.project_slug }}.\033[0m"
@echo " \033[1m\033[35mvenv\033[0m \033[37m(v)\033[0m: \033[36mCreate virtual environment.\033[0m\n"

@echo "Documentation -----------------------------------------------------------------"
@echo " \033[1m\033[35mdocs\033[0m \033[37m(d)\033[0m: \033[36mGenerate project documentation.\033[0m\n"

.PHONY: clean-venv
clean-venv:
@echo "\nRemoving the virtual environment ++++++++++++++++++++++++++++++++++++++++++++++\n"
@rm -rf .venv

.PHONY: cv
cv: clean-venv

.PHONY: docs
docs:
@echo "\nGenerating project documentation ++++++++++++++++++++++++++++++++++++++++++++++\n"
@mkdocs build

.PHONY: d
d: docs

.PHONY: install
install:
@echo "\nInstalling dependencies and with this package +++++++++++++++++++++++++++++++++\n"
@poetry install --no-root

.PHONY: i
i: install

.PHONY: venv
venv:
@echo "\nCreating a virtual environment ++++++++++++++++++++++++++++++++++++++++++++++++\n"
@python -m venv .venv
@echo "\nSummary +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
@echo "Virtual environment created successfully."
@echo "To activate the environment for this shell session, run:"
@echo "source .venv/bin/activate"

.PHONY: v
v: venv
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Documentation Hub

Documentation for ELIXIR Cloud & AAI project.

## Development

For ease, certain scripts have been abbreviated in `Makefile`, make sure that
you have installed the dependencies before running the commands.

> **Note**: `make` commands are only available for Unix-based systems.
To view the commands available, run:

```sh
make
```

Here are some commands that you might find useful:

- Making a virtual environment

```sh
make v
```

- Installing dependencies

```sh
make i
```
Loading

0 comments on commit 97239d3

Please sign in to comment.