-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (50 loc) · 1.46 KB
/
setup.py
File metadata and controls
58 lines (50 loc) · 1.46 KB
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
import io
import os
import re
import setuptools
def get_long_desc():
basedir = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(basedir, "README.md"), encoding="utf-8") as f:
return f.read()
def get_version():
cwd = os.path.abspath(os.path.dirname(__file__))
current_version = os.path.join(cwd, "MapSyncer", "components", "version_.py")
with io.open(current_version, encoding="utf-8") as f:
return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1)
# TODO: This part will be removed with an alternative solution.
INSTALL_REQUIRES = [
'mapilio-kit',
'ExifRead',
'calculation-mapilio==0.1.39',
'requests_oauthlib',
'imagesize',
'setuptools',
'psutil',
'flask',
'python-dotenv',
'osm-login-python'
]
setuptools.setup(
name="mapsyncer",
version=get_version(),
author="Mapilio",
description="A toolkit to download and upload the data from KartaView to Mapilio",
long_description=get_long_desc(),
long_description_content_type='text/markdown',
url="https://github.com/mapilio/MapSyncer",
packages=setuptools.find_packages(),
package_data={
'MapSyncer': [
'static/*',
'templates/*'
]
},
license='MIT License',
python_requires='>=3.6',
install_requires=INSTALL_REQUIRES,
entry_points={
"console_scripts": [
"RunMapSyncer=MapSyncer.app:main"
]
}
)