mirror of
https://github.com/pretix/pretix.git
synced 2026-08-28 13:34:40 +00:00
Simplify and update setup.py and requirements
This commit is contained in:
@@ -1,4 +1 @@
|
|||||||
-r requirements/production.txt
|
-r requirements/production.txt
|
||||||
-r requirements/paypal.txt
|
|
||||||
-r requirements/stripe.txt
|
|
||||||
-r requirements/banktransfer.txt
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
chardet>=2.3,<3
|
|
||||||
mt-940==3.2
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
paypalrestsdk==1.12.*
|
|
||||||
pycparser==2.13 # https://github.com/eliben/pycparser/issues/147
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
# Functional requirements
|
# Functional requirements
|
||||||
Django>=1.10,<1.11
|
Django==1.0.*
|
||||||
python-dateutil
|
python-dateutil
|
||||||
pytz
|
pytz
|
||||||
django-bootstrap3>=7.1,<7.2
|
django-bootstrap3==7.1.*
|
||||||
django-formset-js-improved==0.5.0.1
|
django-formset-js-improved==0.5.0.1
|
||||||
django-compressor==2.1
|
django-compressor==2.1
|
||||||
reportlab>=3.2,<3.3
|
reportlab==3.2.*
|
||||||
PyPDF2==1.26.*
|
PyPDF2==1.26.*
|
||||||
easy-thumbnails>=2.2,<3
|
easy-thumbnails==2.*
|
||||||
django-libsass
|
django-libsass
|
||||||
libsass
|
libsass
|
||||||
django-otp==0.3.*
|
django-otp==0.3.*
|
||||||
@@ -17,8 +17,6 @@ celery==4.0.2
|
|||||||
kombu==4.0.2
|
kombu==4.0.2
|
||||||
django-statici18n==1.2.*
|
django-statici18n==1.2.*
|
||||||
inlinestyler==0.2.*
|
inlinestyler==0.2.*
|
||||||
|
|
||||||
# Deployment / static file compilation requirements
|
|
||||||
BeautifulSoup4
|
BeautifulSoup4
|
||||||
html5lib<0.99999999,>=0.999 # version requirement by bleach
|
html5lib<0.99999999,>=0.999 # version requirement by bleach
|
||||||
slimit
|
slimit
|
||||||
@@ -30,3 +28,11 @@ django-markup
|
|||||||
markdown
|
markdown
|
||||||
bleach
|
bleach
|
||||||
raven
|
raven
|
||||||
|
# Stripe
|
||||||
|
stripe==1.22.*
|
||||||
|
# PayPal
|
||||||
|
paypalrestsdk==1.12.*
|
||||||
|
pycparser==2.13 # https://github.com/eliben/pycparser/issues/147
|
||||||
|
# Banktransfer
|
||||||
|
chardet>=2.3,<3
|
||||||
|
mt-940==3.2
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
typing
|
typing
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
django-redis>=4.1,<4.2
|
django-redis==4.1.*
|
||||||
redis==2.10.5
|
redis==2.10.5
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
stripe>=1.22,<1.23
|
|
||||||
|
|
||||||
+61
-17
@@ -5,11 +5,16 @@ from os import path
|
|||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
|
from pretix import __version__
|
||||||
|
|
||||||
here = path.abspath(path.dirname(__file__))
|
here = path.abspath(path.dirname(__file__))
|
||||||
|
|
||||||
# Get the long description from the relevant file
|
# Get the long description from the relevant file
|
||||||
with open(path.join(here, '../README.md'), encoding='utf-8') as f:
|
try:
|
||||||
long_description = f.read()
|
with open(path.join(here, '../README.md'), encoding='utf-8') as f:
|
||||||
|
long_description = f.read()
|
||||||
|
except:
|
||||||
|
long_description = ''
|
||||||
|
|
||||||
|
|
||||||
class CustomBuild(build):
|
class CustomBuild(build):
|
||||||
@@ -37,10 +42,10 @@ cmdclass = {
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pretix',
|
name='pretix',
|
||||||
version='0.0.0',
|
version=__version__,
|
||||||
description='Reinventing ticket presales',
|
description='Reinventing ticket presales',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='http://pretix.eu',
|
url='https://pretix.eu',
|
||||||
author='Raphael Michel',
|
author='Raphael Michel',
|
||||||
author_email='mail@raphaelmichel.de',
|
author_email='mail@raphaelmichel.de',
|
||||||
license='Apache License 2.0',
|
license='Apache License 2.0',
|
||||||
@@ -56,24 +61,63 @@ setup(
|
|||||||
|
|
||||||
keywords='tickets web shop ecommerce',
|
keywords='tickets web shop ecommerce',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'Django>=1.9,<1.10', 'python-dateutil>=2.4,<2.5',
|
'Django==1.10.*',
|
||||||
'pytz', 'django-bootstrap3>=6.2,<6.3', 'django-formset-js',
|
'python-dateutil==2.4.*',
|
||||||
'django-compressor==2.0', 'reportlab>=3.2,<3.3',
|
'pytz',
|
||||||
'easy-thumbnails>=2.2,<3'
|
'django-bootstrap3==7.1.*',
|
||||||
'PyPDF2', 'BeautifulSoup4', 'html5lib',
|
'django-formset-js-improved==0.5.0.1',
|
||||||
'slimit', 'lxml', 'static3==0.6.1', 'dj-static', 'chardet',
|
'django-compressor==2.1',
|
||||||
'csscompressor', 'mt-940', 'django-markup', 'markdown'
|
'reportlab==3.2.*',
|
||||||
|
'easy-thumbnails==2.*'
|
||||||
|
'PyPDF2==1.26.*',
|
||||||
|
'django-libsass',
|
||||||
|
'libsass',
|
||||||
|
'django-otp==0.3.*',
|
||||||
|
'python-u2flib-server==4.*',
|
||||||
|
'django-formtools==1.0',
|
||||||
|
'celery==4.0.2',
|
||||||
|
'kombu==4.0.2',
|
||||||
|
'django-statici18n==1.2.*',
|
||||||
|
'inlinestyler==0.2.*',
|
||||||
|
'BeautifulSoup4',
|
||||||
|
'html5lib<0.99999999,>=0.999',
|
||||||
|
'slimit',
|
||||||
|
'lxml',
|
||||||
|
'static3==0.6.1',
|
||||||
|
'dj-static',
|
||||||
|
'csscompressor',
|
||||||
|
'django-markup',
|
||||||
|
'markdown',
|
||||||
|
'bleach',
|
||||||
|
'raven',
|
||||||
|
'paypalrestsdk==1.12.*',
|
||||||
|
'pycparser==2.13',
|
||||||
|
'django-redis==4.1.*',
|
||||||
|
'redis==2.10.5',
|
||||||
|
'stripe==1.22.*',
|
||||||
|
'chardet>=2.3,<3',
|
||||||
|
'mt940==3.2'
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
'dev': ['django-debug-toolbar>=1.3.0,<2.0'],
|
'dev': [
|
||||||
'test': ['pep8==1.5.7', 'pyflakes', 'pep8-naming', 'flake8', 'coverage',
|
'django-debug-toolbar==1.5',
|
||||||
'pytest', 'pytest-django'],
|
'sqlparse==0.2.1',
|
||||||
|
'pep8==1.5.7',
|
||||||
|
'pyflakes==1.1.0',
|
||||||
|
'flake8',
|
||||||
|
'pep8-naming',
|
||||||
|
'coveralls',
|
||||||
|
'coverage',
|
||||||
|
'pytest==2.9.*',
|
||||||
|
'pytest-django',
|
||||||
|
'isort',
|
||||||
|
'pytest-mock',
|
||||||
|
'pytest-rerunfailures',
|
||||||
|
'pytest-warnings'
|
||||||
|
],
|
||||||
'memcached': ['pylibmc'],
|
'memcached': ['pylibmc'],
|
||||||
'mysql': ['mysqlclient'],
|
'mysql': ['mysqlclient'],
|
||||||
'paypal': ['paypalrestsdk>=1.9,<1.10,<2.0'],
|
|
||||||
'postgres': ['psycopg2'],
|
'postgres': ['psycopg2'],
|
||||||
'redis': ['django-redis>=4.1,<4.2', 'redis>=2.10,<2.11'],
|
|
||||||
'stripe': ['stripe>=1.22,<1.23']
|
|
||||||
},
|
},
|
||||||
|
|
||||||
packages=find_packages(exclude=['tests', 'tests.*']),
|
packages=find_packages(exclude=['tests', 'tests.*']),
|
||||||
|
|||||||
Reference in New Issue
Block a user