From 40961a1ec915825de7f863a7387e2ecaebbcdf52 Mon Sep 17 00:00:00 2001 From: Robin Cole Date: Tue, 10 Dec 2024 14:13:00 +0000 Subject: [PATCH 1/2] fix url and delete cell --- quickstart.ipynb | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/quickstart.ipynb b/quickstart.ipynb index 062dcd23..a1891a5d 100644 --- a/quickstart.ipynb +++ b/quickstart.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/robmarkcole/earthdaily-python-client/blob/update-documentation/quickstart.ipynb)" + "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/earthdaily/earthdaily-python-client/blob/main/quickstart.ipynb)" ] }, { @@ -68,28 +68,6 @@ " print(\"No .env file found\")" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Validate credentials are present" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import os\n", - "\n", - "# check the EDS_AUTH_URL env var is set\n", - "if not os.getenv(\"EDS_API_URL\"):\n", - " raise ValueError(\"EDS_AUTH_URL not set in .env file\")\n", - "else:\n", - " print(\"EDS_AUTH_URL found: \", os.getenv(\"EDS_API_URL\"))" - ] - }, { "cell_type": "markdown", "metadata": {}, From 45550dc1a9602f3262f8dae059bcd57558528d2d Mon Sep 17 00:00:00 2001 From: Robin Cole Date: Tue, 10 Dec 2024 14:58:31 +0000 Subject: [PATCH 2/2] fix --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c6659542..4c639255 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,9 @@ if line.startswith("__version__"): version = line.split("=")[1].split('"')[1] +with open("README.md", encoding="utf-8") as f: + long_description = f.read() + setup( name="earthdaily", packages=find_packages(exclude=['tests']), @@ -14,7 +17,7 @@ description="earthdaily: easy authentication, search and retrieval of Earth Data Store collections data", author="EarthDaily Agro", python_requires=">=3.10", - long_description=open("README.md").read(), + long_description=long_description, long_description_content_type="text/markdown", install_requires=[ "numpy",