Skip to content

Commit a26db57

Browse files
committed
Merge branch 'fix-setup-py-description-and-release-doc-tweaks' into dev
* fix-setup-py-description-and-release-doc-tweaks: Makefile: Consolidate documentation targets, and add "htmlclean" docs: Fix duplicated label warnings in tutorials docs: Use consistent description between README and ReadTheDocs docs: Update "How to Update Requirements Files" section docs: Update external links offering https to use it setup.py: Set zip_safe to False to ensure installed package is never zipped. setup.py: Fix extraction and rendering of README.rst content setup.py: Fix presentation of package on PyPI by properly specifying license setup.py: Remove dead code and obsolete comments from setup.py docs: Fix "step-by-step" release process instructions
2 parents 18830e2 + 5b65cdf commit a26db57

File tree

11 files changed

+90
-62
lines changed

11 files changed

+90
-62
lines changed

Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,20 @@ test_docker:
3939

4040
apidoc:
4141
cd docs && $(MAKE) apidoc
42-
@echo ""
43-
@echo "To view the PDF documentation open: docs/_build/html/index.html"
4442

45-
htmldoc:
43+
htmldoc-only: apidoc
4644
cd docs && $(MAKE) html
47-
@echo ""
48-
@echo "To view the PDF documentation open: docs/_build/html/index.html"
4945

50-
docs-only: htmldoc
46+
htmlclean:
47+
cd docs && $(MAKE) clean
5148

52-
docs: docs-only
49+
htmldoc-open:
50+
@echo ""
51+
@echo "To view the HTML documentation open: docs/_build/html/index.html"
5352
open docs/_build/html/index.html || xdg-open docs/_build/html/index.html
5453

54+
htmldoc: htmldoc-only htmldoc-open
55+
5556
pdfdoc:
5657
cd docs && $(MAKE) latexpdf
5758
@echo ""

README.rst

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
===============================
2-
pynwb
3-
===============================
1+
=====
2+
PyNWB
3+
=====
44

5-
Documentation of PyNWB can be found at http://pynwb.readthedocs.io/.
5+
Documentation of PyNWB can be found at https://pynwb.readthedocs.io
66

77
Build Status
88
------------
99

10-
+-----------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+
11-
| Linux | macOS | Windows |
12-
+=========================================================================================+=========================================================================================+=======================================================================================+
13-
| .. image:: https://circleci.com/gh/NeurodataWithoutBorders/pynwb.svg?style=shield | .. image:: https://travis-ci.org/NeurodataWithoutBorders/pynwb.svg?branch=dev | .. image:: https://ci.appveyor.com/api/projects/status/9y808ua44yldy5n3?svg=true |
14-
| :target: https://circleci.com/gh/NeurodataWithoutBorders/pynwb | :target: https://travis-ci.org/NeurodataWithoutBorders/pynwb | :target: https://ci.appveyor.com/project/NeurodataWithoutBorders/pynwb |
15-
+-----------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+
10+
.. table::
11+
12+
+-----------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+
13+
| Linux | macOS | Windows |
14+
+=========================================================================================+=========================================================================================+=======================================================================================+
15+
| .. image:: https://circleci.com/gh/NeurodataWithoutBorders/pynwb.svg?style=shield | .. image:: https://travis-ci.org/NeurodataWithoutBorders/pynwb.svg?branch=dev | .. image:: https://ci.appveyor.com/api/projects/status/9y808ua44yldy5n3?svg=true |
16+
| :target: https://circleci.com/gh/NeurodataWithoutBorders/pynwb | :target: https://travis-ci.org/NeurodataWithoutBorders/pynwb | :target: https://ci.appveyor.com/project/NeurodataWithoutBorders/pynwb |
17+
+-----------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+
1618

1719

1820
Overall Health
@@ -28,9 +30,17 @@ Overall Health
2830
NWB Format API
2931
==============
3032

31-
A Python API for working with Neurodata stored in the NWB Format
33+
PyNWB is a Python package for working with NWB files. It provides a high-level API for
34+
efficiently working with Neurodata stored in the `NWB format <https://nwb-schema.readthedocs.io>`_.
35+
36+
`Neurodata Without Borders: Neurophysiology (NWB:N) <http://www.nwb.org/>`_ is a project to develop a
37+
unified data format for cellular-based neurophysiology data, focused on the
38+
dynamics of groups of neurons measured under a large range of experimental
39+
conditions.
3240

33-
-`Learn more <http://www.nwb.org/>`_.
41+
The NWB:N team consists of neuroscientists and software developers
42+
who recognize that adoption of a unified data format is an important step toward
43+
breaking down the barriers to data sharing in neuroscience.
3444

3545
Code of Conduct
3646
===============

docs/source/example.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,14 @@ Create a new namespace with extensions
469469
Using the API to generate extensions (rather than writing YAML sources directly) helps avoid errors in the specification
470470
(e.g., due to missing required keys or invalid values) and ensure compliance of the extension definition with the
471471
NWB specification language. It also helps with maintanence of extensions, e.g., if extensions have to be ported to
472-
newer versions of the `specification language <http://schema-language.readthedocs.io/en/latest/>`_
472+
newer versions of the `specification language <https://schema-language.readthedocs.io/en/latest/>`_
473473
in the future.
474474
475475
476476
Documenting Extensions
477477
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
478478
479-
Using the same tools used to generate the documentation for the `NWB-N core format <http://nwb-schema.readthedocs.io/en/latest/>`_
479+
Using the same tools used to generate the documentation for the `NWB-N core format <https://nwb-schema.readthedocs.io/en/latest/>`_
480480
one can easily generate documentation in HTML, PDF, ePub and many other format for extensions as well.
481481
482482
For the purpose of this example we assume that our current directory has the following structure.
@@ -559,7 +559,7 @@ Further Reading
559559
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
560560
561561
* **Using Extensions:** See :ref:`useextension` for an example on how to use extensions during read and write.
562-
* **Specification Language:** For a detailed overview of the specification language itself see http://schema-language.readthedocs.io/en/latest/
562+
* **Specification Language:** For a detailed overview of the specification language itself see https://schema-language.readthedocs.io/en/latest/
563563
564564
Validating NWB files
565565
-----------------------------------------------------

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NWB for Python
77
==============
88

99
PyNWB is a Python package for working with NWB files. It provides a high-level API for
10-
efficiently working with Neurodata stored in the `NWB format <http://nwb-schema.readthedocs.io>`_.
10+
efficiently working with Neurodata stored in the `NWB format <https://nwb-schema.readthedocs.io>`_.
1111

1212
`Neurodata Without Borders: Neurophysiology (NWB:N) <http://www.nwb.org/>`_ is a project to develop a
1313
unified data format for cellular-based neurophysiology data, focused on the

docs/source/make_a_release.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ Step-by-step
7676

7777
2. Download latest sources::
7878

79-
$ cd /tmp && git clone [email protected]:NeurodataWithoutBorders/pynwb
79+
$ cd /tmp && git clone [email protected]:NeurodataWithoutBorders/pynwb && cd pynwb
8080

8181

8282
3. Tag the release::
8383

8484
$ git tag -s -m "pynwb ${release}" ${release} origin/dev
8585

86-
*Requires a GPG signing key*
86+
*Requires a GPG signing key*
8787

8888

8989
4. Create a new virtual environment and install release requirements::

docs/source/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Software Architecture
2626
NWB Format
2727
==========
2828

29-
The `NWB Format <http://nwb-schema.readthedocs.io>`_ is built around two concepts: *TimeSeries* and *Modules*.
29+
The `NWB Format <https://nwb-schema.readthedocs.io>`_ is built around two concepts: *TimeSeries* and *Modules*.
3030

3131
:ref:`timeseries_overview` are objects for storing time series data, and :ref:`modules_overview` are objects
3232
for storing and grouping analyses. The following sections describe these classes in further detail.

docs/source/tutorial_source/convert.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _tutorial_convert:
2-
31
Converting data to NWB
42
======================
53

@@ -24,10 +22,10 @@ crcns-ret-1: Meister lab retina data
2422
stimuli. Recordings were done by Yifeng Zhang in
2523
Markus Meister's lab at Harvard University in 2008.
2624
Further description of the data are available here:
27-
http://crcns.org/data-sets/retina/ret-1/about-ret-1
25+
https://crcns.org/data-sets/retina/ret-1/about-ret-1
2826

2927
* **Data Terms of use** The data used on the notebook and, therefore also the NWB files generated by the notebook are governed
30-
by the terms-of-use of CRCNS.org described here http://crcns.org/terms .
28+
by the terms-of-use of CRCNS.org described here https://crcns.org/terms .
3129

3230
* **Comparison to NWB 1.0.x`:**
3331

docs/source/tutorial_source/extension.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _tutorial_extensions:
2-
31
Extensions
42
=========================
53

docs/source/tutorials.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
Tutorials
33
#########
44

5+
.. _tutorial_convert:
6+
57
.. include:: tutorial_source/extension.rst
8+
9+
.. _tutorial_extensions:
10+
611
.. include:: tutorial_source/convert.rst

docs/source/update_requirements.rst

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,57 @@
55
How to Update Requirements Files
66
================================
77

8-
The different requirements files introduced in :ref:`software_process` are the following:
8+
The different requirements files introduced in :ref:`software_process` section are the following:
9+
10+
* requirements.txt_
11+
* requirements-dev.txt_
12+
* requirements-doc.txt_
913

1014
.. _requirements.txt: https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/requirements.txt
1115
.. _requirements-dev.txt: https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/requirements-dev.txt
1216
.. _requirements-doc.txt: https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/requirements-doc.txt
1317

18+
requirements.txt
19+
================
20+
21+
`Requirements.txt` of the project can be created or updated and then captured using
22+
the following script:
23+
24+
.. code::
25+
26+
mkvirtualenv pynwb-requirements
27+
28+
cd pynwb
29+
pip install .
30+
pip freeze > requirements.txt
1431
15-
section can be updated using
16-
These section explains how to update the multiple requirements files presented in the
32+
deactivate
33+
rmvirtualenv pynwb-requirements
1734
1835
36+
requirements-(dev|doc).txt
37+
==========================
1938

20-
Requirements.txt of the project can be created and captured by following the code snippet below:
39+
Any of these requirements files can be updated updated using
40+
the following scripts:
2141

2242
.. code::
2343
2444
cd pynwb
25-
mkvirtualenv pynwb
26-
pip install .
27-
pip freeze > requirements.txt
45+
46+
# Set the requirements file to update
47+
target_requirements=requirements-dev.txt
48+
49+
mkvirtualenv pynwb-requirements
50+
51+
# Install updated requirements
52+
pip install -U -r $target_requirements
53+
54+
# If relevant, you could pip install new requirements now
55+
# pip install -U <name-of-new-requirement>
56+
57+
# Update list of pinned requirements
58+
pip freeze > $target_requirements
59+
60+
deactivate
61+
rmvirtualenv pynwb-requirements

0 commit comments

Comments
 (0)