Skip to content

Add a pyproject.toml #262

@schwehr

Description

@schwehr

I need to really look at https://peps.python.org/pep-0621/ and some recent tutorials on how to make a pyproject.toml. For starters, it should be python >= 3.10 at least and probably just force python >= 3.12.

Here is a pyproject.toml from Gemini 3.0. Needs serious help.

[build-system]
requires = ["setuptools>=64", "wheel", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "libais"
dynamic = ["version"]
description = "C++ decoder for Automatic Identification System for tracking ships and decoding maritime information"
readme = "README.rst"
requires-python = ">=3.8"
license = { text = "Apache-2.0" }
authors = [
    { name = "Kurt Schwehr", email = "schwehr@gmail.com" }
]
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "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",
    "Programming Language :: Python :: 3.13",
    "Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = []

[project.optional-dependencies]
test = [
    "pytest",
    "pytest-cov",
]

[project.urls]
Homepage = "https://github.com/schwehr/libais"
Issues = "https://github.com/schwehr/libais/issues"

[tool.setuptools]
packages = ["ais"]

[tool.setuptools.dynamic]
version = { attr = "ais.__version__" }

[tool.setuptools_scm]
# Optional: if you want to use git tags for versioning
# fallback_version = "0.15.0"

[tool.pytest.ini_options]
testpaths = ["test"]
python_files = ["*_test.py", "test_*.py"]

[tool.black]
line-length = 80
target-version = ['py38']

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions