File: chapter_contributing.rst

package info (click to toggle)
python-biopython 1.85%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 126,372 kB
  • sloc: xml: 1,047,995; python: 332,722; ansic: 16,944; sql: 1,208; makefile: 140; sh: 81
file content (167 lines) | stat: -rw-r--r-- 7,459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
.. _`chapter:contributing`:

Where to go from here – contributing to Biopython
=================================================

Bug Reports + Feature Requests
------------------------------

Getting feedback on the Biopython modules is very important to us.
Open-source projects like this benefit greatly from feedback,
bug-reports (and patches!) from a wide variety of contributors.

The main forums for discussing feature requests and potential bugs are
the `Biopython mailing list <http://biopython.org/wiki/Mailing_lists>`__
and issues or pull requests on GitHub.

Additionally, if you think you’ve found a new bug, you can submit it to
our issue tracker at https://github.com/biopython/biopython/issues (this
replaced the older Open Bioinformatics Foundation hosted RedMine
tracker). This way, it won’t get buried in anyone’s Inbox and forgotten
about.

Mailing lists and helping newcomers
-----------------------------------

We encourage all our uses to sign up to the main Biopython mailing list.
Once you’ve got the hang of an area of Biopython, we’d encourage you to
help answer questions from beginners. After all, you were a beginner
once.

Contributing Documentation
--------------------------

We’re happy to take feedback or contributions - either via a bug-report
or on the Mailing List. While reading this tutorial, perhaps you noticed
some topics you were interested in which were missing, or not clearly
explained. There is also Biopython’s built-in documentation (the
docstrings, these are also
`online <http://biopython.org/DIST/docs/api>`__), where again, you may
be able to help fill in any blanks.

Contributing cookbook examples
------------------------------

As explained in Chapter :ref:`chapter:cookbook`,
Biopython now has a wiki collection of user contributed “cookbook”
examples, http://biopython.org/wiki/Category:Cookbook – maybe you can
add to this?

.. _`sec:maintain_dist`:

Maintaining a distribution for a platform
-----------------------------------------

We currently provide source code archives (suitable for any OS, if you
have the right build tools installed), and pre-compiled wheels via
https://github.com/biopython/biopython-wheels to cover the major
operating systems.

Most major Linux distributions have volunteers who take these source
code releases, and compile them into packages for Linux users to easily
install (taking care of dependencies etc). This is really great and we
are of course very grateful. If you would like to contribute to this
work, please find out more about how your Linux distribution handles
this. There is a similar process for conda packages via
https://github.com/conda-forge/biopython-feedstock thanks to the
conda-forge team.

Below are some tips for certain platforms to maybe get people started
with helping out:

Windows
   – You must first make sure you have a C compiler on your Windows
   computer, and that you can compile and install things (this is the
   hard bit - see the Biopython installation instructions for info on
   how to do this).

RPMs
   – RPMs are pretty popular package systems on some Linux platforms.
   There is lots of documentation on RPMs available at
   http://www.rpm.org to help you get started with them. To create an
   RPM for your platform is really easy. You just need to be able to
   build the package from source (having a C compiler that works is thus
   essential) – see the Biopython installation instructions for more
   info on this.

   To make the RPM, you just need to do:

   .. code:: console

      $ python setup.py bdist_rpm

   This will create an RPM for your specific platform and a source RPM
   in the directory ``dist``. This RPM should be good and ready to go,
   so this is all you need to do! Nice and easy.

Macintosh
   – Since Apple moved to Mac OS X, things have become much easier on
   the Mac. We generally treat it as just another Unix variant, and
   installing Biopython from source is just as easy as on Linux. The
   easiest way to get all the GCC compilers etc installed is to install
   Apple’s X-Code. We might be able to provide click and run installers
   for Mac OS X, but to date there hasn’t been any demand.

Once you’ve got a package, please test it on your system to make sure it
installs everything in a good way and seems to work properly. Once you
feel good about it, make a pull request on GitHub and write to our
`Biopython mailing list <http://biopython.org/wiki/Mailing_lists>`__.
You’ve done it. Thanks!

Contributing Unit Tests
-----------------------

Even if you don’t have any new functionality to add to Biopython, but
you want to write some code, please consider extending our unit test
coverage. We’ve devoted all of
Chapter :ref:`chapter:testing` to this topic.

Contributing Code
-----------------

There are no barriers to joining Biopython code development other than
an interest in creating biology-related code in Python. The best place
to express an interest is on the Biopython mailing lists – just let us
know you are interested in coding and what kind of stuff you want to
work on. Normally, we try to have some discussion on modules before
coding them, since that helps generate good ideas – then just feel free
to jump right in and start coding!

The main Biopython release tries to be fairly uniform and interworkable,
to make it easier for users. You can read about some of (fairly
informal) coding style guidelines we try to use in Biopython in the
contributing documentation at http://biopython.org/wiki/Contributing. We
also try to add code to the distribution along with tests (see
Chapter :ref:`chapter:testing` for more info on the
regression testing framework) and documentation, so that everything can
stay as workable and well documented as possible (including docstrings).
This is, of course, the most ideal situation, under many situations
you’ll be able to find other people on the list who will be willing to
help add documentation or more tests for your code once you make it
available. So, to end this paragraph like the last, feel free to start
working!

Please note that to make a code contribution you must have the legal
right to contribute it and license it under the Biopython license. If
you wrote it all yourself, and it is not based on any other code, this
shouldn’t be a problem. However, there are issues if you want to
contribute a derivative work - for example something based on GPL or
LPGL licensed code would not be compatible with our license. If you have
any queries on this, please discuss the issue on the mailing list or
GitHub.

Another point of concern for any additions to Biopython regards any
build time or run time dependencies. Generally speaking, writing code to
interact with a standalone tool (like BLAST, EMBOSS or ClustalW) doesn’t
present a big problem. However, any dependency on another library - even
a Python library (especially one needed in order to compile and install
Biopython like NumPy) would need further discussion.

Additionally, if you have code that you don’t think fits in the
distribution, but that you want to make available, we maintain Script
Central (http://biopython.org/wiki/Scriptcentral) which has pointers to
freely available code in Python for bioinformatics.

Hopefully this documentation has got you excited enough about Biopython
to try it out (and most importantly, contribute!). Thanks for reading
all the way through!