1. 12 Dec, 2018 1 commit
    • Valentin Reis's avatar
      [Feature] Adds configuration management and environment variables · 25443c64
      Valentin Reis authored
      This commit adds a command-line interface to `daemon`:
      ```
      usage: daemon [-h] [-c FILE] [-d] [--nrm_log NRM_LOG] [--hwloc HWLOC]
                    [--argo_nodeos_config ARGO_NODEOS_CONFIG] [--perf PERF]
                    [--argo_perf_wrapper ARGO_PERF_WRAPPER]
      
      optional arguments:
        -h, --help            show this help message and exit
        -c FILE, --configuration FILE
                              Specify a config json-formatted config file to
                              override any of the available CLI options. If an
                              option is actually provided on the command-line, it
                              overrides its corresponding value from the
                              configuration file.
        -d, --print_defaults  Print the default configuration file.
        --nrm_log NRM_LOG     Main log file. Override default with the NRM_LOG.
                              environment variable
        --hwloc HWLOC         Path to the hwloc to use. This path can be relative
                              and makes uses of the $PATH if necessary. Override
                              default with the HWLOC environment variable.
        --argo_nodeos_config ARGO_NODEOS_CONFIG
                              Path to the argo_nodeos_config to use. This path can
                              be relative and makes uses of the $PATH if necessary.
                              Override default with the ARGO_NODEOS_CONFIG
                              environment variable.
        --perf PERF           Path to the linux perf tool to use. This path can be
                              relative and makes uses of the $PATH if necessary.
                              Override default with the PERF environment variable.
        --argo_perf_wrapper ARGO_PERF_WRAPPER
                              Path to the linux perf tool to use. This path can be
                              relative and makes uses of the $PATH if necessary.
                              Override default with the PERFWRAPPER environment
                              variable.
      ```
      25443c64
  2. 06 Sep, 2018 1 commit
    • Swann Perarnau's avatar
      [fix] Lock with Pipenv all packages · 3e1742f9
      Swann Perarnau authored
      Some packages were being pulled into the virtual environment through
      setup.py. It just happens that the new versions of pyzmq and tornado
      don't really play nice with the current daemon code. Mostly because of a
      "better" ioloop hijacking mecanism, that doesn't work for us.
      
      This patch moves the install requirements of the setup.py to Pipfile,
      and lock them to a working version.
      
      Note: the code still currently triggers #14.
      3e1742f9
  3. 03 Jul, 2018 1 commit
    • Swann Perarnau's avatar
      [feature] add stylecheck to CI · 6be62fe5
      Swann Perarnau authored
      flake8 is an automatic style checker. This is very useful to ensure that
      we have a consistent style as more people start contributing to the
      code.
      
      We ignore coolr for now, as it's a big offender.
      6be62fe5
  4. 18 May, 2018 1 commit
    • Swann Perarnau's avatar
      [refactor] convert the project to Pipenv · 8e41f7a1
      Swann Perarnau authored
      Pipenv provides a reproducible description of the python packages
      necessary for a python application. See the Pipenv documentation for
      reference.
      
      We also remove tox from the repo, relying instead directly on pytest.
      Since we only supported one version of python, that's not a big deal.
      8e41f7a1