Library of utilities related to astronomical movements
This module provides information about the sun, moon, seasons and tides according to the user's current whereabouts.
To install run from inside the directory:
git clone git@gitlab.com:TheOrganist24/astronomical.git
cd astronomical
make
make install
astronomical --versionYou can set up an optional location, if you don't it'll default to London.
# ~/.astronomical
[location]
name = "London"
longitude = 0.1276
latitude = 51.5072
[sleep]
sleep = 28800
earliest_wake_up = 07:00:00
latest_wake_up = 06:00:00
ablutions = 3600
For more options look at Test Config.
See Logging.
git clone git@gitlab.com:TheOrganist24/astronomical.git
cd astronomical
git checkout development
make dev
export LOG_LEVEL=INFO # Optional; supports TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL
poetry run astronomical --version- Review TODO list
- Work off
developmentbranch - Refresh environment
make fresh - Design feature using TODO list and/or diagram (
DOCS:commit) - Write tests* (
TEST:commit) - Change or add code (
FUNC:commit) - Update TODO list versioning and transfer completed items to CHANGELOG
- Version bump
- Merge to
main - Tag
git tag -s $(cat VERSION)
Semantic versioning is used:
poetry version <major/minor/patch>
poetry version --short > VERSION
Also don't forget to update the package __init__.py and package tests.
Code should be compliant with PEPs 8, 256, 484, and 526.
make check # calls `make lint; make test`
