Metadata-Version: 2.1
Name: minchoc
Version: 0.0.7
Summary: Minimal Chocolatey-compatible NuGet server in a Django app.
Home-page: https://github.com/Tatsh/minchoc
License: MIT
Keywords: chocolatey,django,windows
Author: Andrew Udvare
Author-email: audvare@gmail.com
Requires-Python: >=3.10,<4
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: System :: Software Distribution
Classifier: Typing :: Typed
Requires-Dist: defusedxml (>=0.7.1,<0.8.0)
Requires-Dist: django (>=4.2.4,<5.0.0)
Requires-Dist: django-stubs-ext (>=4.2.2,<5.0.0)
Requires-Dist: ply (>=3.11,<4.0)
Project-URL: Documentation, https://minchoc.readthedocs.io/en/latest/
Project-URL: Repository, https://github.com/Tatsh/minchoc
Description-Content-Type: text/markdown

# Minimal Chocolatey-compatible NuGet server in a Django app

[![Documentation Status](https://readthedocs.org/projects/minchoc/badge/?version=latest)](https://minchoc.readthedocs.io/en/latest/?badge=latest)
[![QA](https://github.com/Tatsh/minchoc/actions/workflows/qa.yml/badge.svg)](https://github.com/Tatsh/minchoc/actions/workflows/qa.yml)
[![Tests](https://github.com/Tatsh/minchoc/actions/workflows/tests.yml/badge.svg)](https://github.com/Tatsh/minchoc/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/Tatsh/minchoc/badge.svg?branch=master)](https://coveralls.io/github/Tatsh/minchoc?branch=master)

## Installation

```shell
pip install minchoc
```

```python
INSTALLED_APPS = ['minchoc']
ALLOW_PACKAGE_DELETION = False
```

A `DELETE` call to `/api/v2/package/<id>/<version>` will be denied even with authentication unless
`ALLOW_PACKAGE_DELETION` is set to `True`.

## Notes

When a user is created, a `NugetUser` is also made. This will contain the API key for pushing.
It can be viewed in admin.

Only `choco install` and `choco push` are supported.

### Add source to Chocolatey

As administrator:

```shell
choco source add -s 'https://your-host/url-prefix'
choco apikey add -s 'https://your-host/url-prefix' -k 'your-key'
```

