Skip to content

Commit

Permalink
Rebranding (2) (#2)
Browse files Browse the repository at this point in the history
Prepare for initial release
  • Loading branch information
s-m-e committed Dec 21, 2023
1 parent 1e51b87 commit ac728ac
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

.ipynb_checkpoints
*/.ipynb_checkpoints/*
.virtual_documents
*/.virtual_documents/*

# IPython
profile_default/
Expand Down
31 changes: 30 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
DOCKER_BASE_IMAGE := "hapsira:dev"
DOCKER_CONTAINER_NAME := "hapsira-dev"

_clean_coverage:
coverage erase

_clean_py:
find src/ tests/ contrib/ -name '*.pyc' -exec rm -f {} +
find src/ tests/ contrib/ -name '*.pyo' -exec rm -f {} +
find src/ tests/ contrib/ -name '*~' -exec rm -f {} +
find src/ tests/ contrib/ -name '__pycache__' -exec rm -fr {} +

_clean_release:
-rm -r build/*
-rm -r dist/*

clean:
make _clean_release
make _clean_coverage
make _clean_py

docs:
tox -e docs

Expand All @@ -19,4 +37,15 @@ docker:
${DOCKER_BASE_IMAGE} \
bash

.PHONY: docs docker image
release:
make clean
flit build
gpg --detach-sign -a dist/hapsira*.whl
gpg --detach-sign -a dist/hapsira*.tar.gz

upload:
for filename in $$(ls dist/*.tar.gz dist/*.whl) ; do \
twine upload $$filename $$filename.asc ; \
done

.PHONY: docs docker image release upload
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ For other installation methods, see the [alternative installation methods](https

## Migrating from `poliastro` to `hapsira`

Currently, both packages are near-identical and should therefore be fully compatible. Potentially breaking changes will be added here and in the documentation.
`hapsira` is based on `poliastro main` as of the date of its archival, October 14 2023, [commit 1b01768c](https://github.com/poliastro/poliastro/commit/21fd7719e89a7d22b4eac63141a60a7f1b01768c). Therefore, `hapsira`'s initial release already includes a number of changes made since `poliastro`'s last release, `0.17.0`. Most notably, the plotter framework saw a redesign and is backwards incompatible, see [poliastro #1545](https://github.com/poliastro/poliastro/pull/1545). For further details, see [changelog](https://github.com/pleiszenburg/hapsira/blob/main/docs/source/changelog.md).


## Documentation
Expand Down
4 changes: 3 additions & 1 deletion docs/source/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# What's new

## hapsira 0.18.0 - 2023-12-XX
## hapsira 0.18.0 - 2023-12-21

**CAUTION**: A number changes at least partially **BREAK BACKWARDS COMPATIBILITY** for certain use cases.

This release is a rebranded, but virtually identical fork of `poliastro`, `main` branch, as of the date of it being archived, October 14 2023. All noteworthy changes listed here were merged into `poliastro` after its last official release, `0.17.0`.

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ Changelog = "https://hapsira.readthedocs.io/en/stable/changelog.html"
[project.optional-dependencies]
jupyter = ["notebook", "ipywidgets>=7.6"]
cesium = ["czml3 ~=0.5.3"]
dev = [
"flit",
"wheel",
]
doc = [
"httpx",
"ipython", # >=5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/hapsira/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Utilities and Python wrappers for Orbital Mechanics."""

__version__ = "0.18.dev0"
__version__ = "0.18.0"

0 comments on commit ac728ac

Please sign in to comment.