-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
37 lines (30 loc) · 1.06 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
#!/usr/bin/env python
from distutils.core import setup, Command
from epsg import __version__
class TestCommand(Command):
"""
Custom distutils command for running the test suite
"""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import os.path
from test import unittest
test_dir = os.path.join(os.path.dirname(__file__), 'test')
package_suite = unittest.TestLoader().discover(test_dir)
unittest.TextTestRunner(verbosity=2).run(package_suite)
setup(name='python-epsg',
version=__version__,
description='An interface to the EPSG Geodetic Parameter Dataset at http://www.epsg-registry.org',
author='Homme Zwaagstra',
author_email='[email protected]',
url='http://github.com/geo-data/python-epsg',
download_url='https://github.com/geo-data/python-epsg/tarball/v%s' % __version__,
license='BSD',
packages=['epsg'],
keywords = ['epsg'],
cmdclass = { 'test': TestCommand }
)