-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
51 lines (43 loc) · 1.48 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
import os
import re
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(here, 'pymaps', '__version__.py')
with open(version_file) as init:
version_file = init.read()
version_pattern = '[0-9]{1,2}\.[0-9]{1,2}.[0-9]{1,2}'
version = re.search(version_pattern, version_file).group()
pkg_data = {'': ['templates/*.j2',
'styles/*.txt',]}
pkgs = ['pymaps']
# Dependencies
with open('requirements.txt') as f:
dependencies = f.readlines()
install_requires = [t.strip() for t in dependencies]
config = dict(
name='pymaps',
version=version,
description='Make beautiful maps with Google Maps JS API and Python',
long_description='',
author='Rafael Alves Ribeiro',
author_email='rafael.alves.ribeiro@gmail.com',
url='https://github.com/rafpyprog/pygmaps.git',
keywords='data visualization',
classifiers=[
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: MIT License',
'Development Status :: 2 - Pre-Alpha'],
packages=pkgs,
package_data=pkg_data,
license='License :: OSI Approved :: MIT License',
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=[
'pytest', 'pytest-cov', 'requests',
],
include_package_data=True
)
setup(**config)