Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 20 additions & 42 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,79 +10,57 @@ shallow_clone: true
environment:
global:
WIN_SDK_ROOT: "C:\\Program Files\\Microsoft SDKs\\Windows"
VENV_BUILD_DIR: "venv_build"
VENV_TEST_DIR: "venv_test"

matrix:
# Python 3.7
- PYTHON_DIR: "C:\\Python37-x64"
- EXTRA_PY_PATH: "C:\\Python37-x64;C:\\Python37-x64\\Scripts"
INSTALL_CMD: "python -m pip install --upgrade --pre"
H5PY_OLDER_VERSION: "2.8.0"

# Python 2.7
- PYTHON_DIR: "C:\\Python27-x64"
- EXTRA_PY_PATH: "C:\\Python27-x64;C:\\Python27-x64\\Scripts"
INSTALL_CMD: "python -m pip install --upgrade --pre"
H5PY_OLDER_VERSION: "2.7.0"

install:
# Add Python to PATH
- "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%"

# Upgrade distribution modules
- "pip install --upgrade setuptools"
- "python -m pip install --upgrade pip"
# Miniconda37
- EXTRA_PY_PATH: "C:\\Miniconda37-x64;C:\\Miniconda37-x64\\Library\\mingw-w64\\bin;C:\\Miniconda37-x64\\Library\\usr\\bin;C:\\Miniconda37-x64\\Library\\bin;C:\\Miniconda37-x64\\Scripts;C:\\Miniconda37-x64\\bin;C:\\Miniconda37-x64\\condabin"
INSTALL_CMD: "conda install -y"
H5PY_OLDER_VERSION: "2.8.0"

# Install virtualenv
- "pip install virtualenv"
- "virtualenv --version"

build_script:
# Create build virtualenv
- "virtualenv --clear %VENV_BUILD_DIR%"
- "%VENV_BUILD_DIR%\\Scripts\\activate.bat"
install:
# Add Python to PATH
- "SET PATH=%EXTRA_PY_PATH%;%PATH%"

# Install build dependencies
- "pip install --upgrade setuptools wheel"
- "pip install h5py"
# Upgrade distribution modules and dependencies
- "%INSTALL_CMD% pip setuptools wheel h5py"

# Print Python info
- "python ci\\info_platform.py"
- "pip freeze"

# Build

build_script:
- "python setup.py bdist_wheel bdist_msi"
- ps: "ls dist"

# Leave build virtualenv
- "%VENV_BUILD_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_BUILD_DIR% /s /q"

test_script:
# Create test virtualenv
- "virtualenv --clear %VENV_TEST_DIR%"
- "%VENV_TEST_DIR%\\Scripts\\activate.bat"

# Install h5py for tests
- "pip install --pre h5py"

# Install the generated wheel package to test it
# Make sure it does not come from cache or pypi
# At this point all install_requires dependencies MUST be installed
# as this is installing only from dist/
- "pip install --pre --find-links dist/ --no-cache-dir --no-index hdf5plugin"

# Print Python info
- "python ci\\info_platform.py"
- "pip list"

# Test with latest h5py
- "pip freeze"
- "python test\\test.py"

# Run the tests with oldest available wheel of h5py
- "pip install --upgrade h5py==%H5PY_OLDER_VERSION%"
- "pip list"
# Test with oldest available wheel of h5py
- "%INSTALL_CMD% h5py==%H5PY_OLDER_VERSION%"
- "pip freeze"
- "python test\\test.py"

# Leave test virtualenv
- "%VENV_TEST_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_TEST_DIR% /s /q"

artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def finalize_options(self):
self.root_is_pure = True
self.plat_name_supplied = True
self.plat_name = get_platform()
self.universal = sys.platform.startswith('win')
self.universal = not sys.platform.startswith('win')
if not self.universal:
self.python_tag = 'py' + str(sys.version_info[0])

Expand Down
1 change: 1 addition & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import os
import unittest

import numpy
import h5py
import hdf5plugin
from hdf5plugin.test import suite as hdf5plugin_suite
Expand Down