@@ -28,27 +28,27 @@ a bug report:
28
28
29
29
30
30
```python
31
- >>> import zarr
32
- >>> g = zarr.group()
33
- .. .
31
+ import zarr
32
+ g = zarr.group()
33
+ # etc .
34
34
```
35
35
36
- 2. Information about the version of Zarr, along with versions of dependencies and the
36
+ 2. An explanation of why the current behaviour is wrong/not desired, and what you
37
+ expect instead.
38
+
39
+ 3. Information about the version of Zarr, along with versions of dependencies and the
37
40
Python interpreter, and installation information. The version of Zarr can be obtained
38
41
from the ``zarr.__version__ `` property. Please also state how Zarr was installed,
39
42
e.g., "installed via pip into a virtual environment", or "installed using conda".
40
- Information about other packages installed can be obtained by executing ``pip list ``
41
- (if using pip to install packages) or ``conda list `` (if using conda to install
43
+ Information about other packages installed can be obtained by executing ``pip freeze ``
44
+ (if using pip to install packages) or ``conda env export `` (if using conda to install
42
45
packages) from the operating system command prompt. The version of the Python
43
46
interpreter can be obtained by running a Python interactive session, e.g.::
44
47
45
48
$ python
46
49
Python 3.6.1 (default, Mar 22 2017, 06:17:05)
47
50
[GCC 6.3.0 20170321] on linux
48
51
49
- 3. An explanation of why the current behaviour is wrong/not desired, and what you
50
- expect instead.
51
-
52
52
Enhancement proposals
53
53
---------------------
54
54
@@ -60,7 +60,7 @@ mind that we are likely to be conservative in accepting proposals for new featur
60
60
reasons for this are that we would like to keep the Zarr code base lean and focused on
61
61
a core set of functionalities, and available time for development, review and maintenance
62
62
of new features is limited. But if you have a great idea, please don't let that stop
63
- you posting it on GitHub, just please don't be offended if we respond cautiously.
63
+ you from posting it on GitHub, just please don't be offended if we respond cautiously.
64
64
65
65
Contributing code and/or documentation
66
66
--------------------------------------
@@ -103,6 +103,9 @@ To verify that your development environment is working, you can run the unit tes
103
103
Creating a branch
104
104
~~~~~~~~~~~~~~~~~
105
105
106
+ Before you do any new work or submit a pull request, please open an issue on GitHub to
107
+ report the bug or propose the feature you'd like to add.
108
+
106
109
It's best to create a new, separate branch for each piece of work you want to do. E.g.::
107
110
108
111
git fetch upstream
@@ -113,16 +116,20 @@ this branch specific to one bug or feature so it is clear what the branch brings
113
116
Zarr.
114
117
115
118
To update this branch with latest code from Zarr, you can retrieve the changes from
116
- the master branch::
119
+ the master branch and perform a rebase ::
117
120
118
121
git fetch upstream
119
122
git rebase upstream/master
120
123
121
124
This will replay your commits on top of the latest Zarr git master. If this leads to
122
125
merge conflicts, these need to be resolved before submitting a pull request.
126
+ Alternatively, you can merge the changes in from upstream/master instead of rebasing,
127
+ which can be simpler::
123
128
124
- Before you do any new work or submit a pull request, please open an issue on GitHub to
125
- report the bug or propose the feature you'd like to add.
129
+ git fetch upstream
130
+ git merge upstream/master
131
+
132
+ Again, any conflicts need to be resolved before submitting a pull request.
126
133
127
134
Running the test suite
128
135
~~~~~~~~~~~~~~~~~~~~~~
@@ -152,7 +159,9 @@ tox environment runs the doctests, i.e., doctests only need to succeed under Pyt
152
159
153
160
All tests are automatically run via Travis (Linux) and AppVeyor (Windows) continuous
154
161
integration services for every pull request. Tests must pass under both services before
155
- code can be accepted.
162
+ code can be accepted. Test coverage is also collected automatically via the Coveralls
163
+ service, and total coverage over all builds must be 100% (although individual builds
164
+ may be lower due to Python 2/3 or other differences).
156
165
157
166
Code standards
158
167
~~~~~~~~~~~~~~
@@ -183,8 +192,8 @@ Documentation
183
192
184
193
Docstrings for user-facing classes and functions should follow the `numpydoc
185
194
<https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt> `_ standard,
186
- including sections for Parameters and Examples. All examples will be run as doctests
187
- under Python 3.6.
195
+ including sections for Parameters and Examples. All examples should run as doctests
196
+ under Python 3.6 only .
188
197
189
198
Zarr uses Sphinx for documentation, hosted on readthedocs.org. Documentation is
190
199
written in the RestructuredText markup language (.rst files) in the ``docs `` folder.
0 commit comments