-
In a terminal, change directory into the new ndx-simulation-output directory.
-
Add any packages required by your extension to
requirements.txt
andsetup.py
. -
Run
python -m pip install -r requirements.txt
to install thepynwb
package and any other packages required by your extension. -
Modify
src/create_extension_spec.py
to define your extension.- If you want to create any custom classes for interacting with the extension,
add them to the
src/pynwb
.- If present, the
src/pynwb
folder MUST contain the following:ndx-simulation-output
- Folder with the sources of the NWB extensionndx-simulation-output/__init__.py
- Python file that may be emptyrequirements.txt
- Text file listing the Python package requirements for the extensionREADME.md
- Markdown file describing the NWB extension
- If present, the
src/pynwb
folder MAY contain the following files/folders:test
- Folder for unit tests for the extensionsjupyter-widgets
- Optional package with custom widgets for use with Jupyter
- If present, the
- If you want to create any custom classes for interacting with the extension,
add them to the
-
Run
python src/spec/create_extension_spec.py
to generate thespec/ndx-simulation-output.namespace.yaml
andspec/ndx-simulation-output.extensions.yaml
files. -
You may need to modify
setup.py
and re-runpython setup.py install
if you use any dependencies.
To ensure the YAML files are distributed with your extension, make sure to
update setup.py
setting the package_data
and include_package_data
keyword parameters:
setup_args = {
# [...]
'package_data': {'ndx_simulation_output': [
'spec/ndx-simulation-output.namespace.yaml',
'spec/ndx-simulation-output.extensions.yaml',
]},
}
-
Clone the latest nwb-docutils repository https://github.com/nwb-extensions-test/ndx-template.git or install the latest release:
python -m pip install nwb-docutils
- If you cloned the latest version, run
python setup.py install
to install nwb-docutils locally.
- If you cloned the latest version, run
-
Start a git repository for your extension directory ndx-simulation-output and push it to GitHub. You will need a GitHub account.
- Follow these directions: https://help.github.com/en/articles/adding-an-existing-project-to-github-using-the-command-line
-
Change directory into
docs
. -
Run
make html
to generate documentation for your extension based on the YAML files. -
Read
docs/README.md
for instructions on how to customize documentation for your extension. -
Modify
README.md
to describe this extension for interested developers. -
Add a license file. Permissive licenses should be used if possible. BSD license is recommended.
-
Publish your updated extension on PyPi.
- Follow these directions: https://packaging.python.org/tutorials/packaging-projects/
- You may need to modify
setup.py
-
Go to https://github.com/nwb-extensions/staged-extensions and fork the repository to your local filesystem.
-
Copy the directory
staged-extensions/example
to a new directorystaged-extensions/ndx-simulation-output
. -
Edit
staged-extensions/ndx-simulation-output/ndx-meta.yaml
with information on where to find your NWB extension.- The YAML file MUST contain a dict with the following keys:
- name: ndx-simulation-output
- version: 0.1.0
- src: : URL to the public repository with the sources of the extension
- pip: : URL for installing the extensions from PyPi
- license: : name of the license of the extension
- maintainers: bendichter : list of GitHub usernames of those who will reliably maintain the extension
- The YAML file MUST contain a dict with the following keys:
-
Edit
staged-extensions/ndx-simulation-output/README.md
to add information about your extension. You may copy it fromndx-simulation-output/README.md
. -
Git commit and push your changes to GitHub.
-
Open a pull request. Building of your extension will be tested on Windows, Mac, and Linux. The technical team will review your extension shortly after and provide feedback and request changes, if any.
-
When your pull request is merged, a new repository, called ndx-simulation-output-feedstock will be created in the nwb-extensions GitHub organization and you will be added as a maintainer for that repository.
-
Update your ndx-simulation-output GitHub repository.
-
Publish your updated extension on PyPi.
-
Fork the ndx-simulation-output-feedstock repository on GitHub.
-
Open a pull request to test the changes automatically. The technical team will review your changes shortly after and provide feedback and request changes, if any.
-
Your updated extension is approved.