Skip to content
Snippets Groups Projects
setup.py 1.83 KiB
Newer Older
import os
from distutils.command.build import build

from django.core import management
from setuptools import find_packages, setup
from pretix_public_registrations import __version__
Felix Schäfer's avatar
Felix Schäfer committed
    with open(
        os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf-8"
    ) as f:
        long_description = f.read()
except Exception:
Felix Schäfer's avatar
Felix Schäfer committed
    long_description = ""


class CustomBuild(build):
    def run(self):
Felix Schäfer's avatar
Felix Schäfer committed
        management.call_command("compilemessages", verbosity=1)
Felix Schäfer's avatar
Felix Schäfer committed
cmdclass = {"build": CustomBuild}
Felix Schäfer's avatar
Felix Schäfer committed
    name="pretix-public-registrations",
    version=__version__,
Felix Schäfer's avatar
Felix Schäfer committed
    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",
    url="https://gitlab.fachschaften.org/kif/pretix-public-registrations",
    project_urls={
Felix Schäfer's avatar
Felix Schäfer committed
        "Bug Tracker": "https://gitlab.fachschaften.org/kif/pretix-public-registrations/issues",
        "Source Code": "https://gitlab.fachschaften.org/kif/pretix-public-registrations/tree/master",
Felix Schäfer's avatar
Felix Schäfer committed
    author="Felix Schäfer, Dominik Weitz",
    author_email="admin@kif.rocks",
    license="MIT",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Plugins",
        "Framework :: Django",
        "License :: OSI Approved :: MIT License",
Felix Schäfer's avatar
Felix Schäfer committed
        "Programming Language :: Python :: 3",
Felix Schäfer's avatar
Felix Schäfer committed
    install_requires=["django-gravatar2"],
    packages=find_packages(exclude=["tests", "tests.*"]),
    include_package_data=True,
    cmdclass=cmdclass,
    entry_points="""
[pretix.plugin]
pretix_public_registrations=pretix_public_registrations:PretixPluginMeta
""",
)