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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/cuvis/_cuvis_pyil.pyd
/venv
/cuvis/__pycache__
/.venv310
2 changes: 1 addition & 1 deletion git-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
unknown
cee09c1ca36782c660607b93c445c42befdcf8a8
15 changes: 15 additions & 0 deletions prebuild.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import subprocess
from pathlib import Path


def get_git_commit_hash():
try:
return subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii").strip()
except subprocess.CalledProcessError:
return "unknown"


with open(Path(__file__).parent / "git-hash.txt", "w") as f:
f.write(f"{get_git_commit_hash()}\n")

print("git-hash.txt created.")
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "cuvis"
version = "3.3.2"
description = "CUVIS Python SDK."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "Apache License 2.0" }
authors = [
{ name = "Cubert GmbH, Ulm, Germany", email = "SDK@cubert-gmbh.com" }
]

dependencies = [
"cuvis-il>3.3.1",
"typing_extensions; python_version<'3.10'", # Only for Python 3.9
"setuptools; python_version>='3.12'" # Only for Python 3.12+
]

classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"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 :: Image Processing",
]

[project.urls]
Homepage = "https://www.cubert-hyperspectral.com/"
Repository = "https://github.com/cubert-hyperspectral/cuvis.python"
Documentation = "https://cubert-hyperspectral.github.io/cuvis.doc/"
Changelog = "https://github.com/cubert-hyperspectral/cuvis.python/releases"
Issues = "https://github.com/cubert-hyperspectral/cuvis.python/issues"

[tool.setuptools]
packages = ["cuvis"]
include-package-data = true

[tool.setuptools.package-data]
cuvis = ["git-hash.txt"]
149 changes: 0 additions & 149 deletions setup.py

This file was deleted.