Skip to content

Commit

Permalink
Simplify by installing pytest in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt authored Aug 1, 2024
1 parent d1aea5d commit 309e8eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ RUN mkdir -p /code
WORKDIR /code
ADD . /code

ARG ENVIRONMENT=test

RUN echo "Installing dea-coastlines through the Dockerfile."
RUN pip install --extra-index-url="https://packages.dea.ga.gov.au" .

Expand Down
15 changes: 3 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
# Where are we?
IS_SANDBOX = "sandbox" in os.getenv("JUPYTER_IMAGE", default="")

tests_require = [
"pytest",
"pytest-dependency",
"pytest-cov",
]

extras = {
'test': tests_require,
}

# What packages are required for this module to be executed?
REQUIRED = [
"aiohttp",
Expand All @@ -35,6 +25,9 @@
"pandas",
"pygeos",
"pyproj",
"pytest",
"pytest-dependency",
"pytest-cov",
"pyTMD",
"python_geohash",
"pytz",
Expand Down Expand Up @@ -68,8 +61,6 @@
"python_requires": REQUIRES_PYTHON,
"url": URL,
"install_requires": REQUIRED if not IS_SANDBOX else [],
"tests_require": tests_require,
"extras_require": extras,
"packages": find_packages(),
"include_package_data": True,
"license": "Apache License 2.0",
Expand Down

0 comments on commit 309e8eb

Please sign in to comment.