Uh oh!
There was an error while loading. Please reload this page.
forked from planetlabs/planet-client-python
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
92 lines (83 loc) · 2.61 KB
/
Copy pathsetup.py
File metadata and controls
92 lines (83 loc) · 2.61 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright 2015 Planet Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
fromcodecsimportopenascodecs_open
fromsetuptoolsimportsetup, find_packages
# Get the long description from the relevant file
try:
withcodecs_open('README.rst', encoding='utf-8') asf:
long_description=f.read()
except:
# @todo for now, fall back to this - pex fails to resolve the README
long_description=''
withopen('planet/api/__version__.py') asf:
forlineinf:
ifline.find("__version__") >=0:
version=line.split("=")[1].strip()
version=version.strip('"')
version=version.strip("'")
continue
test_requires= [
'mock',
'pytest',
'requests-mock',
]
dev_requires= [
'flake8',
'setuptools',
'pex',
'pytest-cov',
'sphinx',
'wheel',
'mock',
'requests-mock',
]
setup(name='planet',
version=version,
description=u"Planet API Client",
long_description=long_description,
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development',
'Topic :: Utilities'
],
keywords='planet api client',
author=u"Ian Schneider",
author_email='ischneider@planet.com',
url='https://github.com/planetlabs/planet-client-python',
license='Apache 2.0',
packages=find_packages(exclude=['examples', 'tests']),
data_files=[('', ['LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=[
'click',
'requests',
'requests_futures == 0.9.7',
'pywin32 >= 1.0;platform_system=="Windows"'
],
extras_require={
'test': test_requires,
'dev': test_requires+dev_requires,
},
entry_points="""
[console_scripts]
planet=planet.scripts:main
"""
)