mirror of
https://github.com/MatomoCamp/pretalx-matomocamp.git
synced 2024-09-19 15:53:48 +02:00
43 lines
1,003 B
Python
43 lines
1,003 B
Python
|
import os
|
||
|
from distutils.command.build import build
|
||
|
|
||
|
from django.core import management
|
||
|
from setuptools import find_packages, setup
|
||
|
|
||
|
try:
|
||
|
with open(
|
||
|
os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf-8"
|
||
|
) as f:
|
||
|
long_description = f.read()
|
||
|
except FileNotFoundError:
|
||
|
long_description = ""
|
||
|
|
||
|
|
||
|
class CustomBuild(build):
|
||
|
def run(self):
|
||
|
management.call_command("compilemessages", verbosity=1)
|
||
|
build.run(self)
|
||
|
|
||
|
|
||
|
cmdclass = {"build": CustomBuild}
|
||
|
|
||
|
|
||
|
setup(
|
||
|
name="pretalx-matomocamp",
|
||
|
version="0.0.0",
|
||
|
description="Short description",
|
||
|
long_description=long_description,
|
||
|
url="test",
|
||
|
author="Lukas Winkler",
|
||
|
author_email="lukas@matomocamp.org",
|
||
|
license="Apache Software License",
|
||
|
install_requires=[],
|
||
|
packages=find_packages(exclude=["tests", "tests.*"]),
|
||
|
include_package_data=True,
|
||
|
cmdclass=cmdclass,
|
||
|
entry_points="""
|
||
|
[pretalx.plugin]
|
||
|
pretalx_matomocamp=pretalx_matomocamp:PretalxPluginMeta
|
||
|
""",
|
||
|
)
|