Skip to content
Open
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
97 changes: 51 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,86 @@

name: ci

on:
push:
branches:
- master
- ci

pull_request:
branches:
- master

jobs:
doctest-and-lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [
"3.9", "3.10", "3.11", "3.12"
]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.6.15

- name: Install pinned dependencies
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: |
python -m pip install --upgrade pip
pip install astropy==3.0.1 docutils==0.17.1 matplotlib==3.3.0 numpy==1.15.4 pandas==1.0.0 pyflakes scipy==1.2.2 sphinx==1.7.2 spktype21

- name: Install Skyfield
python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r requirements.txt
- name: Build and install Skyfield
run: |
python setup.py sdist
pip install -e .

pip install dist/*
- name: Doctest
run: |
./test-docs.sh

grep " 0 failures in tests" ./documentation/_build/doctest/output.txt
grep " 0 failures in setup code" ./documentation/_build/doctest/output.txt
grep " 0 failures in cleanup code" ./documentation/_build/doctest/output.txt
- name: Lint
run: |
pyflakes $(find skyfield/ -name '*.py')

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [python2, python3]

python-version: [
"2.7", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"
]
steps:
- uses: actions/checkout@v2

- name: Install
- uses: actions/checkout@v4
- if: ${{ matrix.python-version == '2.7' }}
name: Set up Python ${{ matrix.python-version }}
run: |
sudo apt install -q -q python3-virtualenv virtualenv
virtualenv -p ${{matrix.python}} V

- name: Build scripts
sudo apt install python2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
- if: ${{ matrix.python-version != '2.7' }}
name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install and activate venv
run: |
cat <<'EOF' > GITHUB_INSTALL.sh
sudo apt install -q -q python3-virtualenv virtualenv
virtualenv -p python${{matrix.python-version}} V
source ./V/bin/activate
echo PATH is $PATH
which python
python --version
python -m pip install --upgrade pip
python setup.py sdist
python -m pip install dist/*
echo PATH=$PATH >> $GITHUB_ENV
- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
- name: Install test dependencies
run: |
pip install --upgrade pip setuptools
python -m pip install mock pandas
python -m pip install https://github.com/brandon-rhodes/assay/archive/master.zip
EOF
cat <<'EOF' > GITHUB_TEST.sh
source ./V/bin/activate
cd ci && ../test-code.sh
EOF

- name: Install
- name: Build and install Skyfield
run: |
bash -e -x GITHUB_INSTALL.sh

- name: Test
python setup.py sdist
pip install dist/*
- name: Run tests
run: |
bash -e -x GITHUB_TEST.sh
./test-code.sh
Binary file modified documentation/_static/goce-reentry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/mars-elongation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/mars-quadrature-undersampled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/mars-quadrature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/neowise-finder-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/venus-elongation-undersampled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/venus-elongation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/_static/venus_evening_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/bright_stars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 19 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
astropy==3.2.2
beautifulsoup4==4.6.0
html5lib==1.0.1
lxml==4.9.1
mock==2.0.0
numpy==1.15.4
matplotlib==3.3.0
pandas==1.0.0
pyflakes==2.1.1
# python>=3.9
astropy==6.0.1
beautifulsoup4==4.12.3
html5lib==1.1.0
lxml==5.3.0
mock==5.1.0
numpy==1.26.4 # breaks if upgraded to v2.0.0 due to repr changes
matplotlib==3.9.2
pandas==2.2.2
pyflakes==3.2.0
python-dateutil>=2.5.0
pytz
sphinx==1.7.2
sphinx==2.4.5 # breaks if upgraded to v3.0.0
jinja2==3.0.3 # breaks if upgraded to v3.1.0 due to deprecated functions
alabaster==0.7.13 # alabaster>=0.7.14 requiers sphinx>=3.4.0
sphinxcontrib-applehelp==1.0.4 # sphinxcontrib-applehelp>=1.0.5 requires sphinx>=5.0.0
sphinxcontrib-devhelp==1.0.2 # sphinxcontrib-devhelp>=1.0.3 requires sphinx>=5.0.0
sphinxcontrib-htmlhelp==2.0.1 # sphinxcontrib-htmlhelp>=2.0.2 requires sphinx>=5.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3 # sphinxcontrib-qthelp>=1.0.4 requires sphinx>=5.0.0
sphinxcontrib-serializinghtml==1.1.5 # sphinxcontrib-serializinghtml>=1.1.6 requires sphinx>=5.0.0
spktype21
https://github.com/brandon-rhodes/assay/archive/master.zip
17 changes: 5 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import os

if 'SKYFIELD_USE_SETUPTOOLS' in os.environ:
import setuptools
print('Using setuptools version', setuptools.__version__)

from distutils.core import setup
from distutils.command.sdist import sdist
from setuptools import setup
from setuptools.command.sdist import sdist

import skyfield # safe, because __init__.py contains no import statements

Expand Down Expand Up @@ -33,15 +28,13 @@ def make_distribution(self):
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Astronomy',
],
packages=[
Expand Down