-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
70 lines (59 loc) · 1.74 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import os
from distutils.command.build import build
from setuptools import find_packages, setup
try:
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8') as f:
long_description = f.read()
except FileNotFoundError:
long_description = ''
class CustomBuild(build):
def run(self):
from django.core import management
management.call_command('compilemessages', verbosity=1)
build.run(self)
cmdclass = {
'build': CustomBuild
}
extras_require = {
'test': [
'pytest>=5.1,<6',
'pytest-django>=3.5,<4',
'django_mysql<4.6.0', # 4.6.0 got incompatible as they removed
# a function in https://github.com/adamchainz/django-mysql/commit/40da1f9de6571bf8aef6b99841e7d21bcd53d5b7
],
'lint': [
'flake8>=3.7,<4',
'mypy==0.720',
],
'dev': [
'tox>=3.14.5,<4',
],
}
extras_require['dev'] = (
extras_require['dev']
+ extras_require['test']
+ extras_require['lint']
)
setup(
name='pretix-attestation-placeholder-plugin',
version='0.2.2',
description='Pretix Ethereum Plugin Developers',
long_description=long_description,
url='https://github.com/efdevcon/pretix-attestation-placeholder-plugin',
author='Pretix Ethereum Plugin Developers',
author_email='[email protected]',
license='MIT License',
install_requires=[
"pretix>=3.8.0",
"urllib3<1.26.0",
],
python_requires='>=3.6, <4',
extras_require=extras_require,
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
cmdclass=cmdclass,
entry_points="""
[pretix.plugin]
pretix_attestation_plugin=pretix_attestation_plugin:PretixPluginMeta
""",
)