* Include license in sdist

Currently, only the wheels had the LICENSE file.

* Update to static setup.py file

* Fixup

* fix content type
This commit is contained in:
Tom Augspurger 2021-04-23 08:53:19 -05:00 коммит произвёл GitHub
Родитель 535436888b
Коммит e9683afe3f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 24 добавлений и 43 удалений

Просмотреть файл

@ -27,7 +27,6 @@ python3 -m venv env
source env/bin/activate source env/bin/activate
## Install requirements ## Install requirements
python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements-dev.txt python3 -m pip install -r requirements-dev.txt
## Install locally ## Install locally

Просмотреть файл

@ -1,5 +0,0 @@
click>=7.1
pydantic[dotenv]>=1.7.3
pystac>=0.5.6,<0.6
pytz>=2020.5
requests>=2.25.1

22
setup.cfg Normal file
Просмотреть файл

@ -0,0 +1,22 @@
[metadata]
name = planetary-computer
version = 0.1.0
license_file = LICENSE
author = microsoft
author_email = planetarycomputer@microsoft.com
long_description = file:README.md
long_description_content_type = text/markdown
description = Planetary Computer SDK for Python
[options]
packages = planetary_computer
install_requires =
click>=7.1
pydantic[dotenv]>=1.7.3
pystac>=0.5.6,<0.6
pytz>=2020.5
requests>=2.25.1
[options.entry_points]
console_scripts =
planetarycomputer = planetary_computer.scripts.cli:app

Просмотреть файл

@ -1,38 +1,3 @@
import os from setuptools import setup
from imp import load_source
from setuptools import setup, find_namespace_packages
from glob import glob
import io
name = "planetary-computer" setup()
description = "Planetary Computer SDK for Python"
__version__ = load_source(
"planetary_computer.version",
os.path.join(os.path.dirname(__file__),
"planetary_computer/version.py")).__version__
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:
install_requires = [line.split(" ")[0] for line in f.read().split("\n")]
# TODO: Remove. Gets around error with git dependencies.
install_requires = [x for x in install_requires if not x.startswith("git")]
with open(os.path.join(here, "README.md")) as readme_file:
readme = readme_file.read()
setup(name=name,
description=description,
version=__version__,
long_description=readme,
long_description_content_type="text/markdown",
author="microsoft",
author_email="planetarycomputer@microsoft.com",
packages=find_namespace_packages(),
include_package_data=False,
entry_points={"console_scripts": ["planetarycomputer=planetary_computer.scripts.cli:app"]},
install_requires=install_requires)