Metadata-Version: 2.4
Name: pic_rucio_policy_package
Version: 0.1.1
Summary: PIC Rucio policy package
Author-email: Francesc Torradeflot <torradeflot@pic.es>
License-Expression: Apache-2.0
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: rucio>=35.5.0; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: ruff-lsp; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: pytest; extra == "dev"

# PIC Rucio policy package
This repository includes the policy package to be used in the Rucio instances managed at PIC.

It is based on the [Rucio policy package template](https://github.com/rucio/policy-package-template) repository.

And developed following the instructions in the [Policy packages documentation](https://rucio.github.io/documentation/operator/policy_packages/policy_packages_overview)


## Content

### Schema

Contains minimal changes with respect to the default schema:
* extended scope and DID name length
* accept "+" characters in did name, for the MAGIC experiment
* accept lower case in RSE names

### Permissions

Kept the defaul permissions

### Algorithms

No custom algorithms defined


## Installation

From PyPI or other package index
```bash
pip install pic-rucio-policy-package
```

From source (development):
```bash
python -m pip install --upgrade pip
pip install -e .
```

## Deployment

The recommended approach is to deploy the policy package [via a Kubernetes init container](https://rucio.github.io/documentation/operator/policy_packages/policy-package-deployment#deploying-via-kubernetes-init-container)


## Contributing

* Clone/fork the repository
* Install the package dev dependencies in a venv/conda environment `pip install -e .[dev]`
* Enable pre-commits `pre-commit install`
* Run the tests with `pytest tests`

