Skip to content
Snippets Groups Projects
Commit 96c2d6cf authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[pyproject] Adds support for pixi development installation

parent efa95080
No related branches found
No related tags found
1 merge request!15Adds support for pixi development installation
Pipeline #85603 passed
...@@ -25,5 +25,3 @@ _work/ ...@@ -25,5 +25,3 @@ _work/
.mypy_cache/ .mypy_cache/
.pytest_cache/ .pytest_cache/
.pixi/ .pixi/
pixi.lock
pixi.toml
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: devtools Upstream-Name: idiap-devtools
Upstream-Contact: Andre Anjos <andre.anjos@idiap.ch> Upstream-Contact: Andre Anjos <andre.anjos@idiap.ch>
Source: https://gitlab.idiap.ch/bob/devtools Source: https://gitlab.idiap.ch/software/idiap-devtools
Files: doc/*.json Files:
pixi.lock
doc/*.json
Copyright: Copyright © 2022 Idiap Research Institute <contact@idiap.ch> Copyright: Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
License: BSD-3-Clause License: BSD-3-Clause
...@@ -60,5 +60,5 @@ test: ...@@ -60,5 +60,5 @@ test:
about: about:
home: {{ data['project']['urls']['homepage'] }} home: {{ data['project']['urls']['homepage'] }}
summary: {{ data['project']['description'] }} summary: {{ data['project']['description'] }}
license: {{ data['project']['license']['text'] }} license: {{ data['project']['license'] }}
license_family: BSD license_family: BSD
pixi.lock 0 → 100644
This diff is collapsed.
...@@ -12,7 +12,7 @@ dynamic = ["version"] ...@@ -12,7 +12,7 @@ dynamic = ["version"]
requires-python = ">=3.10" requires-python = ">=3.10"
description = "This package contains a *pot-pourri* of various tools required to develop python packages at Idiap's GitLab infrastructure" description = "This package contains a *pot-pourri* of various tools required to develop python packages at Idiap's GitLab infrastructure"
readme = "README.md" readme = "README.md"
license = { text = "BSD 3-Clause License" } license = "BSD-3-Clause"
authors = [{ name = "Andre Anjos", email = "andre.anjos@idiap.ch" }] authors = [{ name = "Andre Anjos", email = "andre.anjos@idiap.ch" }]
classifiers = [ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
...@@ -36,6 +36,73 @@ dependencies = [ ...@@ -36,6 +36,73 @@ dependencies = [
"xdg", "xdg",
] ]
[project.urls]
documentation = "https://idiap-devtools.readthedocs.io/en/latest/"
homepage = "https://pypi.org/project/idiap-devtools"
repository = "https://gitlab.idiap.ch/software/idiap-devtools"
changelog = "https://gitlab.idiap.ch/software/idiap-devtools/-/releases"
[project.optional-dependencies]
qa = ["pre-commit"]
doc = [
"sphinx",
"furo",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
"sphinx-inline-tabs",
"sphinx-click",
"auto-intersphinx",
]
test = ["pytest", "pytest-cov"]
[project.scripts]
devtool = "idiap_devtools.scripts.cli:cli"
[tool.pixi.project]
name = "idiap-devtools"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64"]
[tool.pixi.dependencies]
click = ">=8"
cookiecutter = "*"
gitpython = "*"
packaging = "*"
python-dateutil = "*"
python-gitlab = "*"
pytz = "*"
pyyaml = "*"
tomli = "*"
tomlkit = "*"
xdg = "*"
# conda/mamba ecosystem dependencies
conda = "*"
conda-build = "*"
mamba = "*"
boa = "*"
[tool.pixi.host-dependencies]
pre-commit = "*"
ruff = "*"
sphinx = "*"
furo = "*"
sphinx-autodoc-typehints = "*"
sphinx-copybutton = "*"
sphinx-inline-tabs = "*"
sphinx-click = "*"
auto-intersphinx = "*"
pytest = "*"
pytest-cov = "*"
[tool.pixi.pypi-dependencies]
idiap-devtools = { path = ".", editable = true, extras = ["qa", "doc", "test"] }
[tool.pixi.tasks]
qa-install = "pre-commit install"
qa = "pre-commit run --all-files"
doc = "rm -rf doc/api && rm -rf html && sphinx-build -aEW doc html"
test = "pytest -sv tests/"
[tool.hatch.version] [tool.hatch.version]
source = "versioningit" source = "versioningit"
...@@ -62,28 +129,6 @@ include = [ ...@@ -62,28 +129,6 @@ include = [
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]
packages = ["src/idiap_devtools"] packages = ["src/idiap_devtools"]
[project.urls]
documentation = "https://idiap-devtools.readthedocs.io/en/latest/"
homepage = "https://pypi.org/project/idiap-devtools"
repository = "https://gitlab.idiap.ch/software/idiap-devtools"
changelog = "https://gitlab.idiap.ch/software/idiap-devtools/-/releases"
[project.optional-dependencies]
qa = ["pre-commit"]
doc = [
"sphinx",
"furo",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
"sphinx-inline-tabs",
"sphinx-click",
"auto-intersphinx",
]
test = ["pytest", "pytest-cov", "coverage"]
[project.scripts]
devtool = "idiap_devtools.scripts.cli:cli"
[tool.ruff] [tool.ruff]
line-length = 80 line-length = 80
target-version = "py310" target-version = "py310"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment