-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into improve-mean-eccentric-anomaly
- Loading branch information
Showing
13 changed files
with
2,160 additions
and
2,045 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,26 +7,29 @@ on: | |
pull_request: | ||
branches: [main] | ||
|
||
# This job installs dependencies, build the book, and pushes it to `gh-pages` | ||
env: | ||
PYDEVD_DISABLE_FILE_VALIDATION: 1 | ||
|
||
# This job installs dependencies, builds the book, and pushes it to `gh-pages` | ||
jobs: | ||
deploy-book: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v3 | ||
uses: pdm-project/setup-pdm@v4 | ||
with: | ||
cache: true | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
- name: Install dependencies | ||
run: pdm sync --prod --no-self | ||
run: pdm sync --prod | ||
# Build the book | ||
- name: Build the book | ||
run: pdm run jupyter-book build -vv -W . | ||
# Push the book's HTML to github-pages | ||
- name: GitHub Pages action | ||
if: github.ref == 'refs/heads/main' | ||
uses: peaceiris/[email protected].2 | ||
uses: peaceiris/[email protected].3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"globs": ["**/*.md", "!.venv"], | ||
"config": { | ||
"MD013": false, | ||
"MD037": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[tools] | ||
python = { version = "3.11", virtualenv = ".venv" } | ||
markdownlint-cli2 = "latest" | ||
pdm = "latest" | ||
|
||
[plugins] | ||
pdm = "https://github.com/1oglop1/asdf-pdm" | ||
markdownlint-cli2 = "https://github.com/paulo-ferraz-oliveira/asdf-markdownlint-cli2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Install/Build the Book | ||
|
||
The repo is set up to use [mise](https://mise.jdx.dev) to install required tools. Once `mise` is installed, changing into this directory should install the correct tools with the right versions. | ||
|
||
After that, running `pdm install` should install the dependencies. Then `doit build_jb` will build the book. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ exclude_patterns: | |
- chapter-4 | ||
- .venv | ||
- .pytest_cache | ||
- INSTALL.md | ||
|
||
latex: | ||
latex_engine: xelatex | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,57 @@ | ||
#:schema https://json.schemastore.org/pyproject.json | ||
[tool] | ||
[project] | ||
dependencies = [ | ||
"astropy>=6.0.0", | ||
"docutils>=0.20.1", | ||
"ipympl>=0.9.3", | ||
"jupyter-book>=1.0.0", | ||
"matplotlib>=3.8.2", | ||
"myst-nb-bokeh>=2024.1.0", | ||
"myst-nb>=1.0.0", | ||
"numpy>=1.26.3", | ||
"pint>=0.23", | ||
"plotly>=5.18.0", | ||
"poliastro>=0.18.dev0", | ||
"scipy>=1.12.0", | ||
"skyfield>=1.47", | ||
"sphinx-design>=0.5.0", | ||
"sympy>=1.12", | ||
"wheel>=0.42.0", | ||
] | ||
# Numba 0.58.1 requires Python < 3.12 | ||
requires-python = ">=3.10,<3.12" | ||
name = "orbital-mechanics-notes" | ||
version = "2024.01.0" | ||
description = "Orbital Mechanics Notes built with JupyterBook" | ||
authors = [ | ||
{name = "Bryan Weber", email = "[email protected]"}, | ||
] | ||
license = {text = "CC-BY-SA-4.0"} | ||
|
||
[tool.pdm] | ||
distribution = false | ||
|
||
[tool.pdm.dev-dependencies] | ||
dev = [ | ||
"black[jupyter]>=23.1.0", | ||
"flake8>=6.0.0", | ||
"doit>=0.36.0", | ||
"pyyaml>=6.0", | ||
"mypy>=0.991", | ||
"pyyaml>=6.0.1", | ||
"mypy>=1.8.0", | ||
"ruff>=0.1.14", | ||
] | ||
[tool.pdm.resolution.overrides] | ||
# Unfortunately, poliastro is no longer maintained. I updated some dependencies on my | ||
# fork to be able to upgrade some other things like astropy. Nothing seems to be broken | ||
# but I'll need a replacement here at some point. | ||
"poliastro" = "https://github.com/bryanwweber/poliastro/archive/main.zip" | ||
|
||
[project] | ||
# PEP 621 project metadata | ||
# See https://www.python.org/dev/peps/pep-0621/ | ||
name = "orbital-mechanics-notes" | ||
dependencies = [ | ||
"astropy", | ||
"docutils>=0.17,!=0.18.*,!=0.19.*", | ||
"ipympl", | ||
"jupyter-book~=0.15.0", | ||
"matplotlib", | ||
"myst-nb-bokeh>=1.0", | ||
"myst-nb>=0.17.1,<0.18", | ||
"numpy", | ||
"pint>=0.20.1", | ||
"plotly", | ||
"poliastro", | ||
"scipy", | ||
"skyfield>=1.45", | ||
"sphinx-design>=0.3.0", | ||
"sympy", | ||
"wheel>=0.38.4", | ||
[tool.ruff] | ||
extend-include = ["*.ipynb"] | ||
select = [ | ||
"E", # pycodestyle | ||
"W", # pycodestyle | ||
"F", # pyflakes | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"NPY", # NumPy rules | ||
"RUF", # Ruff rules | ||
] | ||
requires-python = ">=3.9,<3.11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters