-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (56 loc) · 1.6 KB
/
setup.py
File metadata and controls
62 lines (56 loc) · 1.6 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
59
60
61
62
#!/usr/bin/env python
"""
sqlalchemy-geonames
-------------------
"""
from __future__ import print_function
from setuptools import setup, find_packages
appname = 'sqlalchemy-geonames'
pkgname = appname.lower().replace('-', '_')
metadata_relpath = '{}/metadata.py'.format(pkgname)
# Get package metadata. We use exec here instead of importing the
# package directly, so we can avoid any potential import errors.
with open(metadata_relpath) as fh:
metadata = {}
exec(fh.read(), globals(), metadata)
setup(
name=appname,
version=metadata['__version__'],
description='',
long_description=__doc__,
packages=find_packages(exclude=('sqlalchemy_geonames.tests', )),
install_requires=[
'GeoAlchemy2',
'ipdb',
'progressbar2',
'psycopg2',
'requests',
'SQLAlchemy',
],
entry_points={
'console_scripts': {
'sqlageonames = sqlalchemy_geonames.bin.sqlageonames:main',
},
},
extras_require={
'test': {
'coverage>=4.2',
'flake8>=3.0.4',
'pytest>=3.0.3',
'sqlalchemy-utils>=0.32.9',
},
},
author='Jacob Magnusson',
author_email='m@jacobian.se',
url='https://github.com/jmagnusson/sqlalchemy-geonames',
license='BSD',
platforms=['unix', 'macos'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python',
],
)