pretix-servicefees/setup.py

45 lines
1.0 KiB
Python
Raw Permalink Normal View History

2018-02-27 23:12:01 +01:00
import os
from distutils.command.build import build
from django.core import management
from setuptools import setup, find_packages
try:
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
except:
long_description = ''
class CustomBuild(build):
def run(self):
2018-09-11 17:55:15 +02:00
management.call_command('compilemessages', verbosity=1)
2018-02-27 23:12:01 +01:00
build.run(self)
cmdclass = {
'build': CustomBuild
}
setup(
name='pretix-servicefees',
2020-10-26 10:00:02 +01:00
version='1.6.0',
2018-02-27 23:12:01 +01:00
description='Allows you to impose a service fee on all non-free orders.',
long_description=long_description,
url='https://github.com/pretix/pretix-servicefees',
author='Raphael Michel',
author_email='michel@rami.io',
license='Apache Software License',
install_requires=[],
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
cmdclass=cmdclass,
entry_points="""
[pretix.plugin]
pretix_servicefees=pretix_servicefees:PretixPluginMeta
""",
)