Skip to content

miragecentury/python_factory

Repository files navigation

python-poetry-empty

Project Empty for Python with Poetry

Setup

Dev Tools

Python

https://www.python.org/downloads/

sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12 -y

Poetry

https://python-poetry.org/

curl -sSL https://install.python-poetry.org | python3.12 -

Pre-commit

Included in the project while in virtual environment https://pre-commit.com/

Docker

https://docs.docker.com/get-docker/

Skaffold

https://skaffold.dev

curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
chmod +x skaffold
sudo mv skaffold /usr/local/bin

Buildpacks

https://buildpacks.io/

sudo add-apt-repository ppa:cncf-buildpacks/pack-cli
sudo apt-get update
sudo apt-get install pack-cli

Paketo

Included with the usage of buildpacks https://paketo.io/

Portman

npm install -g @apideck/portman

1- Dev Environment

# Initialize python virtual environment and install dependencies
./scripts/setup_dev_env.sh

pre-commit run --all-files

2- Build and Run Application on Docker

./scripts/dev-in-container.sh
./scripts/test_portman.sh

About

Consolidated Stack for python (micro)service

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published