This is a template on how to package a simple Python project
- Installation
- Setting Up Your Package
- Installing Dependencies
- Building Your Package
- Publishing to PyPI
To install the package in editable mode (ideal for development), follow these steps:
- Python 3.7 or higher
pip(ensure it's the latest version)setuptools42 or higher (for building the package)
First, clone the repository to your local machine:
git clone https://github.com/CaltechOpticalObservatories/gecko.git
cd geckoCreate a virtual environment for your package:
python -m venv venv
source venv/bin/activateMake sure setuptools and pip are up to date:
pip install --upgrade pip setuptools wheelTo install your package in editable mode for development, use the following command:
pip install -e .This will install the package, allowing you to edit it directly and have changes take effect immediately without reinstalling.
To install any optional dependencies, such as development dependencies, use:
pip install -e .[dev]Logs will have the path to any and all logs you would like to comb upon execution. This includes the system logs on more . This tool with comb the last 24 hours for ERRORS or WARNINGS assuming the log timestamps are formatted as
time_pattern = r"^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})"You can change this format the the source code if you are familiar with python. Example Log Path:
FAM_Logs = ~/LOGS/data/devices/FAM/FAM.logThis holds the information for your Linux system and version. -TODO: Implent cross platform utility legacy system compatability
Your VNC credentials and all of the sessions the engineers may want screenshots of.
host = "hostname.outlook.com"
password = "Hello_Sky"
vnc_sessions = 1,2,3,4Fill out contact information and path to report storage
Make sure your global python enviornment has all dependices and move executable into bin