Get Sentinel-2 (Cloud Optimized Geotiffs) COG files from AWS S3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

72 lines
2.0 KiB

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 's2froms3'
DESCRIPTION = (
'Get Sentinel-2 (Cloud Optimized Geotiffs) COG files from AWS S3.'
)
URL = 'https://github.com/kikocorreoso/s2froms3'
EMAIL = 'kikocorreoso@example.com'
AUTHOR = 'Kiko Correoso'
REQUIRES_PYTHON = '>=3.7,<3.10'
VERSION = '0.2.0'
# What packages are required for this module to be executed?
REQUIRED = ['mgrs', 's3fs']
# What packages are optional?
EXTRAS = {
'tests': ['pytest'],
}
here = os.path.abspath(os.path.dirname(__file__))
# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
try:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
# Where the magic happens:
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
package_dir={"": "src"},
packages=find_packages("src"),
install_requires=REQUIRED,
extras_require=EXTRAS,
include_package_data=True,
license='MIT',
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython'
],
)