Просмотр исходного кода

build!: drop support for Python < 11

features
Jérôme Deuchnord 2 недель назад
committed by Deuchnord
Родитель
Сommit
a13d05601a
4 измененных файлов: 7 добавлений и 19 удалений
  1. +0
    -3
      .github/workflows/tests.yml
  2. +1
    -1
      Makefile
  3. +5
    -13
      pyproject.toml
  4. +1
    -2
      tests.py

+ 0
- 3
.github/workflows/tests.yml Просмотреть файл

@@ -18,9 +18,6 @@ jobs:
- macos-latest - macos-latest
- windows-latest - windows-latest
python_version: python_version:
- '3.8'
- '3.9'
- '3.10'
- '3.11' - '3.11'
- '3.12' - '3.12'
- '3.13' - '3.13'


+ 1
- 1
Makefile Просмотреть файл

@@ -1,5 +1,5 @@
black: black:
poetry run black kosmorrolib
poetry run black kosmorrolib tests.py


.PHONY: tests .PHONY: tests
tests: doctests tests: doctests


+ 5
- 13
pyproject.toml Просмотреть файл

@@ -12,16 +12,10 @@ license = "AGPL-3.0-or-later"
description = "A library to computes the ephemerides." description = "A library to computes the ephemerides."
readme = "README.md" readme = "README.md"


requires-python = "^3.8"
requires-python = "^3.11"
dependencies = [ dependencies = [
"skyfield (>=1.49,<2.0)", "skyfield (>=1.49,<2.0)",

# handling Python constraints of older versions of NumPy
"numpy (>=1.0,<1.25) ; python_version == '3.8'",
"numpy (>=2.0,<2.1) ; python_version == '3.9'",
"numpy (>=2.1,<2.3) ; python_version == '3.10'",
"numpy (>=2.3,<3.0) ; python_version >= '3.11'",

"numpy (>=2.3,<3.0)",
"skyfield-data (>=7.0.0)", "skyfield-data (>=7.0.0)",
"python-dateutil (>=2.8,<3.0)" "python-dateutil (>=2.8,<3.0)"
] ]
@@ -34,13 +28,11 @@ classifiers = [
"Intended Audience :: Education", "Intended Audience :: Education",
] ]


[tool.poetry.dependencies]

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


[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]


+ 1
- 2
tests.py Просмотреть файл

@@ -4,13 +4,12 @@ from doctest import testmod, NORMALIZE_WHITESPACE


from kosmorrolib import * from kosmorrolib import *



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


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




Загрузка…
Отмена
Сохранить