-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge schema salad commit '7ea7dcf92e5782c4aca844f1e98d2d9550e07aae' …
…into v1.0-errata
- Loading branch information
Showing
134 changed files
with
5,333 additions
and
2,661 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,11 @@ | |
.eggs | ||
*.egg-info/ | ||
*pyc | ||
|
||
build/ | ||
dist/ | ||
ruamel | ||
typeshed/2and3/ruamel/yaml | ||
# virtualenv | ||
venv/ | ||
.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
sudo: false | ||
language: python | ||
python: 2.7 | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
os: | ||
- linux | ||
env: | ||
- TOX_ENV=py27-lint | ||
- TOX_ENV=py27-unit | ||
- TOX_ENV=py34-mypy | ||
# - TOX_ENV=py34-lint | ||
# - TOX_ENV=py33-lint | ||
# - TOX_ENV=py34-unit | ||
# - TOX_ENV=py33-unit | ||
|
||
install: | ||
- pip install tox | ||
|
||
script: tox -e $TOX_ENV | ||
|
||
- pip install tox-travis | ||
script: tox | ||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
include gittaggers.py ez_setup.py | ||
include gittaggers.py Makefile | ||
include schema_salad/tests/* | ||
include schema_salad/tests/test_schema/*.md | ||
include schema_salad/tests/test_schema/*.yml | ||
include schema_salad/tests/test_schema/*.cwl | ||
include schema_salad/metaschema/* | ||
global-exclude *~ | ||
global-exclude *.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy-ruamel.*] | ||
ignore_errors = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mypy==0.511 ; python_version>="3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
package=schema-salad | ||
module=schema_salad | ||
repo=https://github.com/common-workflow-language/schema_salad.git | ||
run_tests="py.test --pyarg ${module}" | ||
pipver=8.0.1 # minimum required version of pip | ||
setupver=20.10.1 # minimum required version of setuptools | ||
|
||
rm -Rf testenv? || /bin/true | ||
|
||
export HEAD=`git rev-parse HEAD` | ||
virtualenv testenv1 | ||
virtualenv testenv2 | ||
virtualenv testenv3 | ||
virtualenv testenv4 | ||
|
||
# First we test the head | ||
source testenv1/bin/activate | ||
rm testenv1/lib/python-wheels/setuptools* \ | ||
&& pip install --force-reinstall -U pip==${pipver} \ | ||
&& pip install setuptools==${setupver} wheel | ||
make install-dependencies | ||
make test | ||
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install | ||
mkdir testenv1/not-${module} | ||
# if there is a subdir named '${module}' py.test will execute tests | ||
# there instead of the installed module's tests | ||
pushd testenv1/not-${module}; ../bin/${run_tests}; popd | ||
|
||
|
||
# Secondly we test via pip | ||
|
||
cd testenv2 | ||
source bin/activate | ||
rm lib/python-wheels/setuptools* \ | ||
&& pip install --force-reinstall -U pip==${pipver} \ | ||
&& pip install setuptools==${setupver} wheel | ||
pip install -e git+${repo}@${HEAD}#egg=${package} | ||
cd src/${package} | ||
make install-dependencies | ||
make dist | ||
make test | ||
cp dist/${package}*tar.gz ../../../testenv3/ | ||
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install | ||
cd ../.. # no subdir named ${proj} here, safe for py.testing the installed module | ||
bin/${run_tests} | ||
|
||
# Is the distribution in testenv2 complete enough to build another | ||
# functional distribution? | ||
|
||
cd ../testenv3/ | ||
source bin/activate | ||
rm lib/python-wheels/setuptools* \ | ||
&& pip install --force-reinstall -U pip==${pipver} \ | ||
&& pip install setuptools==${setupver} wheel | ||
pip install ${package}*tar.gz | ||
pip install pytest | ||
mkdir out | ||
tar --extract --directory=out -z -f ${package}*.tar.gz | ||
cd out/${package}* | ||
make dist | ||
make test | ||
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install | ||
mkdir ../not-${module} | ||
pushd ../not-${module} ; ../../bin/${run_tests}; popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
requests | ||
ruamel.yaml | ||
rdflib >= 4.1. | ||
rdflib-jsonld >= 0.3.0 | ||
mistune | ||
typing ; python_version>="2.7" | ||
avro ; python_version<"3" | ||
avro-python3 ; python_version>="3" | ||
|
||
typing==3.5.3 | ||
avro-cwl ; python_version>="3" | ||
future ; python_version>="3" | ||
avro==1.8.1 ; python_version<"3" | ||
ruamel.yaml>=0.12.4, <0.15 | ||
rdflib==4.2.2 | ||
rdflib-jsonld==0.4.0 | ||
mistune==0.7.3 | ||
CacheControl==0.11.7 | ||
lockfile==0.12.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from __future__ import absolute_import | ||
import logging | ||
import sys | ||
import typing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from __future__ import absolute_import | ||
from . import main | ||
import sys | ||
import typing | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.