Merge pull request #156 from michaeltryby/dev-decouple
Updating Appveyor to use epanet-output binary wheel
This commit is contained in:
@@ -24,7 +24,7 @@ init:
|
|||||||
|
|
||||||
# called after repo clone
|
# called after repo clone
|
||||||
install:
|
install:
|
||||||
- choco install swig
|
- python -m pip install -r tools\requirements-appveyor.txt
|
||||||
|
|
||||||
# called before build
|
# called before build
|
||||||
before_build:
|
before_build:
|
||||||
@@ -41,7 +41,6 @@ build_script:
|
|||||||
|
|
||||||
before_test:
|
before_test:
|
||||||
- cd %EPANET_HOME%
|
- cd %EPANET_HOME%
|
||||||
- python -m pip install -r tools\requirements.txt
|
|
||||||
- tools\gen-config.cmd %EPANET_HOME%\%BUILD_HOME%\bin\Release > %TEST_HOME%\apps\epanet-%APPVEYOR_REPO_COMMIT%.json
|
- tools\gen-config.cmd %EPANET_HOME%\%BUILD_HOME%\bin\Release > %TEST_HOME%\apps\epanet-%APPVEYOR_REPO_COMMIT%.json
|
||||||
|
|
||||||
# run custom test script
|
# run custom test script
|
||||||
@@ -52,7 +51,3 @@ test_script:
|
|||||||
# run regression tests
|
# run regression tests
|
||||||
- cd %EPANET_HOME%
|
- cd %EPANET_HOME%
|
||||||
- tools\run-nrtest.cmd %NRTEST_SCRIPT% %TEST_HOME% %APPVEYOR_REPO_COMMIT%
|
- tools\run-nrtest.cmd %NRTEST_SCRIPT% %TEST_HOME% %APPVEYOR_REPO_COMMIT%
|
||||||
|
|
||||||
cache:
|
|
||||||
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
||||||
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ except ImportError:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "epanet-output",
|
name = "epanet-output",
|
||||||
version = "1.0",
|
version = "0.1.0-alpha",
|
||||||
ext_modules = [
|
ext_modules = [
|
||||||
Extension("_epanet_output",
|
Extension("_epanet_output",
|
||||||
define_macros = [('epanet_output_EXPORTS', None)],
|
define_macros = [('epanet_output_EXPORTS', None)],
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ entry_points = {
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='nrtest-epanet',
|
name='nrtest-epanet',
|
||||||
version='0.3.0',
|
version='0.4.0',
|
||||||
description="EPANET extension for nrtest",
|
description="EPANET extension for nrtest",
|
||||||
|
|
||||||
author="Michael E. Tryby",
|
author="Michael E. Tryby",
|
||||||
@@ -38,7 +38,7 @@ setup(
|
|||||||
'header_detail_footer>=2.3',
|
'header_detail_footer>=2.3',
|
||||||
'nrtest>=0.2.0',
|
'nrtest>=0.2.0',
|
||||||
'numpy>=1.7.0',
|
'numpy>=1.7.0',
|
||||||
'epanet_output>=0.4.0'
|
'epanet_output'
|
||||||
],
|
],
|
||||||
keywords='nrtest_epanet'
|
keywords='nrtest_epanet'
|
||||||
)
|
)
|
||||||
|
|||||||
18
tools/requirements-appveyor.txt
Normal file
18
tools/requirements-appveyor.txt
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# requirements.txt
|
||||||
|
#
|
||||||
|
# Date Created: 10/10/2017
|
||||||
|
# Author: Michael E. Tryby
|
||||||
|
# US EPA ORD/NRMRL
|
||||||
|
#
|
||||||
|
# Useful for configuring a python environment to run epanet-nrtestsuite.
|
||||||
|
#
|
||||||
|
# command:
|
||||||
|
# $ pip install --src build/packages -r tools/requirements.txt
|
||||||
|
#
|
||||||
|
|
||||||
|
nrtest>=0.2.3
|
||||||
|
|
||||||
|
-f https://github.com/OpenWaterAnalytics/epanet-python/releases/download/v0.1.0-alpha/epanet_output-0.1.0a0-cp27-cp27m-win32.whl
|
||||||
|
|
||||||
|
-e ./tools/nrtest-epanet
|
||||||
Reference in New Issue
Block a user