Skip to content

Commit d7f23a1

Browse files
authored
Repo cleanup (#1055)
* Replace refs to Appveyor/Travis with Azure * Move code of conduct and issue and PR templates to .github * Fix typos, formatting, old references * Remove dummy job from Azure * Remove unused example documentation code
1 parent 7bd72bb commit d7f23a1

File tree

11 files changed

+87
-246
lines changed

11 files changed

+87
-246
lines changed
File renamed without changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us fix a bug
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
12+
<!--Please provide the following in your bug report:-->
13+
14+
## Steps to Reproduce
15+
16+
<!--Provide a minimal code snippet here to reproduce this error.-->
17+
18+
## Environment
19+
20+
<!--Please describe your environment according to the following bullet points.-->
21+
22+
Python Executable: Conda or Python
23+
Python Version: Python 3.5, 3.6, or 3.7
24+
Operating System: Windows, macOS or Linux
25+
HDMF Version: Version of PyNWB used
26+
27+
## Checklist
28+
29+
- [ ] Have you ensured the feature or change was not already [reported](https://github.com/NeurodataWithoutBorders/pynwb/issues)?
30+
- [ ] Have you included a brief and descriptive title?
31+
- [ ] Have you included a clear description of the problem you are trying to solve?
32+
- [ ] Have you included a minimal code snippet that reproduces the issue you are encountering?
33+
- [ ] Have you checked our [Contributing](https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/docs/CONTRIBUTING.rst) document?
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
Briefly describe the needed feature as well as the reasoning behind it
11+
12+
**Is your feature request related to a problem? Please describe.**
13+
A clear and concise description of what the problem is. Ex. I'm trying to achieve [...]
14+
15+
**Describe the solution you'd like**
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
A clear and concise description of any alternative solutions or features you've considered.
20+
21+
**Additional context**
22+
Add any other context or screenshots about the feature request here.
23+
24+
## Checklist
25+
26+
- [ ] Have you ensured the feature or change was not already [reported](https://github.com/NeurodataWithoutBorders/pynwb/issues)?
27+
- [ ] Have you included a brief and descriptive title?
28+
- [ ] Have you included a clear description of the problem you are trying to solve?
29+
- [ ] Have you included a minimal code snippet that reproduces the issue you are encountering?
30+
- [ ] Have you checked our [Contributing](https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/docs/CONTRIBUTING.rst) document?

docs/PULL_REQUEST_TEMPLATE.md renamed to .github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Show here how to reproduce the new behavior (can be a bug fix or a new feature)
1111

1212
- [ ] Have you checked our [Contributing](https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/docs/CONTRIBUTING.rst) document?
1313
- [ ] Have you ensured the PR description clearly describes problem and the solution?
14-
- [ ] Is your contribution compliant with our coding style ? This can be checked running `flake8` from the source directory.
14+
- [ ] Is your contribution compliant with our coding style? This can be checked running `flake8` from the source directory.
1515
- [ ] Have you checked to ensure that there aren't other open [Pull Requests](https://github.com/NeurodataWithoutBorders/pynwb/pulls) for the same change?
16-
- [ ] Have you included the relevant issue number using `#XXX` notation where `XXX` is the issue number ?
16+
- [ ] Have you included the relevant issue number using `#XXX` notation where `XXX` is the issue number?

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ checkpdb:
4646
find {src,tests} -name "*.py" -exec grep -Hn -e pdb -e breakpoint {} \;
4747

4848
devtest:
49-
$(PYTHON) -W ignore:::pynwb.form.build.map: test.py -fpi
49+
$(PYTHON) test.py
5050

5151
testclean:
5252
rm *.npy *.nwb *.yaml

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PyNWB
55
Documentation of PyNWB can be found at https://pynwb.readthedocs.io
66

77
Latest Release
8-
--------------
8+
==============
99

1010
.. image:: https://badge.fury.io/py/pynwb.svg
1111
:target: https://badge.fury.io/py/pynwb
@@ -15,7 +15,7 @@ Latest Release
1515

1616

1717
Build Status
18-
------------
18+
============
1919

2020
.. table::
2121

@@ -35,7 +35,7 @@ Build Status
3535

3636

3737
Overall Health
38-
--------------
38+
==============
3939

4040
.. image:: https://codecov.io/gh/NeurodataWithoutBorders/pynwb/branch/dev/graph/badge.svg
4141
:target: https://codecov.io/gh/NeurodataWithoutBorders/pynwb
@@ -67,12 +67,12 @@ See the PyNWB documentation for details http://pynwb.readthedocs.io/en/latest/ge
6767
Code of Conduct
6868
===============
6969

70-
This project and everyone participating in it is governed by our `code of conduct guidelines <docs/CODE_OF_CONDUCT.rst>`_ . By participating, you are expected to uphold this code.
70+
This project and everyone participating in it is governed by our `code of conduct guidelines <.github/CODE_OF_CONDUCT.rst>`_. By participating, you are expected to uphold this code.
7171

7272
Contributing
7373
============
7474

75-
For details on how to contribute to PyNWB see our `contribution guidelines <docs/CONTRIBUTING.rst>`_ .
75+
For details on how to contribute to PyNWB see our `contribution guidelines <docs/CONTRIBUTING.rst>`_.
7676

7777
LICENSE
7878
=======

azure-pipelines.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,8 @@ trigger:
33

44
jobs:
55

6-
- job: 'Dummy'
7-
displayName: 'Dummy'
8-
9-
pool:
10-
vmImage: 'ubuntu-16.04'
11-
12-
steps:
13-
14-
- task: UsePythonVersion@0
15-
inputs:
16-
versionSpec: '3.7'
17-
architecture: 'x64'
18-
19-
- script: |
20-
python -m pip install --upgrade pip
21-
displayName: 'Install build dependencies'
22-
23-
- script: |
24-
python --version
25-
displayName: 'Check Python version'
26-
276
- job: 'Test'
287
displayName: "Test PyNWB"
29-
dependsOn: Dummy
308

319
strategy:
3210
matrix:

docs/CONTRIBUTING.rst

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ How to contribute to NWB:N software and documents
66
Code of Conduct
77
---------------
88

9-
This project and everyone participating in it is governed by our `code of conduct guidelines <https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/docs/CONTRIBUTING.rst>`_. By participating, you are expected to uphold this code. Please report unacceptable behavior.
9+
This project and everyone participating in it is governed by our `code of conduct guidelines <https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/.github/CONTRIBUTING.rst>`_. By participating, you are expected to uphold this code. Please report unacceptable behavior.
1010

1111
.. _sec-contribution-types:
1212

@@ -18,11 +18,11 @@ Did you find a bug? or Do you intend to add a new feature or change an existing
1818

1919
* **Identify the appropriate repository** for the change you are suggesting:
2020

21-
* Use `nwb_schema <https://github.com/NeurodataWithoutBorders/nwb-schema/>`_ for any changes to the NWB:N format schema, schema language, storage and other NWB:N related documents
21+
* Use `nwb-schema <https://github.com/NeurodataWithoutBorders/nwb-schema/>`_ for any changes to the NWB:N format schema, schema language, storage, and other NWB:N related documents
2222
* Use `PyNWB <https://github.com/NeurodataWithoutBorders/pynwb>`_ for any changes regarding the PyNWB API and the corresponding documentation
2323
* Use `MatNWB <https://github.com/NeurodataWithoutBorders/matnwb>`_ for any changes regarding the PyNWB API and the corresponding documentation
2424

25-
* **Ensure the feature or change was not already reported** by searching on GitHub under `PyNWB Issues <https://github.com/NeurodataWithoutBorders/pynwb/issues>`_ and `nwh-schema issues <https://github.com/NeurodataWithoutBorders/nwb-schema/issues>`_ , respectively .
25+
* **Ensure the feature or change was not already reported** by searching on GitHub under `PyNWB Issues <https://github.com/NeurodataWithoutBorders/pynwb/issues>`_ and `nwb-schema issues <https://github.com/NeurodataWithoutBorders/nwb-schema/issues>`_, respectively .
2626

2727
* If you are unable to find an open issue addressing the problem then open a new issue on the respective repository. Be sure to include:
2828

@@ -38,25 +38,22 @@ Did you write a patch that fixes a bug or implements a new feature?
3838
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3939
See the ``Contributing Patches and Changes`` section below for details.
4040

41-
4241
Do you have questions about NWB:N?
4342
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4443

45-
Join the `NWB:N mailing list <http://visitor.r20.constantcontact.com/manage/optin?v=001nQUq2GTjwCjZxK_V2-6RLElLJO1HMVtoNLJ-wGyDCukZQZxu2AFJmNh6NS0_lGMsWc2w9hZpeNn74HuWdv5RtLX9qX0o0Hy1P0hOgMrkm2NoGAX3VoY25wx8HAtIZwredcCuM0nCUGodpvoaue3SzQ%3D%3D>`_ for updates or ask questions on our `google group <https://groups.google.com/forum/#!forum/neurodatawithoutborders>`_.
46-
44+
Ask questions on our `Slack workspace <https://nwb-users.slack.com>`_ or sign up for our `NWB:N mailing list <http://visitor.r20.constantcontact.com/manage/optin?v=001nQUq2GTjwCjZxK_V2-6RLElLJO1HMVtoNLJ-wGyDCukZQZxu2AFJmNh6NS0_lGMsWc2w9hZpeNn74HuWdv5RtLX9qX0o0Hy1P0hOgMrkm2NoGAX3VoY25wx8HAtIZwredcCuM0nCUGodpvoaue3SzQ%3D%3D>`_ for updates.
4745

48-
Informal discussions between developers, users, and team?
46+
Informal discussions between developers and users?
4947
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5048

51-
The https://nwb-users.slack.com slack is currently used mainly for internal discussions between developers, users, and teams.
52-
49+
The https://nwb-users.slack.com slack is currently used mainly for informal discussions between developers and users.
5350

5451
.. _sec-contributing:
5552

5653
Contributing Patches and Changes
5754
--------------------------------
5855

59-
The ``dev`` branches of `PyNWB <https://github.com/NeurodataWithoutBorders/pynwb>`_ and `nwb_schema <https://github.com/NeurodataWithoutBorders/nwb-schema/>`_, are protected; you cannot push to them directly. You must upload your changes by pushing a new branch, then submit your changes to the ``dev`` branch via a `Pull Request <https://help.github.com/articles/creating-a-pull-request>`_. This allows us to conduct automated testing of your contribution, and gives us a space for developers to discuss the contribution and request changes. If you decide to tackle an issue, please make yourself an assignee on the issue to communicate this to the team. Don't worry - this does not commit you to solving this issue. It just lets others know who they should talk to about it.
56+
The ``dev`` branches of `PyNWB <https://github.com/NeurodataWithoutBorders/pynwb>`_ and `nwb-schema <https://github.com/NeurodataWithoutBorders/nwb-schema/>`_, are protected; you cannot push to them directly. You must upload your changes by pushing a new branch, then submit your changes to the ``dev`` branch via a `Pull Request <https://help.github.com/articles/creating-a-pull-request>`_. This allows us to conduct automated testing of your contribution, and gives us a space for developers to discuss the contribution and request changes. If you decide to tackle an issue, please make yourself an assignee on the issue to communicate this to the team. Don't worry - this does not commit you to solving this issue. It just lets others know who they should talk to about it.
6057

6158
From your local copy directory, use the following commands.
6259

@@ -90,7 +87,6 @@ If you have not already, you will need to clone the repo:
9087
* If you would like help with your contribution, or would like to communicate contributions that are not ready to merge, submit a PR where the title begins with "[WIP]."
9188
* **NOTE:** Contributed branches will be removed by the development team after the merge is complete and should, hence, not be used after the pull request is complete.
9289

93-
9490
.. _sec-issue-labels:
9591

9692
Issue Labels, Projects, and Milestones
@@ -134,15 +130,13 @@ Git Commit Message Styleguide
134130
Documentation Styleguide
135131
^^^^^^^^^^^^^^^^^^^^^^^^
136132

137-
All documentations is written in reStrcuturedText (RST) using Sphinx.
138-
133+
All documentations is written in reStructuredText (RST) using Sphinx.
139134

140135
Did you fix whitespace, format code, or make a purely cosmetic patch in source code?
141136
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142137

143138
Source code changes that are purely cosmetic in nature and do not add anything substantial to the stability, functionality, or testability will generally not be accepted unless they have been approved beforehand. One of the main reasons is that there are a lot of hidden costs in addition to writing the code itself, and with the limited resources of the project, we need to optimize developer time. E.g,. someone needs to test and review PRs, backporting of bug fixes gets harder, it creates noise and pollutes the git repo and many other cost factors.
144139

145-
146140
Format Specification Styleguide
147141
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
148142

@@ -151,20 +145,20 @@ Format Specification Styleguide
151145
Python Code Styleguide
152146
^^^^^^^^^^^^^^^^^^^^^^
153147

154-
Python coding style is checked via ``flake8`` for automatic checking of PEP8 style during pull requets.
148+
Python coding style is checked via ``flake8`` for automatic checking of PEP8 style during pull requests.
155149

156150
Endorsement
157151
-----------
158152

159153
Please don’t take the fact that working with an organization (e.g., during a hackathon or via GitHub) as an endorsement of your work or your organization. It’s okay to say e.g., “We worked with XXXXX to advance science” but not e.g., “XXXXX supports our work on NWB”.”
160154

161-
Licence and Copyright
155+
License and Copyright
162156
=======================
163157

164-
See the `Readme <https://github.com/NeurodataWithoutBorders/pynwb#contributing>`_ and correspoding `licence <https://raw.githubusercontent.com/NeurodataWithoutBorders/pynwb/dev/license.txt>`_ files for details about the copyright and licence.
158+
See the `license <https://raw.githubusercontent.com/NeurodataWithoutBorders/pynwb/dev/license.txt>`_ files for details about the copyright and license.
165159

166160
As indicated in the PyNWB license: *“You are under no obligation whatsoever to provide any bug fixes, patches, or upgrades to the features, functionality or performance of the source code ("Enhancements") to anyone; however, if you choose to make your Enhancements available either publicly, or directly to Lawrence Berkeley National Laboratory, without imposing a separate written license agreement for such Enhancements, then you hereby grant the following license: a non-exclusive, royalty-free perpetual license to install, use, modify, prepare derivative works, incorporate into other computer software, distribute, and sublicense such enhancements or derivative works thereof, in binary and source code form.”*
167161

168-
Contributors to the NWB code base are expected to use a permissive, non-copyleft open source license. Typically 3-clause BSD i used, but any compatible license is allowed, the MIT and Apache 2.0 licenses being good alternative choices. The GPL and other copyleft licenses are not allowed due to the consternation it generates across many organizations.
162+
Contributors to the NWB code base are expected to use a permissive, non-copyleft open source license. Typically 3-clause BSD is used, but any compatible license is allowed, the MIT and Apache 2.0 licenses being good alternative choices. The GPL and other copyleft licenses are not allowed due to the consternation it generates across many organizations.
169163

170164
Also, make sure that you are permitted to contribute code. Some organizations, even academic organizations, have agreements in place that discuss IP ownership in detail (i.e., address IP rights and ownership that you create while under the employ of the organization). These are typically signed documents that you looked at on your first day of work and then promptly forgot. We don’t want contributed code to be yanked later due to IP issues.

docs/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)