-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (49 loc) · 1.87 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
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright © SARDES Project Contributors
# https://github.com/cgq-qgc/sardes
#
# This file is part of SARDES.
# Licensed under the terms of the GNU General Public License.
# -----------------------------------------------------------------------------
"""Installation script """
import setuptools
from setuptools import setup
from sardes import __version__, __project_url__
import csv
DESCRIPTION = "Suivi, analyse et représentation de données d’eau souterraine."
with open('requirements.txt', 'r') as csvfile:
INSTALL_REQUIRES = list(csv.reader(csvfile))
INSTALL_REQUIRES = [item for sublist in INSTALL_REQUIRES for item in sublist]
with open('requirements-dev.txt', 'r') as csvfile:
DEV_INSTALL_REQUIRES = list(csv.reader(csvfile))
DEV_INSTALL_REQUIRES = [
item for sublist in DEV_INSTALL_REQUIRES for item in sublist]
EXTRAS_REQUIRE = {
'dev': DEV_INSTALL_REQUIRES,
'build': ['pyinstaller==4.9', 'tornado']
}
PACKAGE_DATA = {
'sardes': ['ressources/icons/*.png',
'ressources/icons/*.svg',
'ressources/sardes_splash.png',
'ressources/sardes_banner.png',
'locale/fr/LC_MESSAGES/*.mo']
}
setup(name='sardes',
version=__version__,
description=DESCRIPTION,
license='MIT',
author='Jean-Sébastien Gosselin',
author_email='[email protected]',
url=__project_url__,
ext_modules=[],
packages=setuptools.find_packages(),
package_data=PACKAGE_DATA,
include_package_data=True,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
classifiers=["Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"],
)