Skip to content

Commit e28065b

Browse files
authored
Improve user, admin and contributor documentation
2 parents bafeb8c + 5791898 commit e28065b

File tree

6 files changed

+154
-159
lines changed

6 files changed

+154
-159
lines changed

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTION.md

Lines changed: 15 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,21 @@ Please note we have a code of conduct, please follow it in all your interactions
1616

1717
### Setup Project for Development and Testing
1818

19-
1. Follow the package setup instructions on the main README till the [`Clone Project Repository`](README.m#131-clone-project-repository) step.
20-
2. If you are a `schematic` package contributor you don't need to create a `venv` virtual environment, `poetry` will create a virtual environment by default, which you can use.
21-
3. Running the following command reads the [`pyproject.toml`](https://github.com/Sage-Bionetworks/schematic/blob/develop/pyproject.toml) file from the current project, resolves the dependencies and installs them: `poetry install`
22-
4. Obtain credentials file(s) by following same instructions as in the [`1.3.4. Obtain Credentials File(s)`](README.md#134-obtain-credentials-files) section.
23-
5. Fill in configuration file(s) in the same way as specified in the [`1.3.5. Fill in Configuration File(s)`](README.md#135-fill-in-configuration-files).
24-
6. To run any of the CLI utilities shown in the [`1.3.6. Command Line Interface`](README.md#136-command-line-interface), prefix the commands with `poetry run`.
19+
1. Install [package dependencies](https://sage-schematic.readthedocs.io/en/develop/README.html#installation-requirements-and-pre-requisites).
20+
2. Clone the `schematic` package repository: `git clone https://github.com/Sage-Bionetworks/schematic.git`
21+
3. [Create and activate](https://sage-schematic.readthedocs.io/en/develop/README.html#virtual-environment-setup) a virtual environment.
22+
4. Run the following commands to build schematic and install the package along with all of its dependencies:
23+
```python
24+
cd schematic # change directory to schematic
25+
git checkout develop # switch to develop branch of schematic
26+
poetry build # build source and wheel archives
27+
pip install dist/schematicpy-0.1.11-py3-none-any.whl # install wheel file
28+
```
29+
5. [Obtain](https://sage-schematic.readthedocs.io/en/develop/README.html#obtain-google-credentials-file-s) appropriate Google credentials file(s).
30+
6. [Obtain and Fill in](https://sage-schematic.readthedocs.io/en/develop/README.html#fill-in-configuration-file-s) the `config.yml` file and the `.synapseConfig` file as well as described in the `Fill in Configuration File(s)` part of the documentation.
31+
7. [Run](https://docs.pytest.org/en/stable/usage.html) the test suite.
32+
33+
Note: To ensure that all tests run successfully, contact your DCC liason and request to be added to the `schematic-dev` [team](https://www.synapse.org/#!Team:3419888) on Synapse.
2534

2635
## Pull Request Process
2736

@@ -48,78 +57,3 @@ Please note we have a code of conduct, please follow it in all your interactions
4857
http://google.github.io/styleguide/pyguide.html
4958

5059
* Be consistent and follow existing code conventions and spirit.
51-
52-
## Code of Conduct
53-
54-
### Our Pledge
55-
56-
In the interest of fostering an open and welcoming environment, we as
57-
contributors and maintainers pledge to making participation in our project and
58-
our community a harassment-free experience for everyone, regardless of age, body
59-
size, disability, ethnicity, gender identity and expression, level of experience,
60-
nationality, personal appearance, race, religion, or sexual identity and
61-
orientation.
62-
63-
### Our Standards
64-
65-
Examples of behavior that contributes to creating a positive environment
66-
include:
67-
68-
* Using welcoming and inclusive language
69-
* Being respectful of differing viewpoints and experiences
70-
* Gracefully accepting constructive criticism
71-
* Focusing on what is best for the community
72-
* Showing empathy towards other community members
73-
74-
Examples of unacceptable behavior by participants include:
75-
76-
* The use of sexualized language or imagery and unwelcome sexual attention or
77-
advances
78-
* Trolling, insulting/derogatory comments, and personal or political attacks
79-
* Public or private harassment
80-
* Publishing others' private information, such as a physical or electronic
81-
address, without explicit permission
82-
* Other conduct which could reasonably be considered inappropriate in a
83-
professional setting
84-
85-
### Our Responsibilities
86-
87-
Project maintainers are responsible for clarifying the standards of acceptable
88-
behavior and are expected to take appropriate and fair corrective action in
89-
response to any instances of unacceptable behavior.
90-
91-
Project maintainers have the right and responsibility to remove, edit, or
92-
reject comments, commits, code, wiki edits, issues, and other contributions
93-
that are not aligned to this Code of Conduct, or to ban temporarily or
94-
permanently any contributor for other behaviors that they deem inappropriate,
95-
threatening, offensive, or harmful.
96-
97-
### Scope
98-
99-
This Code of Conduct applies both within project spaces and in public spaces
100-
when an individual is representing the project or its community. Examples of
101-
representing a project or community include using an official project e-mail
102-
address, posting via an official social media account, or acting as an appointed
103-
representative at an online or offline event. Representation of a project may be
104-
further defined and clarified by project maintainers.
105-
106-
### Enforcement
107-
108-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
109-
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
110-
complaints will be reviewed and investigated and will result in a response that
111-
is deemed necessary and appropriate to the circumstances. The project team is
112-
obligated to maintain confidentiality with regard to the reporter of an incident.
113-
Further details of specific enforcement policies may be posted separately.
114-
115-
Project maintainers who do not follow or enforce the Code of Conduct in good
116-
faith may face temporary or permanent repercussions as determined by other
117-
members of the project's leadership.
118-
119-
### Attribution
120-
121-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
122-
available at [http://contributor-covenant.org/version/1/4][version]
123-
124-
[homepage]: http://contributor-covenant.org
125-
[version]: http://contributor-covenant.org/version/1/4/

README.md

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,54 @@
11
# Schematic
2-
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FSage-Bionetworks%2Fschematic%2Fbadge%3Fref%3Ddevelop&style=flat)](https://actions-badge.atrox.dev/Sage-Bionetworks/schematic/goto?ref=develop) [![Documentation Status](https://readthedocs.org/projects/sage-schematic/badge/?version=develop)](https://sage-schematic.readthedocs.io/en/develop/?badge=develop)
3-
4-
5-
- [Schematic](#schematic)
6-
- [Introduction](#introduction)
7-
- [Installation Requirements and Pre-requisites](#installation-requirements-and-pre-requisites)
8-
- [Package Setup Instructions](#package-setup-instructions)
9-
- [Command Line Interface](#command-line-interface)
10-
- [Contributing](#contributing)
11-
- [Contributors](#contributors)
2+
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FSage-Bionetworks%2Fschematic%2Fbadge%3Fref%3Ddevelop&style=flat)](https://actions-badge.atrox.dev/Sage-Bionetworks/schematic/goto?ref=develop) [![Documentation Status](https://readthedocs.org/projects/sage-schematic/badge/?version=develop)](https://sage-schematic.readthedocs.io/en/develop/?badge=develop) [![PyPI version](https://badge.fury.io/py/schematicpy.svg)](https://badge.fury.io/py/schematicpy)
123

134
## Introduction
145

15-
SCHEMATIC is an acronym for _Schema Engine for Manifest Ingress and Curation_. The Python based infrastructure provides a _novel_ schema-based, data ingress ecosystem, that is meant to streamline the process of metadata annotation and validation for various data contributors.
6+
SCHEMATIC is an acronym for _Schema Engine for Manifest Ingress and Curation_. The Python based infrastructure provides a _novel_ schema-based, data ingress ecosystem, that is meant to streamline the process of dataset annotation, metadata validation and submission to an asset store for various data contributors.
167

178
## Installation Requirements and Pre-requisites
189

1910
* Python 3.7.1 or higher
20-
* [`pyenv`](https://github.com/pyenv/pyenv)
21-
* [`poetry`](https://github.com/python-poetry/poetry)
2211

12+
Note: You need to be a registered and certified user on [`synapse.org`](https://www.synapse.org/), and also have the right permissions to download the Google credentials files from Synapse.
13+
14+
## Installing
15+
16+
Create and activate a virtual environment within which you can install the package:
17+
18+
```
19+
python -m venv .venv
20+
source .venv/bin/activate
21+
```
2322

24-
**Important**: You need to be a registered and certified user on [`synapse.org`](https://www.synapse.org/), and also have the right permissions to download the Google credentials files from Synapse.
23+
Install and update the package using [pip](https://pip.pypa.io/en/stable/quickstart/):
2524

26-
## Package Setup Instructions
25+
```
26+
python -m pip install schematicpy
27+
```
2728

28-
* [Clone Project Repository](https://sage-schematic.readthedocs.io/en/develop/README.html#clone-project-repository)
29-
* [Virtual Environment Setup](https://sage-schematic.readthedocs.io/en/develop/README.html#virtual-environment-setup)
30-
* [Install Dependencies](https://sage-schematic.readthedocs.io/en/develop/README.html#install-dependencies)
31-
* [Fill in Configuration File(s)](https://sage-schematic.readthedocs.io/en/develop/README.html#fill-in-configuration-file-s)
32-
* [Obtain Credentials File(s)](https://sage-schematic.readthedocs.io/en/develop/README.html#obtain-credentials-file-s)
29+
## Command Line Client Usage
3330

31+
### Initialization
3432

35-
## Command Line Interface
33+
```
34+
schematic init --config ~/path/to/config.yml # initialize mode of authentication
35+
```
3636

37-
* [Schematic Initialization](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-init) (_initialize mode of authentication_)
37+
### Manifest
3838

39-
* [Metadata Manifest Validation](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-validate) (_validate metadata manifest (.csv) files_)
39+
```
40+
schematic manifest --config ~/path/to/config.yml get # generate manifest based on data type
41+
```
4042

41-
* [Metadata Manifest Generation](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-manifest-get) (_generate metadata manifest (.csv) files_)
43+
```
44+
schematic manifest --config ~/path/to/config.yml validate # validate manifest
45+
```
4246

43-
* [Metadata Manifest Validation and Submission](https://sage-schematic.readthedocs.io/en/develop/cli_reference.html#schematic-model-submit) (_submission and optional validation of metadata manifest (.csv) files_)
47+
### Model
4448

45-
Refer to the [docs](https://github.com/Sage-Bionetworks/schematic/tree/develop/docs/md/details.md) for more details.
49+
```
50+
schematic model --config ~/path/to/config.yml submit # validate and submit manifest
51+
```
4652

4753
## Contributing
4854

_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)