-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
executable file
·66 lines (56 loc) · 1.73 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
65
66
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
from setuptools import find_packages
from setuptools.command.install import install
VERSION = '1.5.2'
class VerifyVersionCommand(install):
description = 'verify that git tag matches VERSION prior to publishing to pypi'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if tag != VERSION:
info = 'Git tag: {0} does not match the version of this app: {1}'.format(
tag, VERSION
)
sys.exit(info)
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
pandas = [
'pandas>=0.24.0'
]
setup(
name='directaccess',
version=VERSION,
description='Enverus Direct Access API Python Client',
long_description=read('README.md'),
long_description_content_type='text/markdown',
author='Cole Howard',
author_email='wchatx@gmail.com',
url='https://github.com/wchatx/direct-access-py',
license='MIT',
keywords=['enverus', 'drillinginfo', 'oil', 'gas'],
packages=find_packages(exclude=('test*', )),
package_dir={'directaccess': 'directaccess'},
install_requires=[
'requests>=2.16.0',
'unicodecsv==0.14.1',
'urllib3>=1.26.0',
],
extras_require={'pandas': pandas},
cmdclass={
'verify': VerifyVersionCommand,
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3'
]
)