-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
63 lines (58 loc) · 1.75 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
#
# setup.py for maxarcat
#
# Increment the version stored in the file maxarcat/version.txt.
# Then build a wheel to the dist directory.
#
import os.path
import setuptools
# Read version from maxarcat/version.txt
root_dir = os.path.dirname(__file__)
version_file = os.path.join(root_dir, 'maxarcat', 'version.txt')
print(f'Reading version from {version_file}')
with open(version_file, 'r') as file:
version = file.read().strip()
print(f'Building version {version}')
long_description = '''
Maxarcat is a Python client for searching the
[Maxar Catalog](https://doc.content.maxar.com).
'''
setuptools.setup(
name="maxarcat",
version=version,
author="Maxar",
description="Maxar Catalog Python client",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/Maxar-Corp/maxarcat",
packages=[
'maxarcat',
'maxarcat_client',
'maxarcat_client.api',
'maxarcat_client.models'],
package_dir = {
'maxarcat': 'maxarcat',
'maxarcat_client': 'maxarcat_client/maxarcat_client',
'maxarcat_client.api': 'maxarcat_client/maxarcat_client/api',
'maxarcat_client.models': 'maxarcat_client/maxarcat_client/models'
},
package_data={
'maxarcat': ['version.txt']
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: GIS"
],
install_requires=[
# Required by maxarcat
'requests',
# Required by maxarcat_client. See maxarcat_client/setup.py
'certifi',
'python-dateutil',
'six',
'urllib3'
],
python_requires='>=3.8'
)