@@ -13,7 +13,7 @@ jobs: | |||||
name: Code Style | name: Code Style | ||||
steps: | steps: | ||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
- uses: actions/setup-python@v3 | |||||
- uses: actions/setup-python@v4 | |||||
with: | with: | ||||
python-version: 3.9 | python-version: 3.9 | ||||
- uses: psf/black@20.8b1 | - uses: psf/black@20.8b1 |
@@ -12,7 +12,7 @@ jobs: | |||||
steps: | steps: | ||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
- name: Set up Python | - name: Set up Python | ||||
uses: actions/setup-python@v3 | |||||
uses: actions/setup-python@v4 | |||||
with: | with: | ||||
python-version: '3.x' | python-version: '3.x' | ||||
- name: Setup environment | - name: Setup environment | ||||
@@ -12,6 +12,6 @@ jobs: | |||||
name: Validate PR title | name: Validate PR title | ||||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||
steps: | steps: | ||||
- uses: amannn/action-semantic-pull-request@v4 | |||||
- uses: amannn/action-semantic-pull-request@v5 | |||||
env: | env: | ||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@@ -18,16 +18,16 @@ jobs: | |||||
- macos-11.0 | - macos-11.0 | ||||
- windows-latest | - windows-latest | ||||
python_version: | python_version: | ||||
- '3.7' | |||||
- '3.8' | - '3.8' | ||||
- '3.9' | - '3.9' | ||||
- '3.10' | - '3.10' | ||||
- '3.11' | |||||
name: Doc tests (Python ${{ matrix.python_version }} on ${{ matrix.os }}) | name: Doc tests (Python ${{ matrix.python_version }} on ${{ matrix.os }}) | ||||
steps: | steps: | ||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
- name: Set up Python ${{ matrix.python_version }} | - name: Set up Python ${{ matrix.python_version }} | ||||
uses: actions/setup-python@v3 | |||||
uses: actions/setup-python@v4 | |||||
with: | with: | ||||
python-version: ${{ matrix.python_version }} | python-version: ${{ matrix.python_version }} | ||||
architecture: x64 | architecture: x64 | ||||
@@ -62,7 +62,7 @@ jobs: | |||||
steps: | steps: | ||||
- uses: actions/checkout@v3 | - uses: actions/checkout@v3 | ||||
- name: Prepare Python | - name: Prepare Python | ||||
uses: actions/setup-python@v3 | |||||
uses: actions/setup-python@v4 | |||||
with: | with: | ||||
python-version: "3.x" | python-version: "3.x" | ||||
@@ -1,3 +1,17 @@ | |||||
# [Version 1.0.7](https://github.com/Kosmorro/lib/compare/v1.0.6...v1.0.7) (2022-11-11) | |||||
### Build System | |||||
* add support for Python 3.11 ([#58](https://github.com/Kosmorro/lib/issues/58)) ([807be7d](https://github.com/Kosmorro/lib/commit/807be7def324c1accdad6dc35738624589eb7b06)) | |||||
### BREAKING CHANGES | |||||
* Python 3.7 is not supported anymore. | |||||
# [Version 1.0.6](https://github.com/Kosmorro/lib/compare/v1.0.5...v1.0.6) (2022-03-19) | # [Version 1.0.6](https://github.com/Kosmorro/lib/compare/v1.0.5...v1.0.6) (2022-03-19) | ||||
@@ -16,4 +16,3 @@ doctests: | |||||
changelog: | changelog: | ||||
conventional-changelog -p angular -i CHANGELOG.md -s | conventional-changelog -p angular -i CHANGELOG.md -s | ||||
@echo -e "\e[32m✔\e[33m Changelog generated. Don't forget to update the version number before committing.\e[0m" | @echo -e "\e[32m✔\e[33m Changelog generated. Don't forget to update the version number before committing.\e[0m" | ||||
@echo -e " When everything is good, finish the release with 'make tag'." |
@@ -1,4 +1,4 @@ | |||||
# Kosmorrolib - a library to compute your ephemerides! | |||||
# ![Kosmorrolib](https://raw.githubusercontent.com/Kosmorro/logos/main/kosmorrolib/kosmorrolib-artwork.jpg) | |||||
[![Coverage Status](https://coveralls.io/repos/github/Kosmorro/lib/badge.svg?branch=main)](https://coveralls.io/github/Kosmorro/lib?branch=main) [![Version on PyPI](https://img.shields.io/pypi/v/kosmorrolib)](https://pypi.org/project/kosmorrolib) [![IRC: #kosmorro on Libera.Chat](https://img.shields.io/badge/Libera.Chat-%23kosmorro-blueviolet)](https://web.libera.chat/?nick=Astronaut?#kosmorro) | [![Coverage Status](https://coveralls.io/repos/github/Kosmorro/lib/badge.svg?branch=main)](https://coveralls.io/github/Kosmorro/lib?branch=main) [![Version on PyPI](https://img.shields.io/pypi/v/kosmorrolib)](https://pypi.org/project/kosmorrolib) [![IRC: #kosmorro on Libera.Chat](https://img.shields.io/badge/Libera.Chat-%23kosmorro-blueviolet)](https://web.libera.chat/?nick=Astronaut?#kosmorro) | ||||
@@ -35,7 +35,7 @@ alert_deprecation( | |||||
__title__ = "kosmorrolib" | __title__ = "kosmorrolib" | ||||
__description__ = "A library to compute your ephemerides" | __description__ = "A library to compute your ephemerides" | ||||
__url__ = "http://kosmorro.space/lib" | __url__ = "http://kosmorro.space/lib" | ||||
__version__ = "1.0.6" | |||||
__version__ = "1.0.7" | |||||
__author__ = "Jérôme Deuchnord" | __author__ = "Jérôme Deuchnord" | ||||
__author_email__ = "jerome@deuchnord.fr" | __author_email__ = "jerome@deuchnord.fr" | ||||
__license__ = "AGPL-v3" | __license__ = "AGPL-v3" | ||||
@@ -139,7 +139,7 @@ def get_ephemerides( | |||||
>>> get_ephemerides(Position(36.6794, 4.8555), date(2022, 7, 7)) | >>> get_ephemerides(Position(36.6794, 4.8555), date(2022, 7, 7)) | ||||
[<AsterEphemerides rise_time=2022-07-07 04:29:00 culmination_time=2022-07-07 11:46:00 set_time=2022-07-07 19:02:00 aster=<Object type=STAR name=SUN />>, | [<AsterEphemerides rise_time=2022-07-07 04:29:00 culmination_time=2022-07-07 11:46:00 set_time=2022-07-07 19:02:00 aster=<Object type=STAR name=SUN />>, | ||||
<AsterEphemerides rise_time=2022-07-07 12:16:00 culmination_time=2022-07-07 18:06:00 set_time=2022-07-07 23:54:00 aster=<Object type=SATELLITE name=MOON />>, | <AsterEphemerides rise_time=2022-07-07 12:16:00 culmination_time=2022-07-07 18:06:00 set_time=2022-07-07 23:54:00 aster=<Object type=SATELLITE name=MOON />>, | ||||
<AsterEphemerides rise_time=2022-07-07 03:36:00 culmination_time=2022-07-07 10:58:00 set_time=2022-07-07 18:21:00 aster=<Object type=PLANET name=MERCURY />>, | |||||
<AsterEphemerides rise_time=2022-07-07 03:36:00 culmination_time=2022-07-07 10:58:00 set_time=2022-07-07 18:20:00 aster=<Object type=PLANET name=MERCURY />>, | |||||
<AsterEphemerides rise_time=2022-07-07 02:30:00 culmination_time=2022-07-07 09:44:00 set_time=2022-07-07 16:58:00 aster=<Object type=PLANET name=VENUS />>, | <AsterEphemerides rise_time=2022-07-07 02:30:00 culmination_time=2022-07-07 09:44:00 set_time=2022-07-07 16:58:00 aster=<Object type=PLANET name=VENUS />>, | ||||
<AsterEphemerides rise_time=2022-07-07 00:05:00 culmination_time=2022-07-07 06:39:00 set_time=2022-07-07 13:14:00 aster=<Object type=PLANET name=MARS />>, | <AsterEphemerides rise_time=2022-07-07 00:05:00 culmination_time=2022-07-07 06:39:00 set_time=2022-07-07 13:14:00 aster=<Object type=PLANET name=MARS />>, | ||||
<AsterEphemerides rise_time=2022-07-07 22:59:00 culmination_time=2022-07-07 05:11:00 set_time=2022-07-07 11:20:00 aster=<Object type=PLANET name=JUPITER />>, | <AsterEphemerides rise_time=2022-07-07 22:59:00 culmination_time=2022-07-07 05:11:00 set_time=2022-07-07 11:20:00 aster=<Object type=PLANET name=JUPITER />>, | ||||
@@ -153,7 +153,7 @@ def get_ephemerides( | |||||
>>> get_ephemerides(Position(36.6794, 4.8555), date(2022, 7, 7), timezone=2) | >>> get_ephemerides(Position(36.6794, 4.8555), date(2022, 7, 7), timezone=2) | ||||
[<AsterEphemerides rise_time=2022-07-07 06:29:00 culmination_time=2022-07-07 13:46:00 set_time=2022-07-07 21:02:00 aster=<Object type=STAR name=SUN />>, | [<AsterEphemerides rise_time=2022-07-07 06:29:00 culmination_time=2022-07-07 13:46:00 set_time=2022-07-07 21:02:00 aster=<Object type=STAR name=SUN />>, | ||||
<AsterEphemerides rise_time=2022-07-07 14:16:00 culmination_time=2022-07-07 20:06:00 set_time=2022-07-07 01:27:00 aster=<Object type=SATELLITE name=MOON />>, | <AsterEphemerides rise_time=2022-07-07 14:16:00 culmination_time=2022-07-07 20:06:00 set_time=2022-07-07 01:27:00 aster=<Object type=SATELLITE name=MOON />>, | ||||
<AsterEphemerides rise_time=2022-07-07 05:36:00 culmination_time=2022-07-07 12:58:00 set_time=2022-07-07 20:21:00 aster=<Object type=PLANET name=MERCURY />>, | |||||
<AsterEphemerides rise_time=2022-07-07 05:36:00 culmination_time=2022-07-07 12:58:00 set_time=2022-07-07 20:20:00 aster=<Object type=PLANET name=MERCURY />>, | |||||
<AsterEphemerides rise_time=2022-07-07 04:30:00 culmination_time=2022-07-07 11:44:00 set_time=2022-07-07 18:58:00 aster=<Object type=PLANET name=VENUS />>, | <AsterEphemerides rise_time=2022-07-07 04:30:00 culmination_time=2022-07-07 11:44:00 set_time=2022-07-07 18:58:00 aster=<Object type=PLANET name=VENUS />>, | ||||
<AsterEphemerides rise_time=2022-07-07 02:05:00 culmination_time=2022-07-07 08:39:00 set_time=2022-07-07 15:14:00 aster=<Object type=PLANET name=MARS />>, | <AsterEphemerides rise_time=2022-07-07 02:05:00 culmination_time=2022-07-07 08:39:00 set_time=2022-07-07 15:14:00 aster=<Object type=PLANET name=MARS />>, | ||||
<AsterEphemerides rise_time=2022-07-07 01:02:00 culmination_time=2022-07-07 07:11:00 set_time=2022-07-07 13:20:00 aster=<Object type=PLANET name=JUPITER />>, | <AsterEphemerides rise_time=2022-07-07 01:02:00 culmination_time=2022-07-07 07:11:00 set_time=2022-07-07 13:20:00 aster=<Object type=PLANET name=JUPITER />>, | ||||
@@ -1,6 +1,6 @@ | |||||
[tool.poetry] | [tool.poetry] | ||||
name = "kosmorrolib" | name = "kosmorrolib" | ||||
version = "1.0.6" | |||||
version = "1.0.7" | |||||
authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"] | authors = ["Jérôme Deuchnord <jerome@deuchnord.fr>"] | ||||
homepage = "https://kosmorro.space/lib" | homepage = "https://kosmorro.space/lib" | ||||
repository = "https://github.com/Kosmorro/lib" | repository = "https://github.com/Kosmorro/lib" | ||||
@@ -19,7 +19,7 @@ classifiers = [ | |||||
] | ] | ||||
[tool.poetry.dependencies] | [tool.poetry.dependencies] | ||||
python = ">=3.7,<3.11" | |||||
python = ">=3.8,<3.12" | |||||
skyfield = "^1.21" | skyfield = "^1.21" | ||||
skyfield-data = ">=3,<5" | skyfield-data = ">=3,<5" | ||||
python-dateutil = "^2.8" | python-dateutil = "^2.8" | ||||