Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ cython_debug/

.DS_Store

.vscode
59 changes: 59 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
PACKAGE_NAME = solar-apparent-time
ENVIRONMENT_NAME = $(PACKAGE_NAME)
DOCKER_IMAGE_NAME = $(PACKAGE_NAME)

clean:
rm -rf *.o *.out *.log
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
find . -type d -name "__pycache__" -exec rm -rf {} +

test:
pytest

build:
python -m build

twine-upload:
twine upload dist/*

dist:
make clean
make build
make twine-upload

remove-environment:
mamba env remove -y -n $(ENVIRONMENT_NAME)

install:
pip install -e .[dev]

uninstall:
pip uninstall $(PACKAGE_NAME)

reinstall:
make uninstall
make install

environment:
mamba create -y -n $(ENVIRONMENT_NAME) -c conda-forge python=3.10

colima-start:
colima start -m 16 -a x86_64 -d 100

docker-build:
docker build -t $(DOCKER_IMAGE_NAME):latest .

docker-build-environment:
docker build --target environment -t $(DOCKER_IMAGE_NAME):latest .

docker-build-installation:
docker build --target installation -t $(DOCKER_IMAGE_NAME):latest .

docker-interactive:
docker run -it $(DOCKER_IMAGE_NAME) fish

docker-remove:
docker rmi -f $(DOCKER_IMAGE_NAME)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=60", "setuptools-scm>=8.0", "wheel"]

[project]
name = "solar-apparent-time"
version = "1.3.2"
version = "1.4.0"
description = "methods to translate Python datetime between solar apparent time and Coordinate Universal Time (UTC)"
readme = "README.md"
authors = [
Expand Down
7 changes: 1 addition & 6 deletions solar_apparent_time/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
from .solar_apparent_time import *
from .version import __version__

from os.path import join, dirname, abspath

with open(join(abspath(dirname(__file__)), "version.txt")) as f:
version = f.read()

__version__ = version
__author__ = "Gregory H. Halverson"
Loading
Loading