Skip to content

Commit 4b1336e

Browse files
authoredJun 6, 2024
Add python copyright
1 parent 2a0a1c9 commit 4b1336e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
 

‎docs/_09_development/_develop_guide/_develop_guide/_develop_new_pkg.rst

+43
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,49 @@ Python
179179

180180
Code should follow the `PEP 8 <https://peps.python.org/pep-0008/>`_ and `PEP 257 <https://peps.python.org/pep-0257/>`_ guidelines.
181181

182+
.. code-block:: c++
183+
184+
#!/usr/bin/env python3
185+
186+
# Copyright 2024 Universidad Politécnica de Madrid
187+
#
188+
# Redistribution and use in source and binary forms, with or without
189+
# modification, are permitted provided that the following conditions are met:
190+
#
191+
# * Redistributions of source code must retain the above copyright
192+
# notice, this list of conditions and the following disclaimer.
193+
#
194+
# * Redistributions in binary form must reproduce the above copyright
195+
# notice, this list of conditions and the following disclaimer in the
196+
# documentation and/or other materials provided with the distribution.
197+
#
198+
# * Neither the name of the Universidad Politécnica de Madrid nor the names of its
199+
# contributors may be used to endorse or promote products derived from
200+
# this software without specific prior written permission.
201+
#
202+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
203+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
204+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
205+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
206+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
207+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
208+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
209+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
210+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
211+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
212+
# POSSIBILITY OF SUCH DAMAGE.
213+
214+
After the License text, files should include a header like this:
215+
216+
.. code-block:: c++
217+
218+
"""Module docstring."""
219+
220+
__authors__ = 'Author'
221+
__copyright__ = 'Copyright (c) 2024 Universidad Politécnica de Madrid'
222+
__license__ = 'BSD-3-Clause'
223+
__version__ = '0.1.0'
224+
182225
.. _development_guide_new_pkg_test:
183226

184227
Test

0 commit comments

Comments
 (0)
Please sign in to comment.