Skip to content

Commit fe9ed15

Browse files
authored
Update changelog, license, requirements, docs (#5)
1 parent a5c19d0 commit fe9ed15

File tree

9 files changed

+71
-19
lines changed

9 files changed

+71
-19
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# generated docs
2+
docs/source/_format_auto_docs
3+
4+
15
# Byte-compiled / optimized / DLL files
26
__pycache__/
37
*.py[cod]

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ndx-franklab-novela Changelog
2+
3+
## 0.1.0 (December 9, 2021)
4+
5+
- Removed `NdxImageSeries` data type. The core NWB `ImageSeries` type should be used instead.
6+
- Replaced all custom Python classes with autogenerated Python classes. This should not affect downstream code.
7+
- Updated authors, contact information, license, and readme.
8+
- Updated requirements to use the latest HDMF and PyNWB packages.
9+
- Added basic CI using GitHub Actions.

LICENSE.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
Copyright 2021, NovelaNeurotechnologies, Loren Frank, Eric Denovellis, Ryan Ly
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
12+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
13+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
14+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
116
Copyright 2020, NovelaNeurotechnologies
217

318
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -11,4 +26,4 @@ Redistribution and use in source and binary forms, with or without modification,
1126
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1227
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
1328
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
14-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* override table width restrictions */
2+
@media screen and (min-width: 767px) {
3+
4+
.wy-table-responsive table td {
5+
/* !important prevents the common CSS stylesheets from overriding
6+
this as on RTD they are loaded after this stylesheet */
7+
white-space: normal !important;
8+
}
9+
10+
.wy-table-responsive {
11+
overflow: visible !important;
12+
}
13+
}

docs/source/conf.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = 'ndx-franklab-novela'
21-
copyright = '2020, NovelaDevops'
22-
author = 'NovelaDevops'
21+
copyright = '2020-2021, NovelaNeurotechnologies, Loren Frank, Eric Denovellis, Ryan Ly'
22+
author = 'NovelaNeurotechnologies, Loren Frank, Eric Denovellis, Ryan Ly'
2323

2424
# The short X.Y version
2525

26-
version = '0.0.011.36'
26+
version = '0.1.0'
2727

2828

2929
# The full version, including alpha/beta/rc tags
@@ -49,7 +49,7 @@
4949
#
5050
# This is also used if you do content translation via gettext catalogs.
5151
# Usually you set "language" from the command line for these cases.
52-
language = 'English'
52+
language = 'en'
5353

5454
# List of patterns, relative to source directory, that match files and
5555
# directories to ignore when looking for source files.
@@ -73,6 +73,12 @@
7373
# -- Extension configuration -------------------------------------------------
7474

7575
# -- Options for intersphinx extension ---------------------------------------
76+
77+
# Example configuration for intersphinx: refer to the Python standard library.
78+
intersphinx_mapping = {
79+
'python': ('https://docs.python.org/3', None),
80+
}
81+
7682
############################################################################
7783
# CUSTOM CONFIGURATIONS ADDED BY THE NWB TOOL FOR GENERATING FORMAT DOCS
7884
###########################################################################
@@ -81,7 +87,10 @@
8187
import textwrap # noqa: E402
8288

8389
# -- Options for intersphinx ---------------------------------------------
84-
intersphinx_mapping = {'core': ('https://nwb-schema.readthedocs.io/en/latest/', None)}
90+
intersphinx_mapping.update({
91+
'core': ('https://nwb-schema.readthedocs.io/en/latest/', None),
92+
'hdmf-common': ('https://hdmf-common-schema.readthedocs.io/en/latest/', None),
93+
})
8594

8695
# -- Generate sources from YAML---------------------------------------------------
8796
# Always rebuild the source docs from YAML even if the folder with the source files already exists
@@ -104,8 +113,11 @@ def run_doc_autogen(_):
104113

105114
def setup(app):
106115
app.connect('builder-inited', run_doc_autogen)
107-
app.add_stylesheet("theme_overrides.css") # overrides for wide tables in RTD theme
108-
116+
# overrides for wide tables in RTD theme
117+
try:
118+
app.add_css_file("theme_overrides.css") # Used by newer Sphinx versions
119+
except AttributeError:
120+
app.add_stylesheet("theme_overrides.css") # Used by older version of Sphinx
109121

110122
# -- Customize sphinx settings
111123
numfig = True

docs/source/conf_doc_autogen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# -- Input options for the specification files to be used -----------------------
77

88
# Directory where the YAML files for the namespace to be documented are located
9-
spec_input_spec_dir = '..\spec'
9+
spec_input_spec_dir = '../spec'
1010

1111
# Name of the YAML file with the specification of the Namespace to be documented
1212
spec_input_namespace_filename = 'ndx-franklab-novela.namespace.yaml'

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Specification for the ndx-franklab-novela extension
2-
==================================
2+
===================================================
33

44
.. toctree::
55
:numbered:

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ dependencies:
77
- python>=3.6
88
- python-dateutil
99
- setuptools
10-
- hdmf
11-
- pynwb
10+
- hdmf>=3.1.1,<4
11+
- pynwb>=2.0.0,<3
1212
- pytest

meta.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ build:
1212

1313
requirements:
1414
build:
15-
- python==3.6
15+
- python==3.8
1616
- setuptools
17-
- hdmf==1.6.4
17+
- hdmf==3.1.1
1818
- python-dateutil
19-
- pynwb==1.3.3
19+
- pynwb==2.1.1
2020
run:
21-
- python>=3.6,<3.7
21+
- python>=3.6
2222
- python-dateutil
23-
- hdmf==1.6.4
24-
- pynwb==1.3.3
23+
- hdmf==3.1.1,<4
24+
- pynwb==2.0.0,<4
2525
- pytest
26-

0 commit comments

Comments
 (0)