mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 12:24:25 +01:00
The Yale bright stars (986, V < 4.6, packed by Tiefenkontakt) in their real places for the sector's latitude, the day of the year and the ship's clock, at their true angles; magnitude, B-V colour, extinction and reddening low down, twinkling, moonlight, clouds, fog and rain; a seeded faint scatter for the optics and the Milky Way added in linear light to the shaded sky. src/ui/stars.py and its browser twin views/stars.js (parity test), sky fields hour/latitude/day_of_year, docs, manual, figures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUgHR8PXDGer54DH6ie
83 lines
3.1 KiB
TOML
83 lines
3.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "u-jagd"
|
|
dynamic = ["version"]
|
|
description = "U-Jagd - a frigate anti-submarine warfare game for the uConsole"
|
|
readme = "README.md"
|
|
license = "LicenseRef-PolyForm-Strict-1.0.0"
|
|
license-files = ["LICENSE", "THIRD_PARTY_NOTICES.md", "data/commander/fonts/ofl-*.txt",
|
|
"data/fonts/ofl-*.txt"]
|
|
authors = [
|
|
{name = "Dominik Bornhäußer"},
|
|
]
|
|
requires-python = ">=3.11"
|
|
dependencies = ["pygame>=2.6", "numpy>=2.0", "websockets>=12"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Natural Language :: English",
|
|
"Natural Language :: German",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Topic :: Games/Entertainment :: Simulation",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/db9979/uconsole_asw_game"
|
|
Repository = "https://github.com/db9979/uconsole_asw_game"
|
|
Issues = "https://github.com/db9979/uconsole_asw_game/issues"
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["build>=1", "pytest>=8", "pytest-xdist>=3", "pytest-timeout>=2"]
|
|
windows = ["pyinstaller>=6.10,<7", "certifi>=2024.2.2"]
|
|
macos = ["pyinstaller>=6.10,<7", "certifi>=2024.2.2"]
|
|
|
|
[project.scripts]
|
|
u-jagd = "main:main"
|
|
|
|
[tool.setuptools]
|
|
py-modules = ["main"]
|
|
include-package-data = true
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["src*", "data*"]
|
|
namespaces = true
|
|
|
|
[tool.setuptools.package-data]
|
|
"data.contacts" = ["*.json"] # Built-in contact catalog resources.
|
|
"data.loadouts" = ["*.json"] # Fictional ownship mission loadouts.
|
|
"data.coastlines" = ["*.json", "*.json.gz"]
|
|
"data.editor_templates" = ["*.json"]
|
|
"data.i18n" = ["*.json"]
|
|
"data.commander" = ["*.html", "*.js", "*.css", "css/*.css", "js/**/*.js",
|
|
"fonts/*.woff2", "fonts/*.txt"]
|
|
"data.fonts" = ["*.ttf", "*.txt"] # uConsole display face (OFL-1.1).
|
|
"data.manual" = ["*.md"]
|
|
"data.contact_analysis" = ["manifest.json", "*.png"]
|
|
"data.sky" = ["*.json"] # The night sky's bright stars (Yale BSC via Tiefenkontakt).
|
|
"data.unit_models" = ["*.json", "*.json.gz"] # Per-type 3D model dimensions (public sources) and the Tiefenkontakt designs.
|
|
|
|
[tool.setuptools.dynamic]
|
|
version = {attr = "src.core.version.APP_VERSION"}
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
# Parallel by default (pytest-xdist); "-n 0" runs serially. Every worker
|
|
# process gets its own SDL dummy drivers and save/settings directory from
|
|
# conftest.py, and the loopback test servers bind ephemeral ports.
|
|
addopts = "-n auto --dist loadgroup"
|
|
# A hung test fails after 15 minutes instead of holding CI to its job limit;
|
|
# tests that need longer say so with @pytest.mark.timeout.
|
|
timeout = 900
|
|
markers = [
|
|
"browser: drives headless Chromium (skipped when it is not installed)",
|
|
"xdist_group: pytest-xdist scheduling group (browser tests share two)",
|
|
"slow: takes more than about 20 s on the development host",
|
|
"hardware: needs the real uConsole (never run in CI)",
|
|
"real_sea: sees the real sea of the sector instead of the synthetic reference sea",
|
|
]
|