File tree Expand file tree Collapse file tree 8 files changed +220
-778
lines changed Expand file tree Collapse file tree 8 files changed +220
-778
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -12,3 +12,20 @@ scales.
1212
1313Originally created by Hrobjartur Thorsteinsson
1414November 2013, from Norrkoping, Sweden
15+
16+ License
17+ =======
18+
19+ Copyright 2011 Pydecorate developers
20+
21+ Licensed under the Apache License, Version 2.0 (the "License");
22+ you may not use these files except in compliance with the License.
23+ You may obtain a copy of the License at
24+
25+ http://www.apache.org/licenses/LICENSE-2.0
26+
27+ Unless required by applicable law or agreed to in writing, software
28+ distributed under the License is distributed on an "AS IS" BASIS,
29+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30+ See the License for the specific language governing permissions and
31+ limitations under the License.
Original file line number Diff line number Diff line change 1- #!/usr/bin/python
2- # -*- coding: utf-8 -*-
3- #
4- # Copyright (C) 2011 Hrobjartur Thorsteinsson
5- #
6- # This program is free software: you can redistribute it and/or modify
7- # it under the terms of the GNU General Public License as published by
8- # the Free Software Foundation, either version 3 of the License, or
9- # (at your option) any later version.
10- #
11- # This program is distributed in the hope that it will be useful,
12- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14- # GNU General Public License for more details.
15- #
16- # You should have received a copy of the GNU General Public License
17- # along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
191try :
202 from .version import version as __version__ # noqa
213except ImportError :
Original file line number Diff line number Diff line change 1- #!/usr/bin/python
2- # -*- coding: utf-8 -*-
3- #
4- # Copyright (C) 2011 Hrobjartur Thorsteinsson
5- #
6- # This program is free software: you can redistribute it and/or modify
7- # it under the terms of the GNU General Public License as published by
8- # the Free Software Foundation, either version 3 of the License, or
9- # (at your option) any later version.
10- #
11- # This program is distributed in the hope that it will be useful,
12- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14- # GNU General Public License for more details.
15- #
16- # You should have received a copy of the GNU General Public License
17- # along with this program. If not, see <http://www.gnu.org/licenses/>.
181"""PIL-based image decoration class."""
192
203from PIL import ImageDraw , ImageFont
Original file line number Diff line number Diff line change 1- #!/usr/bin/python
2- # -*- coding: utf-8 -*-
3- #
4- # Copyright (C) 2011 Hrobjartur Thorsteinsson
5- #
6- # This program is free software: you can redistribute it and/or modify
7- # it under the terms of the GNU General Public License as published by
8- # the Free Software Foundation, either version 3 of the License, or
9- # (at your option) any later version.
10- #
11- # This program is distributed in the hope that it will be useful,
12- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14- # GNU General Public License for more details.
15- #
16- # You should have received a copy of the GNU General Public License
17- # along with this program. If not, see <http://www.gnu.org/licenses/>.
181"""Aggdraw-based image decoration class."""
192
203from pathlib import Path
Original file line number Diff line number Diff line change 1- #!/usr/bin/python
2- # -*- coding: utf-8 -*-
3- #
4- # Copyright (C) 2011 Hrobjartur Thorsteinsson
5- #
6- # This program is free software: you can redistribute it and/or modify
7- # it under the terms of the GNU General Public License as published by
8- # the Free Software Foundation, either version 3 of the License, or
9- # (at your option) any later version.
10- #
11- # This program is distributed in the hope that it will be useful,
12- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14- # GNU General Public License for more details.
15- #
16- # You should have received a copy of the GNU General Public License
17- # along with this program. If not, see <http://www.gnu.org/licenses/>.
181"""Base class and utilities for decorating images."""
192
203import copy
Original file line number Diff line number Diff line change 1- #!/usr/bin/python
2- # -*- coding: utf-8 -*-
3- #
4- # Copyright (C) 2022 Pydecorate developers
5- #
6- # This program is free software: you can redistribute it and/or modify
7- # it under the terms of the GNU General Public License as published by
8- # the Free Software Foundation, either version 3 of the License, or
9- # (at your option) any later version.
10- #
11- # This program is distributed in the hope that it will be useful,
12- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14- # GNU General Public License for more details.
15- #
16- # You should have received a copy of the GNU General Public License
17- # along with this program. If not, see <http://www.gnu.org/licenses/>.
181"""Tests for the aggdraw-based decorator."""
192
203from pathlib import Path
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
2- # -*- coding: utf-8 -*-
3- #
4- # Copyright (c) 2013 Pydecorate developers
5- #
6- # This program is free software: you can redistribute it and/or modify
7- # it under the terms of the GNU General Public License as published by
8- # the Free Software Foundation, either version 3 of the License, or
9- # (at your option) any later version.
10- #
11- # This program is distributed in the hope that it will be useful,
12- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14- # GNU General Public License for more details.
15- #
16- # You should have received a copy of the GNU General Public License
17- # along with this program. If not, see <http://www.gnu.org/licenses/>.
181"""Package building definition and script."""
192
203import sys
5336 "Topic :: Scientific/Engineering" ,
5437 ],
5538 url = "https://github.com/pytroll/pydecorate" ,
56- license = "GPLv3+" ,
39+ license = "Apache-2.0" ,
40+ license_files = ["LICENSE.txt" ],
5741 packages = ["pydecorate" ],
5842 include_package_data = True ,
5943 package_data = {"pydecorate" : ["fonts/*.ttf" ]},
You can’t perform that action at this time.
0 commit comments