Skip to content
Commits on Source (3)
......@@ -6,6 +6,7 @@
__pycache__
.eggs/
.cache/
.idea/
/test-report.xml
/test-report-*.xml
/venv/
......
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2011 UCSC Computational Genomics Lab
Original Contributors: Benedict Paten, Hannes Schmidt, John Vivian,
Christopher Ketchum, Joel Armstrong and co-authors (benedictpaten@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Copyright (C) 2011-15 by UCSC Computational Genomics Lab
Contributors: Benedict Paten, Hannes Schmidt, John Vivian,
Christopher Ketchum, Joel Armstrong and co-authors (benedictpaten@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
\ No newline at end of file
# Copyright (C) 2015 UCSC Computational Genomics Lab
# Copyright (C) 2015-2018 UCSC Computational Genomics Lab
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -26,7 +26,7 @@ immediately affect the virtualenv. Set the 'extras' variable to ensure that the
installs support for extras. Consult setup.py for the list of supported extras. To install Toil
in develop mode with all extras, run
make develop extras=[mesos,aws,google,azure,cwl,encryption]
make develop extras=[all]
The 'sdist' target creates a source distribution of Toil. It is used for some unit tests and for
installing the currently checked out version of Toil into the appliance image.
......@@ -74,7 +74,7 @@ requires the TOIL_DOCKER_REGISTRY variable to be set to a value other than the d
accidentally pushing to the official Docker registry for Toil.
The TOIL_DOCKER_NAME environment variable can be set to customize the appliance image name that
is created by the 'docker' target and pushed by the 'push_docker' target. The Toil team's
is created by the 'docker' target and pushed by the 'push_docker' target. The Toil team\'s
continuous integration system overrides this variable to avoid conflicts between concurrently
executing builds for the same revision, e.g. toil-pr and toil-it.
......@@ -99,19 +99,13 @@ sdist_name:=toil-$(dist_version).tar.gz
docker_tag:=$(shell $(python) version_template.py dockerTag)
default_docker_registry:=$(shell $(python) version_template.py dockerRegistry)
docker_path:=$(strip $(shell which docker))
ifdef docker_path
ifdef docker_registry
export TOIL_DOCKER_REGISTRY?=$(docker_registry)
else
export TOIL_DOCKER_REGISTRY?=$(default_docker_registry)
endif
else
$(warning Cannot find 'docker' executable. Docker-related targets will be skipped.)
export TOIL_DOCKER_REGISTRY:=
endif
export TOIL_DOCKER_NAME?=$(shell $(python) version_template.py dockerName)
# Note that setting TOIL_DOCKER_REGISTRY to an empty string yields an invalid TOIL_APPLIANCE_SELF
# which will coax the @needs_appliance decorator to skip the test.
export TOIL_APPLIANCE_SELF:=$(TOIL_DOCKER_REGISTRY)/$(TOIL_DOCKER_NAME):$(docker_tag)
ifndef BUILD_NUMBER
......@@ -121,7 +115,6 @@ red=\033[0;31m
cyan=\033[0;36m
endif
develop: check_venv
$(pip) install -e .$(extras)
clean_develop: check_venv
......@@ -150,7 +143,7 @@ test_offline: check_venv check_build_reqs
TOIL_SKIP_DOCKER=True \
$(python) -m pytest $(pytest_args_local) $(tests_local)
# The hot deployment test needs the docker appliance
# The auto-deployment test needs the docker appliance
test: check_venv check_build_reqs docker
TOIL_APPLIANCE_SELF=$(docker_registry)/$(docker_base_name):$(docker_tag) \
$(python) -m pytest $(pytest_args_local) $(tests)
......@@ -270,11 +263,10 @@ check_build_reqs:
prepare: check_venv
$(pip) install sphinx==1.5.5 mock==1.0.1 pytest==2.8.3 stubserver==1.0.1 \
pytest-timeout==1.2.0
pytest-timeout==1.2.0 cwltest
check_venv:
@$(python) -c 'import sys; sys.exit( int( not (hasattr(sys, "real_prefix") or ( hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix ) ) ) )' \
|| ( printf "$(red)A virtualenv must be active.$(normal)\n" ; false )
......@@ -303,10 +295,12 @@ check_docker_registry:
$(default_docker_registry) and ensure that you have permissions to push \
to that registry. Only CI builds should push to $(default_docker_registry).$(normal)\n' ; false )
check_cpickle:
# fail if cPickle.dump(s) called without HIGHEST_PROTOCOL
# https://github.com/BD2KGenomics/toil/issues/1503
! find . -iname '*.py' | xargs grep 'cPickle.dump' | grep --invert-match HIGHEST_PROTOCOL
! find src -iname '*.py' | xargs grep 'cPickle.dump' | grep --invert-match HIGHEST_PROTOCOL
.PHONY: help \
prepare \
......@@ -323,4 +317,3 @@ check_cpickle:
check_running_on_jenkins \
check_build_reqs \
docker clean_docker push_docker
......@@ -17,7 +17,7 @@ def setup(job, input_file_id, n, down_checkpoints):
return job.addChildJobFn(down,
input_file_id, n,
down_checkpoints=down_checkpoints,
memory='1000M').rv()
memory='600M').rv()
def down(job, input_file_id, n, down_checkpoints):
......@@ -45,10 +45,10 @@ def down(job, input_file_id, n, down_checkpoints):
# Call the down function recursively
return job.addFollowOnJobFn(up, job.addChildJobFn(down, job.fileStore.writeGlobalFile(t1), n,
down_checkpoints=down_checkpoints, memory='1000M').rv(),
down_checkpoints=down_checkpoints, memory='600M').rv(),
job.addChildJobFn(down, job.fileStore.writeGlobalFile(t2), n,
down_checkpoints=down_checkpoints,
memory='1000M').rv()).rv()
memory='600M').rv()).rv()
else:
# We can sort this bit of the file
job.fileStore.logToMaster("Sorting file: %s of size: %s"
......@@ -163,7 +163,7 @@ def main():
sort_file_url = 'file://' + os.path.abspath('file_to_sort.txt')
if not toil.options.restart:
sort_file_id = toil.importFile(sort_file_url)
sorted_file_id = toil.start(Job.wrapJobFn(setup, sort_file_id, int(options.N), False, memory='1000M'))
sorted_file_id = toil.start(Job.wrapJobFn(setup, sort_file_id, int(options.N), False, memory='600M'))
else:
sorted_file_id = toil.restart()
toil.exportFile(sorted_file_id, sort_file_url)
......
FROM prom/prometheus
FROM prom/prometheus:v2.0.0
COPY ./prometheus.yml /etc/prometheus/prometheus.yml
COPY ./run.sh /opt/run.sh
......
......@@ -5,4 +5,4 @@
sed -i "s/^\([[:blank:]]*\) regex: CLUSTER_NAME/\1 regex: \'${1}\'/g" /etc/prometheus/prometheus.yml
exec /bin/prometheus -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -web.console.libraries=/usr/share/prometheus/console_libraries -web.console.templates=/usr/share/prometheus/consoles
exec /bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/usr/share/prometheus/console_libraries --web.console.templates=/usr/share/prometheus/consoles
toil (3.16.0-1) experimental; urgency=medium
* New upstream version.
- No dependency on db2k any more -> python3 compatibility
* debian/control
- compliance with policy 4.1.4
- adjusted paths to repository
* Initial release to experimental for initial feedback from the
community (Closes: #851365)
- need to clarify if to depend on python2 or python3
- need to clarify essential and recommended runtime dependencies
- extra binaries installed
- documentation should be built beyond man page,
demanded virtualenv for doc-building unclear
- missing some optional modules like python-htcondor
-- Steffen Moeller <moeller@debian.org> Thu, 14 Jun 2018 00:10:51 +0200
toil (3.14.0-1) UNRELEASED; urgency=medium
[ Steffen Moeller ]
* Initial release (Closes: #851365)
* Initial packaging.
[ Michael R. Crusoe ]
* Python 2 version only as upstream is not ready for Py3
......
......@@ -2,26 +2,39 @@ Source: toil
Section: net
Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Uploaders: Steffen Moeller <moeller@debian.org>, Michael R. Crusoe <michael.crusoe@gmail.com>
Uploaders: Steffen Moeller <moeller@debian.org>,
Michael R. Crusoe <michael.crusoe@gmail.com>
Build-Depends: debhelper (>= 10),
dh-python,
python-all,
python-setuptools,
python-docker,
python-bd2k,
python-galaxy-lib,
cwltool
Standards-Version: 3.9.8
cwltool,
# documentation
python-urllib3,
python-chardet,
python-sphinx
Standards-Version: 4.1.4
Homepage: https://github.com/BD2KGenomics/toil
X-Python-Version: >= 2.6
#X-Python3-Version: >= 3.2
Vcs-Git: https://anonscm.debian.org/git/debian-med/toil.git
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/toil.git
Vcs-Git: https://salsa.debian.org/med-team/toil.git
Vcs-Browser: https://salsa.debian.org/med-team/toil
#Testsuite: autopkgtest-pkg-python
Package: toil
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, python-cgcloud-lib, cwltool
Depends: ${python:Depends}, ${misc:Depends},
python-cgcloud-lib,
python-schema-salad,
cwltool
Recommends:
python-boto, python-boto3,
python-protobuf,
python-futures,
python-libcloud
Suggests: python-azure, python-azure-storage
#Suggests: python-toil-doc
Description: cross-platform workflow engine
Toil is a scalable, efficient, cross-platform and easy-to-use workflow
......
docs/_build/man/toil.1
--- toil.orig/setup.py
+++ toil/setup.py
@@ -70,7 +70,7 @@
classifiers=["License :: OSI Approved :: Apache Software License"],
license="Apache License v2.0",
install_requires=[
- 'bd2k-python-lib>=1.14a1.dev35',
+ 'bd2k>=1.14a1.dev35',
'dill==0.2.5',
'six>=1.10.0',
'future',
Index: toil/docs/conf.py
===================================================================
--- toil.orig/docs/conf.py
+++ toil/docs/conf.py
@@ -35,8 +35,8 @@ def fetch_parent_dir(filepath, n=1):
filepath = os.path.dirname(filepath)
return os.path.basename(filepath)
-if not hasattr(sys, 'real_prefix'):
- raise RuntimeError('A virtualenv must be active and Sphinx must be installed in it')
+#if not hasattr(sys, 'real_prefix'):
+# raise RuntimeError('A virtualenv must be active and Sphinx must be installed in it')
path_to_dir = os.path.dirname(os.path.abspath(__file__))
# Example of toil.version.__file__ on sphinx:
bd2k_as_short_name.patch
version.patch
no_virtualenv_to_create_manpages.patch
setting_version.patch
Description: Fixing version.py that is variable and required
Author: Steffen Moeller <moeller@debian.org>
Bug-Debian: https://bugs.debian.org/851365
Forwarded: not-needed
Last-Update: 2018-06-14
---
Index: toil/src/toil/version.py
===================================================================
--- /dev/null
+++ toil/src/toil/version.py
@@ -0,0 +1 @@
+distVersion="3.16.0"
--- /dev/null
+++ toil/src/toil/version.py
@@ -0,0 +1,13 @@
+dockerShortTag = '3.14.0-b91dbf9'
+baseVersion = '3.14.0'
+dockerTag = '3.14.0-b91dbf9bf6116879952f0a70f9a2fbbcae7e51b6'
+dockerName = 'toil'
+buildNumber = '12345'
+cgcloudVersion = '1.6.0a1.dev393'
+version = '3.14.0-b91dbf9bf6116879952f0a70f9a2fbbcae7e51b6'
+dirty = False
+shortVersion = '3.14.0-b91dbf9'
+currentCommit = 'b91dbf9bf6116879952f0a70f9a2fbbcae7e51b6'
+dockerMinimalTag = '3.14.0'
+distVersion = '3.14.0'
+dockerRegistry = 'quay.io/ucsc_cgl'
Index: toil/setup.py
===================================================================
--- toil.orig/setup.py
+++ toil/setup.py
@@ -31,10 +31,9 @@
azureCosmosdbTable = 'azure-cosmosdb-table==0.37.1'
pynacl = 'pynacl==1.1.2'
@@ -34,9 +34,9 @@ def runSetup():
gcs = 'google-cloud-storage==1.6.0'
- cwltool = 'cwltool==1.0.20180130110340'
+ cwltool = 'cwltool>=1.0.20180130110340'
gcs_oauth2_boto_plugin = 'gcs_oauth2_boto_plugin==1.14'
apacheLibcloud = 'apache-libcloud==2.2.1'
- cwltool = 'cwltool==1.0.20180518123035'
+ cwltool = 'cwltool>=1.0.20180518123035'
schemaSalad = 'schema-salad >= 2.6, < 3'
- galaxyLib = 'galaxy-lib==17.9.3'
- cwltest = 'cwltest>=1.0.20180130081614'
+ galaxyLib = 'galaxy-lib>=17.9.3'
htcondor = 'htcondor>=8.6.0'
mesos_reqs = [
@@ -55,8 +54,7 @@
cwl_reqs = [
cwltool,
schemaSalad,
- galaxyLib,
- cwltest]
+ galaxyLib]
wdl_reqs = []
htcondor_reqs = [
htcondor]
@@ -116,33 +114,6 @@
@@ -137,33 +137,6 @@ def importVersion():
required.
"""
import imp
......
......@@ -11,6 +11,10 @@ export PYBUILD_DISABLE_python3=1
%:
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
$(MAKE) -C docs man
# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
......@@ -20,4 +24,6 @@ export PYBUILD_DISABLE_python3=1
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
override_dh_auto_clean:
rm -rf .pybuild
rm -rf docs/_build
find . -name "*.pyc" -delete
......@@ -41,13 +41,11 @@ def heredoc(s):
motd = heredoc('''
This is the Toil appliance. You can run your Toil script directly on the appliance, but only
in single-machine mode. Alternatively, create a Toil cluster with `toil launch-cluster`,
log into the leader of that cluster with `toil ssh-cluster` and run your Toil script there.
This is the Toil appliance. You can run your Toil script directly on the appliance.
Run toil <workflow>.py --help to see all options for running your workflow.
For more information see http://toil.readthedocs.io/en/latest/
Copyright (C) 2015-2016 Regents of the University of California
Copyright (C) 2015-2018 Regents of the University of California
Version: {applianceSelf}
......@@ -117,7 +115,7 @@ print(heredoc('''
# This component changes most frequently and keeping it last maximizes Docker cache hits.
COPY {sdistName} .
RUN pip install {sdistName}[aws,mesos,encryption,cwl]
RUN pip install {sdistName}[all]
RUN rm {sdistName}
# We intentionally inherit the default ENTRYPOINT and CMD from the base image, to the effect
......