Skip to content

Commit

Permalink
Remove repeated copyright assignments in files
Browse files Browse the repository at this point in the history
Everything is replaced by a more explicit message in the COPYRIGHT file.

Inspired by rust-lang/rust#43498 and rust-lang/rust#57108.
  • Loading branch information
liZe committed Jan 2, 2020
1 parent 647af0b commit b40ad46
Show file tree
Hide file tree
Showing 92 changed files with 13 additions and 279 deletions.
11 changes: 11 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
WeasyPrint is free software, released under BSD 3-clause license. See LICENSE
to get a full version of the license.

Copyrights are retained by their contributors, no copyright assignment is
required to contribute to WeasyPrint.

Unless explicitly stated otherwise, any contribution intentionally submitted
for inclusion is licensed under BSD, without any additional terms or
conditions.

For full authorship information, see AUTHORS and the version control history.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2011-2019, Simon Sapin and contributors (see AUTHORS).
Copyright (c) 2011-2020, Simon Sapin and contributors (see AUTHORS).
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# General information about the project.
project = 'WeasyPrint'
copyright = '2011-2019, Simon Sapin and contributors, see AUTHORS'
copyright = '2011-2020, Simon Sapin and contributors (see AUTHORS)'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
WeasyPrint converts web documents to PDF.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import sys
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
The public API is what is accessible from this "root" packages
without importing sub-modules.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import contextlib
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Command-line interface to WeasyPrint.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import argparse
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
:func:`get_all_computed_styles` function does everything, but it is itsef
based on other functions in this module.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from collections import namedtuple
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/computed_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
Convert *specified* property values (the result of the cascade and
inhertance) into *computed* values (that are inherited).
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from collections import OrderedDict
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
These are defined in CSS Counter Styles Level 3:
https://www.w3.org/TR/css-counter-styles-3/#counter-style-system
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from copy import deepcopy
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/media_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
https://www.w3.org/TR/mediaqueries-4/
:copyright: Copyright 2011-2018 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import tinycss2
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Various data about known properties.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import collections
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
counter_values and stuff needed to build pending targets later,
when the layout of all targetted anchors has been done.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import copy
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
Utils for CSS properties.
See http://www.w3.org/TR/CSS21/propidx.html and various CSS3 modules.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import functools
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/validation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Validate properties, expanders and descriptors.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""


Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/validation/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Validate descriptors used for some at-rules.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import tinycss2
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/validation/expanders.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Validate properties expanders.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import functools
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/css/validation/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
Validate properties.
See http://www.w3.org/TR/CSS21/propidx.html and various CSS3 modules.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from tinycss2.color3 import parse_color
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
weasyprint.document
-------------------
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import collections
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Take an "after layout" box tree and draw it onto a cairo context.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import contextlib
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Interface with external libraries managing fonts installed on the system.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import os
Expand Down
12 changes: 0 additions & 12 deletions weasyprint/formatting_structure/__init__.py

This file was deleted.

3 changes: 0 additions & 3 deletions weasyprint/formatting_structure/boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
See respective docstrings for details.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import itertools
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/formatting_structure/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
This includes creating anonymous boxes and processing whitespace
as necessary.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import copy
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
have intrinsic dimensions. But the only replaced elements currently
supported in WeasyPrint are images with intrinsic dimensions.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import logging
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Fetch and decode images in various formats.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import math
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
See http://www.w3.org/TR/CSS21/cascade.html#used-value
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from collections import defaultdict
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/absolute.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
weasyprint.absolute
-------------------
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from ..formatting_structure import boxes
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/backgrounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
weasyprint.backgrounds
----------------------
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from collections import namedtuple
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Page breaking and layout for block-level and block-container boxes.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from ..formatting_structure import boxes
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Layout for columns.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from math import floor
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Layout for flex containers and flex-items.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import sys
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/float.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Layout for floating boxes.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from ..formatting_structure import boxes
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/inlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Line breaking and layout for inline-level boxes.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import unicodedata
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/min_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
weasyprint.layout.min_max
-------------------------
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import functools
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Layout for pages and CSS3 margin boxes.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import copy
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/percentages.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Resolve percentages into fixed values.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from ..formatting_structure import boxes
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/preferred.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
Terms used (max-content width, min-content width) are defined in David
Baron's unofficial draft (http://dbaron.org/css/intrinsic/).
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

import sys
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/replaced.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
Layout for images and other replaced elements.
http://dev.w3.org/csswg/css-images-3/#sizing
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from .percentages import percentage
Expand Down
3 changes: 0 additions & 3 deletions weasyprint/layout/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Layout for tables and internal table boxes.
:copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

from ..formatting_structure import boxes
Expand Down
Loading

0 comments on commit b40ad46

Please sign in to comment.