Metadata-Version: 2.4
Name: fediverse-features
Version: 0.1.4
Summary: Helper to download fediverse feature files
Project-URL: Repository, https://codeberg.org/helge/fediverse-features
Requires-Python: >=3.11
Requires-Dist: click>=8.1.7
Requires-Dist: requests>=2.32.5
Requires-Dist: semver>=3.0.4
Description-Content-Type: text/markdown

# fediverse-features

This is a simple tool to download a subset of the
Gherkin features available at
[helge/fediverse-features](https://codeberg.org/helge/fediverse-features).
These enable one to BDD tests for Fediverse
applications.

## Usage

Install via

```bash
pip install fediverse-features
```

Create a toml file `fediverse-features.toml` containing

```toml
tag = "0.1.6"

features = [
    "fedi/node_info.feature"
]
```

where features is the list of feature files. Then
run

```bash
python -mfediverse_features
```

The feature files are then downloaded to the `features/fediverse-features` directory.
One can change this directory by adding a
target parameter to the configuration file,
e.g.

```toml
tag = "0.1.6"

features = [
    "fedi/node_info.feature"
]

target = "features"
```

## Further options

One can list available features via

```bash
python -mfediverse_features --list
```

By running

```bash
python -mfediverse_features gitignore
```

one can add the target directory to the `.gitignore` file.

## Development

Run tests via

```bash
uv run pytest
```

### Publish a new version

To publish a new version run

```bash
rm -rf dist
uv build
uv publish --token $PYPI_TOKEN
```