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
18 changes: 14 additions & 4 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ name: Release-Wheels

on:
release:
types:
types:
- published
push:
tags: 'v[0-9]+.[0-9]+.[0-9]+'
tags: "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -40,9 +40,19 @@ jobs:
platform_id: macosx_arm64
steps:
- uses: actions/checkout@v4
- name: Cache downloaded files
id: cache-kete
uses: actions/cache@v4
env:
cache-name: cache-kete
with:
# kete stores all files in `~/.kete/` by default
path: ~/.kete
# These files are valid long term, and are not expected to change
# between runs. So there is no need to a changing name.
key: kete-cache
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
147 changes: 85 additions & 62 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ name: Tests and Lint

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

env:
KETE_CACHE_DIR: ${{ github.workspace }}/docs/data
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"

Expand All @@ -24,72 +23,96 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Test with cargo
run: |
cargo test
- name: Cargo Docs
run: |
cargo doc
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools black mypy types-requests numpy
- name: Black Formatting
run: |
python3 -m black . --check
- name: Lint with mypy
run: |
python3 -m mypy src/kete/

# Build and run pytest
- name: Build kete
run: |
python3 -m pip install '.[dev]' -v
- name: Test with pytest
run: |
python3 -m pytest --cov-report term-missing --cov=kete

# Build documentation and push artifact
- name: Build Docs
run: |
cd docs
make clean
make doctest
make html
- name: Fix permissions
run: |
chmod -c -R +rX "docs/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Docs artifact
uses: actions/upload-artifact@v4
with:
name: "docs"
path:
docs/html/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: "github-pages"
path:
docs/html/


- uses: actions/checkout@v4

- name: Cache downloaded files
id: cache-kete
uses: actions/cache@v4
env:
cache-name: cache-kete
with:
# kete stores all files in `~/.kete/` by default
path: ~/.kete
# These files are valid long term, and are not expected to change
# between runs. So there is no need to a changing name.
key: kete-cache

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
cache-key: ${{ runner.os }}-stable

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools ruff mypy types-requests numpy

- name: Ruff Formatting
run: |
python3 -m ruff check

- name: Lint with mypy
run: |
python3 -m mypy src/kete/

# Build and run pytest
- name: Build kete
run: |
python3 -m pip install '.[dev]' -v

- name: Test with pytest
run: |
python3 -m pytest --cov-report term-missing --cov=kete

- name: Test with cargo
run: |
cargo test

- name: Cargo Docs
run: |
cargo doc

# Build documentation and push artifact
- name: Build Docs
run: |
cd docs
make clean
make doctest
make html

- name: Fix permissions
run: |
chmod -c -R +rX "docs/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done

- name: Upload Docs artifact
uses: actions/upload-artifact@v4
with:
name: "docs"
path: docs/html/

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: "github-pages"
path: docs/html/

deploy:
needs: build
if: success() && github.ref == 'refs/heads/main'

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.1.1]

### Added
- Add in support for MPC Extended Packed format

## [v1.1.0]

Announcement: Author of Kete (Dar Dahlen) has left IPAC Caltech to begin a PhD at
Expand Down
24 changes: 12 additions & 12 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand All @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
ddahlen@ipac.caltech.edu.
aehler@ipac.caltech.edu.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ for Cetaceans (Whales).

## Note:

The original version of this repo was developed at Caltech IPAC. This is a fork of that repo
where the work will continue as a personal project. Work done while at IPAC is of course owned
by Caltech, but all future work will have well marked as owned by Dar Dahlen & future contributors.
The original version of this repo was developed at Caltech IPAC. This
version includes additions made on a fork of this repo that was
continued as a personal project by the original author D. Dahlen. Work
done while at IPAC is of course owned by Caltech, but that additional
work will be marked as owned by Dar Dahlen & future contributors.
License will remain as BSD-3 Clause to simplify things.

## Introduction
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ readme = "README.md"
authors = [
{ name = "Dar Dahlen", email = "ddahlen@ipac.caltech.edu" },
{ name = "Joe Masiero", email = "jmasiero@ipac.caltech.edu" },
{ name = "Annie Ehler", email = "aehler@ipac.caltech.edu" },
]
license = { text = "BSD" }
requires-python = ">=3.9"
Expand Down
Loading
Loading