Skip to content

Commit 6d1bb63

Browse files
committed
Merge branch '1.0.x' into 'master'
2 parents fd488d9 + 897ac4e commit 6d1bb63

File tree

5 files changed

+50
-7
lines changed

5 files changed

+50
-7
lines changed

docs/install.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Besides Python and pip, each component or plugin to be used may have additional
4343

4444
.. [#bug] ``reprozip`` and ``reprounzip graph`` will not work before 2.7.3 due to `Python bug 13676 <http://bugs.python.org/issue13676>`__ related to sqlite3. Python 2.6 is ancient and unsupported.
4545
.. [#deb] On Debian and Debian-based, you can use ``sudo apt-get install python``.
46-
.. [#yum] On RPM-based distributions, such as Red Hat, Fedora or CentOS, you can use ``yum install python``
46+
.. [#yum] On RPM-based distributions, such as Red Hat, Fedora, or CentOS, you can use ``yum install python``
4747
.. [#deb2] On Debian and Debian-based, you can use ``sudo apt-get install libsqlite3-dev``.
48-
.. [#yum2] On RPM-based distributions, such as Red Hat, Fedora or CentOS, you can use ``yum install sqlite-devel``
48+
.. [#yum2] On RPM-based distributions, such as Red Hat, Fedora, or CentOS, you can use ``yum install sqlite-devel``
4949
.. [#deb3] On Debian and Debian-based, you can use ``sudo apt-get install python-dev``.
50-
.. [#yum3] On RPM-based distributions, such as Red Hat, Fedora or CentOS, you can use ``yum install python-devel``
50+
.. [#yum3] On RPM-based distributions, such as Red Hat, Fedora, or CentOS, you can use ``yum install python-devel``
5151
.. [#pycrypto] Required to build `PyCrypto <https://www.dlitz.net/software/pycrypto/>`__.
5252
.. [#vis1] `VisTrails v2.2.3+ <http://www.vistrails.org/>`__ is required to run the workflow generated by the plugin.
5353

docs/packing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Multiple runs can also be traced and combined in a single package by using the f
2424

2525
Note that the final package will be able to reproduce any of the runs, and files shared by multiple runs are only stored once.
2626

27-
By default, if the operating system is based on Debian or RPM packages, (e.g.: Ubuntu, CentOS, ...), *reprozip* will also try to automatically identify the distribution packages from which the files come, using the available `package manager <http://en.wikipedia.org/wiki/Dpkg>`__ of the system. This is useful to provide more detailed information about the dependencies, as well as to further help when reproducing the experiment. However, note that the ``trace`` command can take some time doing that after the experiment finishes, depending on the number of file dependencies that the experiment has. To disable this feature, users may use the flag ``--dont-identify-packages``::
27+
By default, if the operating system is based on Debian or RPM packages (e.g.: Ubuntu, CentOS, Fedora, ...), *reprozip* will also try to automatically identify the distribution packages from which the files come, using the available package manager of the system. This is useful to provide more detailed information about the dependencies, as well as to further help when reproducing the experiment. However, note that the ``trace`` command can take some time doing that after the experiment finishes, depending on the number of file dependencies that the experiment has. To disable this feature, users may use the flag ``--dont-identify-packages``::
2828

2929
$ reprozip trace --dont-identify-packages <command-line>
3030

docs/unpacking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ The `installpkgs` Unpacker: Installing Software Packages
162162

163163
By default, ReproZip identifies if the current environment already has the required software packages for the experiment, then using the installed ones for reproduction. For the non-installed software packages, it uses the dependencies packed in the original environment and extracted under the experiment directory.
164164

165-
Users may also let ReproZip try and install all the dependencies of the experiment on their machine by using the *installpkgs* unpacker (``reprounzip installpkgs``). This unpacker currently works for distribution based on Debian or RPM packages (e.g.: Ubuntu, CentOS, ...), and uses the package manager to automatically install all the required software packages directly on the current machine, thus **interfering with your environment**.
165+
Users may also let ReproZip try and install all the dependencies of the experiment on their machine by using the *installpkgs* unpacker (``reprounzip installpkgs``). This unpacker currently works for distribution based on Debian or RPM packages (e.g.: Ubuntu, CentOS, Fedora, ...), and uses the package manager to automatically install all the required software packages directly on the current machine, thus **interfering with your environment**.
166166

167167
To install the required dependencies, the following command should be used::
168168

reprounzip/reprounzip/parameters.py

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def update_parameters():
3636

3737
url = 'https://reprozip-stats.poly.edu/parameters/'
3838
env_var = os.environ.get('REPROZIP_PARAMETERS')
39-
if env_var.startswith('http://') or env_var.startswith('https://'):
39+
if env_var and (
40+
env_var.startswith('http://') or env_var.startswith('https://')):
4041
# This is only used for testing
4142
# Note that this still expects the ReproZip CA
4243
url = env_var
@@ -212,6 +213,46 @@ def get_parameter(section):
212213
' "image": "centos7",\n'
213214
' "name": "CentOS 7"\n'
214215
' }\n'
216+
' },\n'
217+
' {\n'
218+
' "name": "^fedora$",\n'
219+
' "versions": [\n'
220+
' {\n'
221+
' "version": "^20$",\n'
222+
' "distribution": "fedora",\n'
223+
' "image": "fedora:20",\n'
224+
' "name": "Fedora 20"\n'
225+
' },\n'
226+
' {\n'
227+
' "version": "^21$",\n'
228+
' "distribution": "fedora",\n'
229+
' "image": "fedora:21",\n'
230+
' "name": "Fedora 21"\n'
231+
' },\n'
232+
' {\n'
233+
' "version": "^22$",\n'
234+
' "distribution": "fedora",\n'
235+
' "image": "fedora:22",\n'
236+
' "name": "Fedora 22"\n'
237+
' },\n'
238+
' {\n'
239+
' "version": "^23$",\n'
240+
' "distribution": "fedora",\n'
241+
' "image": "fedora:24",\n'
242+
' "name": "Fedora 23"\n'
243+
' },\n'
244+
' {\n'
245+
' "version": "^24$",\n'
246+
' "distribution": "fedora",\n'
247+
' "image": "fedora:24",\n'
248+
' "name": "Fedora 24"\n'
249+
' }\n'
250+
' ],\n'
251+
' "default": {\n'
252+
' "distribution": "fedora",\n'
253+
' "image": "fedora:24",\n'
254+
' "name": "Fedora 24"\n'
255+
' }\n'
215256
' }\n'
216257
' ]\n'
217258
' },\n'

tests/test_parameters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ def get(architecture, distribution, version):
3838
self.assertEqual(get('x86_64', 'Ubuntu', '1.1'),
3939
('ubuntu', 'ubuntu:15.10'))
4040
self.assertRaises(SystemExit, get, 'armv7', 'Debian', '8.2')
41-
self.assertEqual(get('x86_64', 'Fedora', '12'),
41+
self.assertEqual(get('x86_64', 'Arch', '2015.06.01'),
4242
('debian', 'debian:jessie'))
4343
self.assertEqual(get('x86_64', 'Debian', '1'),
4444
('debian', 'debian:jessie'))
4545
self.assertEqual(get('x86_64', 'CentOS', '1'),
4646
('centos', 'centos7'))
47+
self.assertEqual(get('x86_64', 'Fedora', '21'),
48+
('fedora', 'fedora:21'))
4749

4850
def test_vagrant(self):
4951
def get(architecture, distribution, version):

0 commit comments

Comments
 (0)