This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
/
setup.py
executable file
·64 lines (52 loc) · 1.54 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
#!/usr/bin/env python3
"""
onedrive-d
A Microsoft OneDrive client for Linux.
:copyright: (c) Xiangyu Bu
:license: MIT
"""
import sys
from setuptools import setup, find_packages
from onedrived import __author__, __email__, __homepage__, __project__, __version__
with open('requirements.txt', 'r') as f:
install_requires = f.readlines()
test_requires = [
'requests-mock',
]
with open('README.md', 'r') as f:
readme = f.read()
python_version = sys.version_info
if python_version < (3, 3):
raise Exception('%s %s only supports Python 3.3 and newer.' % (__project__, __version__))
if python_version < (3, 4):
install_requires.append('asyncio')
install_requires.append('enum34')
if python_version < (3, 5):
install_requires.append('dbus-python')
setup(
name=__project__,
version=__version__,
author=__author__,
author_email=__email__,
url=__homepage__,
description='A Microsoft OneDrive client for Linux written in Python 3.',
license='MIT',
long_description=readme,
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
include_package_data=True,
package_data={
'onedrived': ['data/*', 'lang/*']
},
package_dir={'onedrived': 'onedrived'},
entry_points={
'console_scripts': [
'onedrived = onedrived.od_main:main',
'onedrived-pref = onedrived.od_pref:main'
],
'gui_scripts': []
},
install_requires=install_requires,
tests_require=test_requires,
test_suite='tests',
zip_safe=False
)