-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·68 lines (60 loc) · 2.04 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
67
68
#!/usr/bin/env python
import io
import os
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
# get the dependencies and installs
with io.open(os.path.join(here, "requirements.txt"), encoding="utf-8") as f:
all_reqs = f.read().split("\n")
def get_name_repo(url):
"""get the name of package from git repository url"""
return url.split("/")[-1].split(".")[0]
install_requires = [x.strip() for x in all_reqs if "git+" not in x]
install_requires += [f"{get_name_repo(x)} @ {x}" for x in all_reqs if "git+" in x]
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="landsat2geojson",
author="Junior Flores",
author_email="junior@developmentseed.org",
version="0.0.3",
description="Script to extract features from landsat",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/yunica/landsat2geojson",
keywords=[
"earth observation",
"remote sesing",
"GIS",
"satellite imagery",
"landsat",
"water",
"usgs",
"geojson",
"overpass"
],
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
],
entry_points={
"console_scripts": [
"landsat2geojson = landsat2geojson.main:main",
]
},
packages=find_packages(exclude=["docs", "tests*"]),
include_package_data=True,
install_requires=install_requires,
python_requires='>=3.9'
)