Skip to main content

Collection of configurable development workflows

Project description

https://travis-ci.org/theochem/roberto.svg?branch=master https://anaconda.org/theochem/roberto/badges/version.svg https://codecov.io/gh/theochem/roberto/branch/master/graph/badge.svg https://img.shields.io/pypi/v/roberto.svg https://img.shields.io/pypi/pyversions/roberto.svg https://img.shields.io/github/release/theochem/roberto.svg

Roberto is a collection of configurable development work flows. Its goal is to facilitate the development and quality assurance of some packages in the theochem organization on Github.

With a relatively simple configuration file (.roberto.yaml), the command rob will take the following steps:

  1. Install miniconda (and a MacOSX SDK on OSX).

  2. Make a conda environment for development and testing

  3. Install dependencies (for the package being developed and for all development tools).

  4. Build the software in-place, i.e. without installing it.

  5. Run Linters (optionally showing only messages related to your changes).

  6. Run unit and other tests

  7. Build the documentation

When you run rob robot, a few additional steps will be performed, which are not done by default because they are slow and have a low risk of failing:

  1. Upload the documentation. (disabled by default)

  2. Make source and binary release packages.

  3. Deploy the releases. (disabled by default)

(A few minor steps were omitted for clarity.) These steps should work on your local computer in the same way as on a continuous integration system like Travis-CI, making it easy to prepare a pull request locally. It is also possible to just run a subset of these tasks, which is often needed when working on the code. Several steps will also reuse previous results (e.g. conda environment) if these are already present, to speed up Roberto.

The preparation tasks (1-3) are somewhat hard-coded but they are clever enough to install a decent development environment with the correct requirements for the remaining tasks. These remaining tasks (4-10) are configurable and can be changed to work for Python and/or CMake projects.

Installation

Python 3 (>=3.5) must be installed. Other dependencies will be pulled in with the instructions below.

Roberto can be installed with conda:

conda install theochem::roberto

It can also be installed with pip. One of the following is fine, whichever you prefer:

pip install roberto
pip install roberto --user
python3 -m pip install roberto
python3 -m pip install roberto --user

On some platforms, you may have to adapt your ${PATH} variable before you can run rob.

Usage

Before you start, please be aware that Roberto will install miniconda, by default in ~/miniconda3, if not present yet. You can modify this directory by setting the environment variable ROBERTO_CONDA_BASE_PATH or by putting the following in your global Roberto configuration file ~/.roberto.yaml:

conda:
  base_path: <your/preferred/location>

E.g. you can use this to avoid interference with an existing miniconda install. However, to avoid such interference, Roberto will also make conda environments for the development of every package, with relatively long names. For example, when Roberto is executed in its own source tree, the conda environment would be roberto-dev-python-3.7.

To use Roberto, just run rob in the root of the source tree, where also the project’s .roberto.yaml is located. Use rob --help to get a list of tasks if you are interested in replicating just a part of the CI process. If your ${PATH} variable is not set correctly, you can also run Roberto as python3 -m roberto instead of rob.

It is a good practice to run rob before every git commit to make sure the committed code is clean and working.

More details, e.g. on how to configure Roberto, can be found in the documentation: https://theochem.github.com/roberto

Development

If you have questions or ideas, just open an issue on Github. Practical information on how to contribute can be found in CONTRIBUTING.rst.

Roberto is intentionally a small code base, so one can easily understand how it works by reading the source code. Roberto makes extensive use of invoke to avoid having to write a lot of boiler-plate code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roberto-1.5.0.tar.gz (35.5 kB view details)

Uploaded Source

File details

Details for the file roberto-1.5.0.tar.gz.

File metadata

  • Download URL: roberto-1.5.0.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for roberto-1.5.0.tar.gz
Algorithm Hash digest
SHA256 a976ee8abe0bb56cc95c8b4227fe09c037d19d8df49d67db30a4b1e23c89b04a
MD5 2d4be5a3b29c8a7031321be78bf30076
BLAKE2b-256 2ed236ef77ce090d6be40ac050cf02762a0c934bd7b3723b07c057331a524c9a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page