Unverified Commit 33d546ad authored by Sreenath Sasidharan Nair's avatar Sreenath Sasidharan Nair Committed by GitHub
Browse files

Merge pull request #6 from 3D-Beacons/development

Added installation steps in README
parents f16c504b a915d5c8
Pipeline #109002 passed with stage
in 8 seconds
......@@ -34,4 +34,4 @@ license: dist
python3 setup.py --license
pip install six jsonschema pytest-cov pytest-xdist flake8
pip install six jsonschema pytest-cov pytest-xdist flake8 wheel
......@@ -22,13 +22,47 @@ The 3D-Beacons Registry records meta-information about all the contributing part
The Registry is implemented as a JSON object that complies with the schema specification, which is also included in this repository.
These are available in `resources` folder in the repository. To add or change a registry entry, make the relevant changes in `resources/registry.json` which should comply with schema defined in `resources/schema.json`.
There is also an installable Python package in this repository which provides utilities like schema validation. Please follow the installation section below for installing the Python package.
## Installation
### Prerequisites
Below are the list of softwares/tools for the utilities to properly run in the environment.
Python 3.7+
Because [Python 2.7 supports ended January 1](https://pythonclock.org/), 2020, new projects should consider supporting Python 3 only, which is simpler than trying to support both. As a result, support for Python 2.7 in this project has been dropped.
### Setup the environment
Setup a Python virtual environment and install required packages.
$ python3 -m venv venv
$ source venv/bin/activate
Now install the project dependencies.
(venv) $ make dev_deps
Install the package
(venv) $ pip install .
## Usage
The installed package can be used to validate `registry.json` against the defined schema. Both the files are available in `resources` folder.
(venv) $ beacons_bio_3d validate_schema --schema_json resources/schema.json --registry_json resources/registry.json
## Contributors
- Sreenath Nair - _Initial work_ - [sreenathnair](https://github.com/sreenathnair)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment