-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
61 lines (49 loc) · 1.91 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
install_requires = ['mysql-connector-python',
'ldap3',
'ruamel.yaml',
'requests']
setup_requires = ['pytest-runner']
dev_require = ['pylint',
'tox']
tests_require = ['pytest>=4',
'pytest-docker',
'sqlparse',
'cachetools']
entry_points = {
'console_scripts': [
'synchromoodle = synchromoodle.__main__:main'
],
}
dependency_links = ['https://github.com/Toilal/pytest-docker/tarball/master#egg=pytest-docker']
with open('synchromoodle/__version__.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]$', f.read(), re.MULTILINE).group(1)
args = dict(name='synchromoodle',
version=version,
description='Scripts de synchronisation Moodle.',
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Development Status :: 5 - Production/Stable',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
packages=find_packages(),
dependency_links=dependency_links,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
entry_points=entry_points,
test_suite='test',
zip_safe=True,
extras_require={
'test': tests_require,
'dev': dev_require
})
setup(**args)