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

Merge branch 'add-pixi-support' into 'main'

Adds support for pixi development installation

See merge request !21
parents 0ad1bac5 532dcc0a
No related branches found
No related tags found
1 merge request!21Adds support for pixi development installation
Pipeline #85593 passed
......@@ -25,5 +25,3 @@ _work/
.pytest_cache/
changelog.md
.pixi/
pixi.lock
pixi.toml
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: clapp
Upstream-Name: clapper
Upstream-Contact: Andre Anjos <andre.anjos@idiap.ch>
Source: https://gitlab.idiap.ch/software/clapp
Source: https://gitlab.idiap.ch/software/clapper
Files: tests/data/*
Files:
pixi.lock
tests/data/*
Copyright: Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
License: BSD-3-Clause
......@@ -50,5 +50,5 @@ test:
about:
home: {{ data['project']['urls']['homepage'] }}
summary: {{ data['project']['description'] }}
license: {{ data['project']['license']['text'] }}
license: {{ data['project']['license'] }}
license_family: BSD
pixi.lock 0 → 100644
This diff is collapsed.
......@@ -12,7 +12,7 @@ dynamic = ["version"]
requires-python = ">=3.10"
description = "Configuration Support for Python Packages and CLIs"
readme = "README.md"
license = { text = "BSD 3-Clause License" }
license = "BSD-3-Clause"
authors = [{ name = "Andre Anjos", email = "andre.anjos@idiap.ch" }]
classifiers = [
"Development Status :: 4 - Beta",
......@@ -24,32 +24,6 @@ classifiers = [
]
dependencies = ["click>=8", "tomli", "tomli-w", "xdg"]
[tool.hatch.version]
source = "versioningit"
[tool.versioningit.next-version]
method = "smallest"
[tool.versioningit.format]
# Example formatted version: 1.2.4.dev42+ge174a1f
distance = "{next_version}.dev{distance}+{vcs}{rev}"
# Example formatted version: 1.2.4.dev42+ge174a1f.d20230922
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
[tool.hatch.build.targets.sdist]
include = [
"src/**/*.py",
"tests/**/*.py",
"tests/**/*.cfg",
"doc/**/*.rst",
"doc/**/*.txt",
"doc/**/*.py",
"LICENSES/*.txt",
]
[tool.hatch.build.targets.wheel]
packages = ["src/clapper"]
[project.urls]
documentation = "https://clapper.readthedocs.io/en/latest/"
homepage = "https://pypi.org/project/clapper"
......@@ -81,6 +55,66 @@ complex-var = "tests.data.complex:cplx"
verbose-config = "tests.data.verbose_config"
error-config = "tests.data.doesnt_exist"
[tool.pixi.project]
name = "clapper"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64"]
[tool.pixi.dependencies]
click = ">=8"
tomli = "*"
tomli-w = "*"
xdg = "*"
[tool.pixi.host-dependencies]
pre-commit = "*"
ruff = "*"
reuse = "*"
sphinx = "*"
furo = "*"
sphinx-autodoc-typehints = "*"
sphinxcontrib-programoutput = "*"
auto-intersphinx = "*"
sphinx-copybutton = "*"
sphinx-inline-tabs = "*"
pytest = "*"
pytest-cov = "*"
[tool.pixi.pypi-dependencies]
clapper = { 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]
source = "versioningit"
[tool.versioningit.next-version]
method = "smallest"
[tool.versioningit.format]
# Example formatted version: 1.2.4.dev42+ge174a1f
distance = "{next_version}.dev{distance}+{vcs}{rev}"
# Example formatted version: 1.2.4.dev42+ge174a1f.d20230922
distance-dirty = "{next_version}.dev{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
[tool.hatch.build.targets.sdist]
include = [
"src/**/*.py",
"tests/**/*.py",
"tests/**/*.cfg",
"doc/**/*.rst",
"doc/**/*.txt",
"doc/**/*.py",
"LICENSES/*.txt",
]
[tool.hatch.build.targets.wheel]
packages = ["src/clapper"]
[tool.ruff]
line-length = 80
target-version = "py310"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment