Skip to content
Snippets Groups Projects
Commit 791df757 authored by Jan Caron's avatar Jan Caron
Browse files

Added test_install to test stage

setup.py: use matplotlib AFTER setup()
(otherwise matplotlib is not available, despite being in setup_requires)
parent 46b5c27b
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,12 @@ test_docs:
- build/sphinx
expire_in: 1 week
test_install:
stage: test
image: continuumio/miniconda3:latest
script:
- pip install .[all]
pages:
stage: deploy
image: busybox
......
......@@ -8,8 +8,6 @@ import shutil
import subprocess
from setuptools import setup, config
import matplotlib as mpl
# Read version from setup.py:
version = config.read_configuration('setup.cfg')['metadata']['version']
......@@ -25,6 +23,13 @@ with open(os.path.join(os.path.dirname(__file__), 'src', 'empyre', 'version.py')
'""""This file was automatically generated by `setup.py`"""\n' +
f'version = "{version}"\n' +
f'git_revision = "{git_rev}"\n')
# Run setup (reads metadata & options from setup.cfg):
print(R'running setup.py')
setup()
import matplotlib as mpl
# Find matplotlib styles:
BASE_LIBRARY_PATH = os.path.join(mpl.get_data_path(), 'stylelib')
STYLE_PATH = os.path.join(os.getcwd(), 'mplstyles')
......@@ -35,6 +40,3 @@ for style_path in style_files:
_, fname = os.path.split(style_path)
dest = os.path.join(BASE_LIBRARY_PATH, fname)
shutil.copy(style_path, dest)
# Run setup (reads metadata & options from setup.cfg):
print(R'running setup.py')
setup()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment