diff --git a/README.md b/README.md index ffe29fc..33a79bd 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c5beebb..0000000 --- a/requirements.txt +++ /dev/null @@ -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 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6f86a11 --- /dev/null +++ b/setup.cfg @@ -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 diff --git a/setup.py b/setup.py index 4d6062a..6068493 100644 --- a/setup.py +++ b/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()