-
Notifications
You must be signed in to change notification settings - Fork 77
/
setup.py
88 lines (83 loc) · 2.55 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/python3
import os
import distutils.command.build
from pathlib import Path
from setuptools import setup, find_packages
from shutil import copy
here = os.path.abspath(os.path.dirname(__file__))
class BuildCommand(distutils.command.build.build):
def run(self):
distutils.command.build.build.run(self)
from django.core.management import call_command
curdir = os.getcwd()
for subdir in ('geotrek', ):
os.chdir(subdir)
call_command('compilemessages')
for path in Path('.').rglob('*.mo'):
copy(path, os.path.join(curdir, self.build_lib, subdir, path))
os.chdir(curdir)
setup(
name='geotrek',
version=open(os.path.join(here, 'VERSION')).read().strip(),
author='Makina Corpus',
author_email='[email protected]',
url='https://makina-corpus.com',
description="Geotrek",
scripts=['manage.py'],
install_requires=[
'Django==4.2.*',
'backports-zoneinfo;python_version<"3.10"', # not directly needed but required to make it worked with 3.10
'mapentity',
'chardet',
'cairosvg',
'cairocffi',
'python-dotenv',
# pinned by requirements.txt
'pymemcache',
'coreschema',
'coreapi',
'psycopg2',
'pdfimpose',
'docutils',
'Pillow',
'simplekml',
'pygal',
'paperclip',
'django-extended-choices',
'django-modelcluster',
'django-mptt',
'geojson',
'tif2geojson',
'drf-dynamic-fields',
'drf-yasg',
'xlrd',
'landez',
'large-image-source-vips',
'django-large-image',
'celery',
'redis',
'django-celery-results',
'drf-extensions',
'django-colorfield',
'Fiona',
'markdown',
"weasyprint==52.5", # newer version required libpango (not available in bionic)
'django-weasyprint<2.0.0', # 2.10 require weasyprint > 53
"django-clearcache",
"pyopenair",
"django-treebeard",
# prod,
'gunicorn',
'sentry-sdk',
'easy-thumbnails[svg]',
],
cmdclass={"build": BuildCommand},
include_package_data=True,
license='BSD, see LICENSE file.',
packages=find_packages(),
classifiers=['Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3'],
)