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
32 changes: 32 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Checks
on:
push:
branches: [main, features]
pull_request:
branches: [main, features]

jobs:
lint:
name: Code Style
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: 3.x
- uses: psf/black@stable

poetry-check:
runs-on: ubuntu-latest

name: Poetry
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: '3.x'
- run: |
pip install -U pip poetry
poetry install
- run: poetry check --strict
18 changes: 18 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request

on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
semantic-pr:
name: Validate PR title
runs-on: ubuntu-latest

steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/prchecks.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
- macos-latest
- windows-latest
python_version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
black:
poetry run black kosmorrolib
poetry run black kosmorrolib tests.py

.PHONY: tests
tests: doctests
Expand Down
32 changes: 15 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[tool.poetry]
[project]
name = "kosmorrolib"
version = "1.0.13"
authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"]
authors = [
{ name = "Jérôme Deuchnord", email = "jerome@deuchnord.fr" }
]
homepage = "https://kosmorro.space/lib"
repository = "https://github.com/Kosmorro/lib"
documentation = "https://kosmorro.space/lib/doc"
Expand All @@ -10,6 +12,14 @@ license = "AGPL-3.0-or-later"
description = "A library to computes the ephemerides."
readme = "README.md"

requires-python = "^3.11"
dependencies = [
"skyfield (>=1.49,<2.0)",
"numpy (>=2.3,<3.0)",
"skyfield-data (>=7.0.0)",
"python-dateutil (>=2.8,<3.0)"
]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Scientific/Engineering :: Astronomy",
Expand All @@ -18,23 +28,11 @@ classifiers = [
"Intended Audience :: Education",
]

[tool.poetry.dependencies]
python = "^3.8"
skyfield = "^1.49"
numpy = [
{ version = "<1.25", python = "3.8.*" },
{ version = "<2.1", python = "3.9.*" },
{ version = "<2.3", python = "3.10.*" },
{ version = "^2.3", python = ">=3.11" },
]
skyfield-data = "*"
python-dateutil = "^2.8"

[tool.poetry.group.dev.dependencies]
black = ">23.1,<25.0"
black = ">=23.1"
parameterized = "^0.9.0"
coverage = "^6.1.2"
coveralls = "^3.3.1"
coverage = ">=6.1"
coveralls = ">=3.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
3 changes: 1 addition & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

from kosmorrolib import *


if __name__ == "__main__":
failures = 0
tests = 0

for module in [events, ephemerides, model]:
(f, t) = testmod(module, optionflags=NORMALIZE_WHITESPACE)
f, t = testmod(module, optionflags=NORMALIZE_WHITESPACE)
failures += f
tests += t

Expand Down
Loading