-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
55 lines (49 loc) · 1.46 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
#!/usr/bin/env python3
import os
import sys
import json
import packaging.version
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'package.json')) as f:
version = json.load(f)['version']
# Make sure we can parse this version
packaging.version.Version(version)
if sys.version_info < (3, 5):
print('Sorry only python 3.5 and up is supported', file=sys.stderr)
sys.exit(1)
requires = [
'requests>=2.20.0',
'fusepy>3.0.0,<4.0.0',
'packaging>=20.8',
]
if sys.platform.startswith('win32'):
requires += [
'cffi >= 1.0.0',
'winfspy >= 0.2.0',
]
setup(
name='codegrade-fs',
author='The CodeGrade team',
author_email='info@codegra.de',
maintainer='The CodeGrade team',
maintainer_email='info@codegra.de',
version=version,
description='Filesystem for CodeGrade instances',
install_requires=requires,
long_description=open('README.md', 'r', encoding='utf-8').read(),
long_description_content_type="text/markdown",
packages=['codegra_fs'],
entry_points={
'console_scripts':
[
'cgfs = codegra_fs.cgfs:main',
'cgapi-consumer = codegra_fs.api_consumer:main',
]
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: POSIX',
'Operating System :: MacOS',
],
)