Skip to content

Commit 635818c

Browse files
committed
Re-license everything under Apache-2.0
Much of the code and all of the intent comes from dalen-puppetdbquery and node-puppetdbquery by Erik Dalén and is designed for use with pypuppetdb (and possibly puppetboard) by the collective known as "Vox Pupuli" (formerly "Puppet Community"). The four forementioned projects are all licensed under the Apache 2.0 license, so it makes sense to make this match to make everyone's lives easier.
1 parent 9eec419 commit 635818c

File tree

10 files changed

+284
-765
lines changed

10 files changed

+284
-765
lines changed

LICENSE

+202-674
Large diffs are not rendered by default.

pypuppetdbquery/__init__.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
from .evaluator import Evaluator
2019
from .parser import Parser

pypuppetdbquery/ast.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918

2019
class Node(object):

pypuppetdbquery/evaluator.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
import dateutil.parser
2019
import re

pypuppetdbquery/lexer.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
import ply.lex as lex
2019

pypuppetdbquery/parser.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
import ply.yacc as yacc
2019

pypuppetdbquery/version.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
# This must be the only non-comment line in this file.
2019
__version__ = '0.1.0'

setup.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
from distutils.util import convert_path
2019
from setuptools import setup, find_packages
@@ -31,7 +30,7 @@
3130
description='A port of @dalen\'s PuppetDB Query language to Python',
3231
author='Chris Boot',
3332
author_email='[email protected]',
34-
license='GPL-3+',
33+
license='Apache-2.0',
3534
url='https://github.com/bootc/pypuppetdbquery/',
3635
packages=find_packages(),
3736
install_requires=[

tests/test_parser.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
from pypuppetdbquery.evaluator import Evaluator
2019
from pypuppetdbquery.parser import Parser

tests/util.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
# This file is part of pypuppetdbquery.
44
# Copyright © 2016 Chris Boot <[email protected]>
55
#
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.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
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.
10+
# http://www.apache.org/licenses/LICENSE-2.0
1511
#
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/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817

1918
import unittest
2019

0 commit comments

Comments
 (0)