Skip to content
Snippets Groups Projects
Commit f6ae368b authored by Felix Schäfer's avatar Felix Schäfer :construction_worker:
Browse files

Adapt to new Pretix plugin template

parent 85392f4a
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ coverage.xml
# Django stuff:
*.log
data/
# Sphinx documentation
docs/_build/
......
#!/bin/sh
REPO_DIR=$(git rev-parse --show-toplevel)
GIT_DIR=$REPO_DIR/.git
VENV_ACTIVATE=$VIRTUAL_ENV/bin/activate
if [[ ! -f $VENV_ACTIVATE ]]
then
echo "Could not find your virtual environment"
fi
echo "#!/bin/sh" >> $GIT_DIR/hooks/pre-commit
echo "set -e" >> $GIT_DIR/hooks/pre-commit
echo "source $VENV_ACTIVATE" >> $GIT_DIR/hooks/pre-commit
echo "docformatter --check -r ." >> $GIT_DIR/hooks/pre-commit
echo "black --check ." >> $GIT_DIR/hooks/pre-commit
echo "isort -c ." >> $GIT_DIR/hooks/pre-commit
echo "flake8 ." >> $GIT_DIR/hooks/pre-commit
chmod +x $GIT_DIR/hooks/pre-commit
......@@ -4,6 +4,8 @@ try:
except ImportError:
raise RuntimeError("Please use pretix 2.7 or above to run this plugin!")
__version__ = "1.4.0"
class PluginApp(PluginConfig):
name = 'pretix_public_registrations'
......@@ -14,7 +16,8 @@ class PluginApp(PluginConfig):
author = 'Felix Schäfer, Dominik Weitz'
description = _('This plugin will give the option to attendees of an event to mark their registration as public. Public registrations will be shown along their answers to questions marked as public by the organizers on a world-readable page.')
visible = True
version = '1.4.0'
version = __version__
category = "FEATURE"
compatibility = "pretix>=2.7.0"
def ready(self):
......
......@@ -9,6 +9,33 @@ default_section = THIRDPARTY
include_trailing_comma = true
known_third_party = pretix
known_standard_library = typing
multi_line_output = 5
not_skip = __init__.py
multi_line_output = 3
skip = setup.py
use_parentheses = True
force_grid_wrap = 0
line_length = 88
known_first_party = pretix_public_registrations
[tool:pytest]
DJANGO_SETTINGS_MODULE = pretix.testutils.settings
[coverage:run]
source = pretix_public_registrations
omit = */migrations/*,*/urls.py,*/tests/*
[coverage:report]
exclude_lines =
pragma: no cover
def __str__
der __repr__
if settings.DEBUG
NOQA
NotImplementedError
[check-manifest]
ignore =
.update-locales.sh
.install-hooks.sh
Makefile
manage.py
tests/*
# -*- coding: utf-8 -*-
import os
from distutils.command.build import build
from django.core import management
from setuptools import setup, find_packages
from pretix_public_registrations import __version__
try:
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
except:
except Exception:
long_description = ''
......@@ -27,7 +26,7 @@ cmdclass = {
setup(
name='pretix-public-registrations',
version='1.4.0',
version=__version__,
description='This plugin will give the option to attendees of an event to mark their registration as public. Public registrations will be shown along their answers to questions marked as public by the organizers on a world-readable page.',
long_description=long_description,
keywords="pretix public registrations",
......@@ -38,7 +37,7 @@ setup(
},
author='Felix Schäfer, Dominik Weitz',
author_email='admin@kif.rocks',
license='MIT License',
license='MIT',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment