Skip to content

Commit

Permalink
Merge branch '1.0.x' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Mar 15, 2021
2 parents 1c4f329 + f356ba0 commit 85e4d22
Show file tree
Hide file tree
Showing 33 changed files with 407 additions and 118 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [ubuntu-18.04]
mode: [tests]
python:
- "2.7"
- "3.5"
include:
- os: ubuntu-latest
- os: ubuntu-18.04
mode: coverage
python: "3.8"
- os: ubuntu-latest
- os: ubuntu-18.04
mode: checks
python: "3.8"
- os: ubuntu-latest
mode: check-images
python: "3.8"
runs-on: ${{ matrix.os }}
env:
TEST_MODE: ${{ matrix.mode }}
Expand All @@ -41,7 +44,7 @@ jobs:
case "$TEST_MODE"
in
tests|coverage)
tests|coverage|check-images)
if [ "$TEST_MODE" = "coverage" ]; then
export CFLAGS="-fprofile-arcs -ftest-coverage"
fi
Expand Down Expand Up @@ -74,8 +77,11 @@ jobs:
fi
python tests --run-docker
;;
check-images)
python tests --check-vagrant-images --check-docker-images
;;
checks)
flake8 --ignore=E731,W504
flake8 --ignore=E731,W503,W504
diff -q reprozip/reprozip/common.py reprounzip/reprounzip/common.py
diff -q reprozip/reprozip/utils.py reprounzip/reprounzip/utils.py
find reprozip reprounzip reprozip-* reprounzip-* .travis -name '*.py' -or -name '*.sh' -or -name '*.h' -or -name '*.c' | (set +x; while read i; do
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at reprozip-dev@vgc.poly.edu. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at dev@reprozip.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ This CONTRIBUTING.md was adapted from [ProjectPorcupine's](https://github.com/Te

# Contact info

You are welcome to [subscribe to](https://vgc.poly.edu/mailman/listinfo/reprozip-users) or contact our user mailing list [reprozip-users](mailto:reprozip-users@vgc.poly.edu) for questions, suggestions and discussions about using ReproZip.
You are welcome to [subscribe to](https://vgc.poly.edu/mailman/listinfo/reprozip-users) or contact our user mailing list [users@reprozip.org](mailto:users@reprozip.org) for questions, suggestions and discussions about using ReproZip.

You can contact the maintainers on the [reprozip-dev](mailto:reprozip-dev@vgc.poly.edu) mailing list.
You can contact the maintainers on the [dev@reprozip.org](mailto:dev@reprozip.org) mailing list.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ Please use the following when citing ReproZip ([BibTeX](CITATION.txt)):
Contribute
----------

Please subscribe to and contact the [reprozip-users](https://vgc.poly.edu/mailman/listinfo/reprozip-users) mailing list for questions, suggestions and discussions about using reprozip.
Please subscribe to and contact the [users@reprozip.org](https://vgc.poly.edu/mailman/listinfo/reprozip-users) mailing list for questions, suggestions and discussions about using reprozip.

Use the [reprozip-dev](https://vgc.poly.edu/mailman/listinfo/reprozip-dev) mailing list for any questions about reprozip source code.
Use the [dev@reprozip.org](https://vgc.poly.edu/mailman/listinfo/reprozip-dev) mailing list for any questions about reprozip source code.

Bugs and feature plannings are tracked in the [GitHub issues](https://github.com/VIDA-NYU/reprozip/issues). Feel free to add an issue!

Expand All @@ -125,7 +125,7 @@ ReproZip is currently being developed at [NYU][nyu]. The team includes:
* [Juliana Freire][jf]
* [Rémi Rampin][rr]
* [Dennis Shasha][ds]
* [Vicky Steeves][vs]
* [Vicky Rampin][vr]

[vagrant]: https://www.vagrantup.com/
[docker]: https://www.docker.com/
Expand All @@ -137,7 +137,7 @@ ReproZip is currently being developed at [NYU][nyu]. The team includes:
[puzv]: https://pypi.python.org/pypi/reprounzip-vagrant
[fc]: http://fchirigati.com/
[jf]: https://vgc.poly.edu/~juliana/
[rr]: https://remirampin.com/
[rr]: https://remi.rampin.org/
[ds]: http://cs.nyu.edu/shasha/
[vs]: https://vickysteeves.com/
[vr]: https://vicky.rampin.org/
[nyu]: http://engineering.nyu.edu/
4 changes: 2 additions & 2 deletions docs/man/reprounzip-docker.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" Manpage for reprounzip
.\" Contact reprozip-dev@vgc.poly.edu to correct errors or typos.
.\" Contact dev@reprozip.org to correct errors or typos.
.TH man 1 "4 November 2017" "1.0.10" "reprounzip\-docker man page"
.SH NAME
reprounzip\-docker \- Docker unpacker for reprounzip
Expand Down Expand Up @@ -74,7 +74,7 @@ The team includes:
.nf
Remi Rampin
Fernando Chirigati
Vicky Steeves
Vicky Rampin
Juliana Freire
Dennis Shasha
.fi
Expand Down
4 changes: 2 additions & 2 deletions docs/man/reprounzip-vagrant.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" Manpage for reprounzip
.\" Contact reprozip-dev@vgc.poly.edu to correct errors or typos.
.\" Contact dev@reprozip.org to correct errors or typos.
.TH man 1 "4 November 2017" "1.0.10" "reprounzip\-vagrant man page"
.SH NAME
reprounzip\-vagrant \- Vagrant unpacker for reprounzip
Expand Down Expand Up @@ -65,7 +65,7 @@ The team includes:
.nf
Remi Rampin
Fernando Chirigati
Vicky Steeves
Vicky Rampin
Juliana Freire
Dennis Shasha
.fi
Expand Down
4 changes: 2 additions & 2 deletions docs/man/reprounzip.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" Manpage for reprounzip
.\" Contact reprozip-dev@vgc.poly.edu to correct errors or typos.
.\" Contact dev@reprozip.org to correct errors or typos.
.TH man 1 "4 November 2017" "1.0.11" "reprounzip man page"
.SH NAME
reprounzip \- the reproducibility unpacker
Expand Down Expand Up @@ -136,7 +136,7 @@ The team includes:
.nf
Remi Rampin
Fernando Chirigati
Vicky Steeves
Vicky Rampin
Juliana Freire
Dennis Shasha
.fi
Expand Down
4 changes: 2 additions & 2 deletions docs/man/reprozip.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" Manpage for reprozip
.\" Contact reprozip-dev@vgc.poly.edu to correct errors or typos.
.\" Contact dev@reprozip.org to correct errors or typos.
.TH man 1 "4 November 2017" "1.0.11" "reprozip man page"
.SH NAME
reprozip \- the reproducibility packer
Expand Down Expand Up @@ -100,7 +100,7 @@ The team includes:
.nf
Remi Rampin
Fernando Chirigati
Vicky Steeves
Vicky Rampin
Juliana Freire
Dennis Shasha
.fi
Expand Down
4 changes: 2 additions & 2 deletions reprounzip-docker/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ ReproZip is currently being developed at `NYU <http://engineering.nyu.edu/>`_. T

* `Fernando Chirigati <http://fchirigati.com/>`_
* `Juliana Freire <https://vgc.poly.edu/~juliana/>`_
* `Remi Rampin <https://remirampin.com/>`_
* `Remi Rampin <https://remi.rampin.org/>`_
* `Dennis Shasha <http://cs.nyu.edu/shasha/>`_
* `Vicky Steeves <https://vickysteeves.com/>`_
* `Vicky Rampin <https://vicky.rampin.org/>`_
4 changes: 2 additions & 2 deletions reprounzip-docker/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
'rpaths>=0.8'],
description="Allows the ReproZip unpacker to create Docker containers",
author="Remi Rampin, Fernando Chirigati, Dennis Shasha, Juliana Freire",
author_email='reprozip-users@vgc.poly.edu',
author_email='dev@reprozip.org',
maintainer="Remi Rampin",
maintainer_email='remirampin@gmail.com',
maintainer_email='remi@rampin.org',
url='https://www.reprozip.org/',
project_urls={
'Homepage': 'https://github.com/ViDA-NYU/reprozip',
Expand Down
4 changes: 2 additions & 2 deletions reprounzip-qt/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ ReproZip is currently being developed at `NYU <http://engineering.nyu.edu/>`_. T

* `Fernando Chirigati <http://fchirigati.com/>`_
* `Juliana Freire <https://vgc.poly.edu/~juliana/>`_
* `Remi Rampin <https://remirampin.com/>`_
* `Remi Rampin <https://remi.rampin.org/>`_
* `Dennis Shasha <http://cs.nyu.edu/shasha/>`_
* `Vicky Steeves <https://vickysteeves.com/>`_
* `Vicky Rampin <https://vicky.rampin.org/>`_
2 changes: 1 addition & 1 deletion reprounzip-qt/reprounzip_qt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main():

parser = argparse.ArgumentParser(
description="Graphical user interface for reprounzip",
epilog="Please report issues to reprozip-users@vgc.poly.edu")
epilog="Please report issues to users@reprozip.org")
parser.add_argument('--version', action='version',
version="reprounzip-qt version %s" % __version__)
parser.add_argument('-v', '--verbose', action='count', default=1,
Expand Down
4 changes: 2 additions & 2 deletions reprounzip-qt/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
install_requires=['PyYAML', 'qtpy', 'reprounzip>=1.0'],
description="Graphical user interface for reprounzip, using Qt",
author="Remi Rampin, Fernando Chirigati, Dennis Shasha, Juliana Freire",
author_email='reprozip-users@vgc.poly.edu',
author_email='dev@reprozip.org',
maintainer="Remi Rampin",
maintainer_email='remirampin@gmail.com',
maintainer_email='remi@rampin.org',
url='https://www.reprozip.org/',
project_urls={
'Homepage': 'https://github.com/ViDA-NYU/reprozip',
Expand Down
4 changes: 2 additions & 2 deletions reprounzip-vagrant/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ ReproZip is currently being developed at `NYU <http://engineering.nyu.edu/>`_. T

* `Fernando Chirigati <http://fchirigati.com/>`_
* `Juliana Freire <https://vgc.poly.edu/~juliana/>`_
* `Remi Rampin <https://remirampin.com/>`_
* `Remi Rampin <https://remi.rampin.org/>`_
* `Dennis Shasha <http://cs.nyu.edu/shasha/>`_
* `Vicky Steeves <https://vickysteeves.com/>`_
* `Vicky Rampin <https://vicky.rampin.org/>`_
67 changes: 35 additions & 32 deletions reprounzip-vagrant/reprounzip_vagrant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,38 @@
logger = logging.getLogger('reprounzip.vagrant')


def _find_version(distrib, version, architecture):
if version is not None:
for box in distrib['versions']:
if re.match(box['version'], version) is not None:
result = box['architectures'].get(architecture)
if result is not None:
return box['distribution'], result
box = distrib['default']
if version is not None:
logger.warning("Using %s instead of '%s'",
box['name'], version)
result = box['architectures'].get(architecture)
if result is not None:
return box['distribution'], result


def _find_distribution(parameter, distribution, version, architecture):
boxes = parameter['boxes']

for distrib in boxes:
if re.match(distrib['name'], distribution) is not None:
result = _find_version(distrib, version, architecture)
if result is not None:
return result
default = parameter['default']
logger.warning("Unsupported distribution '%s', using %s",
distribution, default['name'])
result = default['architectures'].get(architecture)
if result:
return default['distribution'], result


def select_box(runs, gui=False):
"""Selects a box for the experiment, with the correct distribution.
"""
Expand All @@ -54,39 +86,10 @@ def select_box(runs, gui=False):
logger.critical("Error: unsupported architecture %s", architecture)
sys.exit(1)

def find_distribution(parameter, distribution, version, architecture):
boxes = parameter['boxes']

for distrib in boxes:
if re.match(distrib['name'], distribution) is not None:
result = find_version(distrib, version, architecture)
if result is not None:
return result
default = parameter['default']
logger.warning("Unsupported distribution '%s', using %s",
distribution, default['name'])
result = default['architectures'].get(architecture)
if result:
return default['distribution'], result

def find_version(distrib, version, architecture):
if version is not None:
for box in distrib['versions']:
if re.match(box['version'], version) is not None:
result = box['architectures'].get(architecture)
if result is not None:
return box['distribution'], result
box = distrib['default']
if version is not None:
logger.warning("Using %s instead of '%s'",
box['name'], version)
result = box['architectures'].get(architecture)
if result is not None:
return box['distribution'], result

result = find_distribution(
result = _find_distribution(
get_parameter('vagrant_boxes_x' if gui else 'vagrant_boxes'),
distribution, version, architecture)
distribution, version, architecture,
)
if result is None:
logger.critical("Error: couldn't find a base box for required "
"architecture")
Expand Down
4 changes: 2 additions & 2 deletions reprounzip-vagrant/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
'paramiko'],
description="Allows the ReproZip unpacker to create virtual machines",
author="Remi Rampin, Fernando Chirigati, Dennis Shasha, Juliana Freire",
author_email='reprozip-users@vgc.poly.edu',
author_email='dev@reprozip.org',
maintainer="Remi Rampin",
maintainer_email='remirampin@gmail.com',
maintainer_email='remi@rampin.org',
url='https://www.reprozip.org/',
project_urls={
'Homepage': 'https://github.com/ViDA-NYU/reprozip',
Expand Down
4 changes: 2 additions & 2 deletions reprounzip-vistrails/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ ReproZip is currently being developed at `NYU <http://engineering.nyu.edu/>`_. T

* `Fernando Chirigati <http://fchirigati.com/>`_
* `Juliana Freire <https://vgc.poly.edu/~juliana/>`_
* `Remi Rampin <https://remirampin.com/>`_
* `Remi Rampin <https://remi.rampin.org/>`_
* `Dennis Shasha <http://cs.nyu.edu/shasha/>`_
* `Vicky Steeves <https://vickysteeves.com/>`_
* `Vicky Rampin <https://vicky.rampin.org/>`_
4 changes: 2 additions & 2 deletions reprounzip-vistrails/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
description="Integrates the ReproZip unpacker with the VisTrails "
"workflow management system",
author="Remi Rampin, Fernando Chirigati, Dennis Shasha, Juliana Freire",
author_email='reprozip-users@vgc.poly.edu',
author_email='dev@reprozip.org',
maintainer="Remi Rampin",
maintainer_email='remirampin@gmail.com',
maintainer_email='remi@rampin.org',
url='https://www.reprozip.org/',
project_urls={
'Homepage': 'https://github.com/ViDA-NYU/reprozip',
Expand Down
4 changes: 2 additions & 2 deletions reprounzip/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ ReproZip is currently being developed at `NYU <http://engineering.nyu.edu/>`_. T

* `Fernando Chirigati <http://fchirigati.com/>`_
* `Juliana Freire <https://vgc.poly.edu/~juliana/>`_
* `Remi Rampin <https://remirampin.com/>`_
* `Remi Rampin <https://remi.rampin.org/>`_
* `Dennis Shasha <http://cs.nyu.edu/shasha/>`_
* `Vicky Steeves <https://vickysteeves.com/>`_
* `Vicky Rampin <https://vicky.rampin.org/>`_
12 changes: 12 additions & 0 deletions reprounzip/reprounzip/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@ def load_iofiles(config, runs):
path = PosixPath(f['path'])
readers = sorted(f.get('read_by_runs', []))
writers = sorted(f.get('written_by_runs', []))
if (
not isinstance(readers, (tuple, list))
or not all(isinstance(e, int) for e in readers)
):
raise InvalidConfig("read_by_runs should be a list of integers")
if (
not isinstance(writers, (tuple, list))
or not all(isinstance(e, int) for e in writers)
):
raise InvalidConfig("written_by_runs should be a list of integers")
if name in files:
if files[name].path != path:
old_name, name = name, uniquenames(name)
Expand Down Expand Up @@ -669,6 +679,8 @@ def setup_logging(tag, verbosity):
(datetime.now().strftime("%Y-%m-%d"), sys.argv),
None))

logging.getLogger('urllib3').setLevel(logging.INFO)


_usage_report = None

Expand Down
2 changes: 1 addition & 1 deletion reprounzip/reprounzip/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def add_options(opts):
description="reprounzip is the ReproZip component responsible for "
"unpacking and reproducing an experiment previously "
"packed with reprozip",
epilog="Please report issues to reprozip-users@vgc.poly.edu")
epilog="Please report issues to users@reprozip.org")
add_options(parser)
parser.add_argument('-v', '--verbose', action='count', default=1,
dest='verbosity',
Expand Down

0 comments on commit 85e4d22

Please sign in to comment.