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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:

jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- uses: "astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc" # v6.4.3
with:
enable-cache: true
- uses: "actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065" # v5.6.0
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
python -VV
python -m site
uv --version
uv sync --no-install-project --no-dev --group nox
- name: "Run nox targets for ${{ matrix.python-version }}"
run: "uv run nox --python ${{ matrix.python-version }}"
17 changes: 17 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: pre-commit

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.x"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
push:
tags:
- "*"

jobs:
deploy:
runs-on: ubuntu-latest
environment: publish
permissions:
id-token: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: "astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc" # v6.4.3
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.x"
- name: Build
run: "uv build"
- name: Publish
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.5 # also update pyproject.toml
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.2
hooks:
- id: uv-lock
- id: uv-export
args:
- --frozen
- --no-dev
- --group=docs
- --no-emit-project
- --no-annotate
- --output-file=docs/requirements.txt
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.13"

python:
install:
- method: pip
path: .
- requirements: docs/requirements.txt

sphinx:
configuration: docs/conf.py
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

48 changes: 0 additions & 48 deletions README

This file was deleted.

24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
## Orbital
[![Build Status][bsi]][bsl] [![PyPI Version][ppi]][ppl] [![Python Version][pvi]][pvl] [![MIT License][mli]][mll]

[bsi]: http://img.shields.io/travis/RazerM/orbital.svg?style=flat-square
[bsl]: https://travis-ci.org/RazerM/orbital
[ppi]: http://img.shields.io/pypi/v/orbitalpy.svg?style=flat-square
[ppl]: https://pypi.python.org/pypi/orbitalpy/
[pvi]: https://img.shields.io/badge/python-2.7%2C%203-brightgreen.svg?style=flat-square
[pvl]: https://www.python.org/downloads/
[mli]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[mll]: https://raw.githubusercontent.com/RazerM/orbital/master/LICENSE
# Orbital

<p>
<a href="https://pypi.org/project/orbitalpy/"><img src="https://img.shields.io/pypi/v/orbitalpy.svg" alt="PyPI" /></a>
<a href="https://raw.githubusercontent.com/RazerM/orbital/master/LICENSE"><img src="https://img.shields.io/pypi/l/orbitalpy.svg" alt="MIT License" /></a>
<a href="https://raw.githubusercontent.com/RazerM/orbital/master/LICENSE"><img src="https://img.shields.io/pypi/pyversions/orbitalpy.svg" alt="Python Versions" /></a>
<a href="https://github.com/RazerM/orbital/actions"><img src="https://github.com/RazerM/orbital/actions/workflows/ci.yml/badge.svg" alt="GitHub Actions Status" /></a>
<a href="http://orbitalpy.readthedocs.org/en/latest/"><img src="https://img.shields.io/badge/docs-latest-brightgreen.svg" alt="Documentation" /></a>
</p>

Orbital is a high level orbital mechanics package for Python.

### Installation

```bash
$ pip install orbitalpy
pip install orbitalpy
```

### Example
Expand All @@ -38,4 +36,4 @@ plt.show()

For more information, view the [documentation online][doc].

[doc]: http://pythonhosted.org/OrbitalPy/
[doc]: http://orbitalpy.readthedocs.org/en/latest/
11 changes: 0 additions & 11 deletions doc/_templates/layout.html

This file was deleted.

Loading
Loading