forked from efdevcon/pretix-eth-payment-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (62 loc) · 1.81 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
71
72
73
74
import os
from distutils.command.build import build # type: ignore
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8') as f:
long_description = f.read()
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,<7',
'pytest-django>=3.5,<4',
],
'lint': [
'flake8>=3.7,<5',
'mypy==0.931',
],
'dev': [
'tox>=3.14.5,<4',
],
}
extras_require['dev'] = (
extras_require['dev']
+ extras_require['test']
+ extras_require['lint']
)
setup(
name='pretix-eth-payment-plugin',
version='2.0.6-dev',
description='Ethereum payment provider plugin for pretix software',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/esPass/pretix-eth-payment-plugin',
author='Pretix Ethereum Plugin Developers',
author_email='[email protected]',
license='Apache Software License',
install_requires=[
"pretix>=3.8.0",
"web3>=5.7.0",
"eth-abi>=2.1.1,<3",
"eth-typing>=2.2.1,<3",
"eth-utils>=1.8.4,<2",
"eth-hash[pycryptodome]>=0.3.1,<0.4",
# Requests requires urllib3 <1.26.0. Can delete this later after
# requests gets its act together.
"urllib3<1.27.0",
],
python_requires='>=3.7, <4',
extras_require=extras_require,
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
cmdclass=cmdclass,
entry_points="""
[pretix.plugin]
pretix_eth=pretix_eth:PretixPluginMeta
""",
)