Skip to content
Merged
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
16 changes: 11 additions & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,21 @@ jobs:
run: |
python -m pip install --upgrade pip

- name: Install dependencies
- name: Install dependencies with the compiled requirements (for Python 3.12)
if: ${{matrix.python-version == '3.12'}}
run: |
pip install -e .[dev]
pip install -r requirements.txt -e .[dev]

- name: Lint
- name: Install dependencies based on the pyproject.toml file (for older Python versions)
if: ${{matrix.python-version != '3.12'}}
run: |
black --check .
mypy .
pip install -e .[dev]

- name: Test with pytest
run: |
pytest

- name: Lint
run: |
black --check .
mypy .
53 changes: 49 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
requires = ["setuptools>=64.0", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "alitra"
authors = [{ name = "Equinor ASA", email = "fg_robots_dev@equinor.com" }]
description = "Simple alignment and transformation between coordinate frames"
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)",
"Natural Language :: English",
"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",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
]
dependencies = ["dacite", "scipy", "numpy"]
dynamic = ["version"]

[project.urls]
repository = "https://github.com/equinor/alitra.git"

[project.optional-dependencies]
dev = ["black", "mypy", "pip-tools", "pre-commit", "pytest"]

[tool.setuptools_scm]
# This section is empty but required for dynamic versioning.

[tool.mypy]
no_strict_optional = true
no_site_packages = true
ignore_missing_imports = true
exclude = ["build"]
files = ["src", "tests"]

[tool.pytest.ini_options]
testpaths = ["tests"]
log_cli = true

[tool.black]
line_length = 88
11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

29 changes: 0 additions & 29 deletions setup.py

This file was deleted.