Skip to content

Commit

Permalink
Removing setup.py in favor of setup.cfg
Browse files Browse the repository at this point in the history
Using requirements.txt to declare dependencies
Improved cacheability for Dockerfile
  • Loading branch information
constantinius committed Apr 27, 2023
1 parent 1b0ac2d commit 540d725
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 165 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ RUN mkdir $PROMETHEUS_MULTIPROC_DIR # make sure this is writable by webserver u

RUN mkdir /opt/eoxserver/
WORKDIR /opt/eoxserver

# install dependencies
COPY requirements.txt .
RUN python3 -m pip install -U pip \
&& python3 -m pip install --no-cache-dir -r requirements.txt

# install EOxServer
COPY . .
RUN python3 -m pip install --no-cache-dir . \
&& chmod +x entrypoint.sh
Expand Down
18 changes: 18 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
django<4
python-dateutil
django-model-utils<5.0.0
django-utils-six==2.0
django-prometheus
tzdata
zipstream
psycopg2
lxml
pycql==0.0.8
matplotlib
pyows>=0.2.6
python-keystoneclient<6.0.0
python-swiftclient<5.0.0
jsonfield
gunicorn
mapscript
gdal
65 changes: 65 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
[metadata]
name = EOxServer
version = attr: eoxserver.__version__
author = EOX IT Services GmbH
author_email = [email protected]
maintainer = EOX IT Services GmbH
maintainer_email = [email protected]
description = EOxServer is a server for Earth Observation (EO) data
long_description = file: README.md
long_description_content_type = text/markdown
keywords = Earth Observation, EO, OGC, WCS, WMS
license = EOxServer Open License (MIT-style)
url = http://eoxserver.org/
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: Web Environment
Framework :: Django
Intended Audience :: End Users/Desktop
Intended Audience :: Other Audience
Intended Audience :: System Administrators
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Database
Topic :: Internet
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Multimedia :: Graphics
Topic :: Scientific/Engineering :: GIS
Topic :: Scientific/Engineering :: Information Analysis
Topic :: Scientific/Engineering :: Visualization

[options]
zip_safe = False
include_package_data = True
packages = find:
scripts =
eoxserver/scripts/eoxserver-instance.py
tools/eoxserver-atpd.py
tools/eoxserver-validate_xml.py
tools/eoxserver-preprocess.py

install_requires = file: requirements.txt

[options.extras_require]
dev =
scipy
flake8
mypy
black
docs =
sphinx
sphinx_rtd_theme
myst-parser


[options.packages.find]
include = eoxserver

[bdist_rpm]
requires = Django >= 1.4
gdal-python
Expand Down
165 changes: 0 additions & 165 deletions setup.py

This file was deleted.

0 comments on commit 540d725

Please sign in to comment.