Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 618 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 618 Bytes

Python Packaging Sample Code

This repo contains sample code demonstrating Python packaging.

Setup

App setup

This compiles and installs the library so the app can be run. The library is installed in editable mode (pip install -e ../mylib).

cd myapp
python -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt -r dev-requirements.txt

Library development setup

cd mylib
python -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt -r dev-requirements.txt

Running the app

Setup, then:

cd myapp
. ./venv/bin/activate
python main.py