WIP: PyPI packaging
Enable test and deploy to PyPI
To do
-
Add .gitignore
-
Add requirements.txt
-
List module dependencies. -
Fix packaging path imports. -
Add unit tests. -
Move fortran sources to src/
-
Move documentation to docs/
-
Fix relative import with __init__.py
-
Add Gitlab CI testing -
Add PyPI deploy from Gitlab CD
Docker configuration
FROM ubuntu:latest
ENV REPO https://gitlab.com/seignovert/pymiedap.git
ENV BRANCH dev-pip-packaging
RUN apt-get update && \
apt-get install -y \
gcc \
gfortran \
python3 \
python3-pip \
git
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN git clone -b ${BRANCH} ${REPO} /pymiedap
WORKDIR /pymiedap
RUN pip install -rrequirements.txt && \
python setup.py install
RUN python -c 'import pymiedap.pymiedap as pmd' && \
python -c 'import pymiedap.exopy as exopy'
RUN pip install -rtests/requirements.txt && \
pytest tests/