Include license in sdist (#6)
* 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:
Родитель
535436888b
Коммит
e9683afe3f
|
@ -27,7 +27,6 @@ python3 -m venv env
|
|||
source env/bin/activate
|
||||
|
||||
## Install requirements
|
||||
python3 -m pip install -r requirements.txt
|
||||
python3 -m pip install -r requirements-dev.txt
|
||||
|
||||
## 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
|
|
@ -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
|
39
setup.py
39
setup.py
|
@ -1,38 +1,3 @@
|
|||
import os
|
||||
from imp import load_source
|
||||
from setuptools import setup, find_namespace_packages
|
||||
from glob import glob
|
||||
import io
|
||||
from setuptools import setup
|
||||
|
||||
name = "planetary-computer"
|
||||
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)
|
||||
setup()
|
||||
|
|
Загрузка…
Ссылка в новой задаче