From e7b0e7190e95c26e7a3096fb77d8c666875d9db9 Mon Sep 17 00:00:00 2001 From: mara004 Date: Thu, 16 Sep 2021 18:41:55 +0200 Subject: [PATCH 1/3] follow reuse/spdx standards + license docs under CC-By-4.0 --- .reuse/dep5 | 22 +++ LICENSES/CC-BY-4.0.txt | 156 ++++++++++++++++++ LICENSES/MIT.txt | 9 + NodeGraphQt/__init__.py | 7 +- NodeGraphQt/base/__init__.py | 33 +--- NodeGraphQt/base/commands.py | 5 +- NodeGraphQt/base/factory.py | 5 +- NodeGraphQt/base/graph.py | 6 +- NodeGraphQt/base/menu.py | 5 +- NodeGraphQt/base/model.py | 5 +- NodeGraphQt/base/node.py | 5 +- NodeGraphQt/base/port.py | 5 +- NodeGraphQt/base/utils.py | 5 +- NodeGraphQt/constants.py | 8 +- NodeGraphQt/errors.py | 5 +- NodeGraphQt/pkg_info.py | 6 +- NodeGraphQt/qgraphics/__init__.py | 2 + NodeGraphQt/qgraphics/node_abstract.py | 5 +- NodeGraphQt/qgraphics/node_backdrop.py | 5 +- NodeGraphQt/qgraphics/node_base.py | 5 +- .../qgraphics/node_overlay_disabled.py | 6 +- NodeGraphQt/qgraphics/node_text_item.py | 3 + NodeGraphQt/qgraphics/pipe.py | 5 +- NodeGraphQt/qgraphics/port.py | 5 +- NodeGraphQt/qgraphics/slicer.py | 5 +- NodeGraphQt/widgets/__init__.py | 33 +--- NodeGraphQt/widgets/actions.py | 5 +- NodeGraphQt/widgets/dialogs.py | 3 + NodeGraphQt/widgets/node_publish_widget.py | 5 +- NodeGraphQt/widgets/node_space_bar.py | 5 +- NodeGraphQt/widgets/node_widgets.py | 5 +- NodeGraphQt/widgets/nodes_palette.py | 8 +- NodeGraphQt/widgets/nodes_tree.py | 6 +- NodeGraphQt/widgets/properties.py | 5 +- NodeGraphQt/widgets/properties_bin.py | 5 +- NodeGraphQt/widgets/scene.py | 5 +- NodeGraphQt/widgets/stylesheet.py | 4 +- NodeGraphQt/widgets/tab_search.py | 5 +- NodeGraphQt/widgets/viewer.py | 6 +- README.md | 3 + docs/Makefile | 6 +- docs/constants.rst | 3 + docs/custom_widgets.rst | 5 +- docs/examples/ex_menu.rst | 5 +- docs/examples/ex_node.rst | 3 + docs/examples/ex_overview.rst | 5 +- docs/examples/ex_pipe.rst | 5 +- docs/examples/ex_port.rst | 3 + docs/graph.rst | 3 + docs/index.rst | 3 + docs/make.bat | 8 +- docs/menu.rst | 3 + docs/node_widgets.rst | 3 + docs/nodes.rst | 3 + docs/nodes/BackdropNode.rst | 3 + docs/nodes/BaseNode.rst | 3 + docs/nodes/NodeObject.rst | 3 + docs/nodes/Port.rst | 3 + example.py | 6 +- example_auto_nodes.py | 6 +- example_auto_nodes/__init__.py | 3 + example_auto_nodes/basic_nodes.py | 3 + example_auto_nodes/data_node.py | 6 +- example_auto_nodes/input_nodes.py | 3 + example_auto_nodes/logic_nodes.py | 3 + example_auto_nodes/module_nodes.py | 3 + example_auto_nodes/node_base/__init__.py | 3 + example_auto_nodes/node_base/auto_node.py | 3 + example_auto_nodes/node_base/module_node.py | 4 +- example_auto_nodes/node_base/subgraph_node.py | 5 +- example_auto_nodes/node_base/utils.py | 4 +- example_auto_nodes/subgraph_nodes.py | 3 + example_auto_nodes/viewer_nodes.py | 3 + example_auto_nodes/widget_nodes.py | 3 + example_auto_nodes/wrappers/__init__.py | 2 + example_auto_nodes/wrappers/dict.py | 3 + example_auto_nodes/wrappers/list.py | 3 + example_auto_nodes/wrappers/math.py | 3 + example_auto_nodes/wrappers/str.py | 3 + example_auto_nodes/wrappers/tuple.py | 3 + example_math_nodes.py | 6 +- example_nodes/__init__.py | 5 +- example_nodes/basic_nodes.py | 3 + example_nodes/input_nodes.py | 5 +- example_nodes/logic_nodes.py | 3 + example_nodes/math_node.py | 6 +- example_nodes/util_nodes.py | 8 +- example_nodes/viewer_nodes.py | 5 +- example_nodes/widget_nodes.py | 3 + example_nodes/wrappers/__init__.py | 2 + example_nodes/wrappers/math.py | 3 + requirements.txt | 3 + setup.py | 6 +- 93 files changed, 502 insertions(+), 135 deletions(-) create mode 100644 .reuse/dep5 create mode 100644 LICENSES/CC-BY-4.0.txt create mode 100644 LICENSES/MIT.txt diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 00000000..a9daf113 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,22 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: NodeGraphQt +Upstream-Contact: Johnny Chan +Source: https://github.com/jchanvfx/NodeGraphQt + +# Sample paragraph, commented out: +# +# Files: src/* +# Copyright: $YEAR $NAME <$CONTACT> +# License: ... + +Files: MANIFEST.in +Copyright: 2021 Johnny Chan +License: MIT + +Files: *.node *.nodes +Copyright: 2021 Johnny Chan +License: MIT + +Files: docs/_images/* +Copyright: 2021 Johnny Chan +License: CC-BY-4.0 diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt new file mode 100644 index 00000000..13ca539f --- /dev/null +++ b/LICENSES/CC-BY-4.0.txt @@ -0,0 +1,156 @@ +Creative Commons Attribution 4.0 International + + Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + +b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 – Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..3397ce33 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2021 Johnny Chan + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/NodeGraphQt/__init__.py b/NodeGraphQt/__init__.py index aa66c449..4438e8e8 100644 --- a/NodeGraphQt/__init__.py +++ b/NodeGraphQt/__init__.py @@ -1,7 +1,8 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT -# (c) 2017, Johnny Chan and some awesome contributors (^_^) +# (c) 2021, Johnny Chan and some awesome contributors (^_^) # https://github.com/jchanvfx/NodeGraphQt/graphs/contributors # Redistribution and use in source and binary forms, with or without diff --git a/NodeGraphQt/base/__init__.py b/NodeGraphQt/base/__init__.py index dbce5ad7..c1adfc08 100644 --- a/NodeGraphQt/base/__init__.py +++ b/NodeGraphQt/base/__init__.py @@ -1,30 +1,3 @@ -#!/usr/bin/python - -# (c) 2017, Johnny Chan -# https://github.com/jchanvfx/NodeGraphQt - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: - -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. - -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. - -# * Neither the name of the Johnny Chan nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, -# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT -# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/commands.py b/NodeGraphQt/base/commands.py index 1be44943..ab561326 100644 --- a/NodeGraphQt/base/commands.py +++ b/NodeGraphQt/base/commands.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtWidgets from .utils import minimize_node_ref_count diff --git a/NodeGraphQt/base/factory.py b/NodeGraphQt/base/factory.py index f9f75c9f..bbb134c0 100644 --- a/NodeGraphQt/base/factory.py +++ b/NodeGraphQt/base/factory.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from ..errors import NodeRegistrationError diff --git a/NodeGraphQt/base/graph.py b/NodeGraphQt/base/graph.py index 9d5c8346..8c5a02d4 100644 --- a/NodeGraphQt/base/graph.py +++ b/NodeGraphQt/base/graph.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import copy import gc import json diff --git a/NodeGraphQt/base/menu.py b/NodeGraphQt/base/menu.py index 44fdb562..8c1dc6b2 100644 --- a/NodeGraphQt/base/menu.py +++ b/NodeGraphQt/base/menu.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from distutils.version import LooseVersion from Qt import QtGui, QtCore diff --git a/NodeGraphQt/base/model.py b/NodeGraphQt/base/model.py index 497f6149..9ce73f21 100644 --- a/NodeGraphQt/base/model.py +++ b/NodeGraphQt/base/model.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import json from collections import defaultdict diff --git a/NodeGraphQt/base/node.py b/NodeGraphQt/base/node.py index 9f11f175..f17a1149 100644 --- a/NodeGraphQt/base/node.py +++ b/NodeGraphQt/base/node.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from collections import OrderedDict from .commands import PropertyChangedCmd diff --git a/NodeGraphQt/base/port.py b/NodeGraphQt/base/port.py index 47b9045a..5f9aa5ee 100644 --- a/NodeGraphQt/base/port.py +++ b/NodeGraphQt/base/port.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .commands import (PortConnectedCmd, PortDisconnectedCmd, PortLockedCmd, diff --git a/NodeGraphQt/base/utils.py b/NodeGraphQt/base/utils.py index 33d4413f..c727fe5e 100644 --- a/NodeGraphQt/base/utils.py +++ b/NodeGraphQt/base/utils.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from distutils.version import LooseVersion from Qt import QtGui, QtCore diff --git a/NodeGraphQt/constants.py b/NodeGraphQt/constants.py index 358159ff..11fa975e 100644 --- a/NodeGraphQt/constants.py +++ b/NodeGraphQt/constants.py @@ -1,9 +1,9 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -import os +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +import os from Qt import QtWidgets - from .pkg_info import __version__ __doc__ = """ diff --git a/NodeGraphQt/errors.py b/NodeGraphQt/errors.py index 9413a30b..29084a60 100644 --- a/NodeGraphQt/errors.py +++ b/NodeGraphQt/errors.py @@ -1,5 +1,6 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT class NodeMenuError(Exception): pass diff --git a/NodeGraphQt/pkg_info.py b/NodeGraphQt/pkg_info.py index 900f0c07..eb47d47a 100644 --- a/NodeGraphQt/pkg_info.py +++ b/NodeGraphQt/pkg_info.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + __version__ = '0.1.7' __status__ = 'Work in Progress' __license__ = 'MIT' diff --git a/NodeGraphQt/qgraphics/__init__.py b/NodeGraphQt/qgraphics/__init__.py index e69de29b..34135045 100644 --- a/NodeGraphQt/qgraphics/__init__.py +++ b/NodeGraphQt/qgraphics/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/node_abstract.py b/NodeGraphQt/qgraphics/node_abstract.py index d10b57b6..394eada9 100644 --- a/NodeGraphQt/qgraphics/node_abstract.py +++ b/NodeGraphQt/qgraphics/node_abstract.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtCore, QtWidgets from ..constants import (Z_VAL_NODE, NODE_WIDTH, NODE_HEIGHT, ITEM_CACHE_MODE) diff --git a/NodeGraphQt/qgraphics/node_backdrop.py b/NodeGraphQt/qgraphics/node_backdrop.py index b0f47a2d..a2ee9fe0 100644 --- a/NodeGraphQt/qgraphics/node_backdrop.py +++ b/NodeGraphQt/qgraphics/node_backdrop.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtGui, QtCore, QtWidgets from .node_abstract import AbstractNodeItem diff --git a/NodeGraphQt/qgraphics/node_base.py b/NodeGraphQt/qgraphics/node_base.py index 13838f02..e30eea79 100644 --- a/NodeGraphQt/qgraphics/node_base.py +++ b/NodeGraphQt/qgraphics/node_base.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from collections import OrderedDict from Qt import QtGui, QtCore, QtWidgets diff --git a/NodeGraphQt/qgraphics/node_overlay_disabled.py b/NodeGraphQt/qgraphics/node_overlay_disabled.py index 991e77ad..a711831e 100644 --- a/NodeGraphQt/qgraphics/node_overlay_disabled.py +++ b/NodeGraphQt/qgraphics/node_overlay_disabled.py @@ -1,6 +1,8 @@ -#!/usr/bin/python -from Qt import QtGui, QtCore, QtWidgets +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +from Qt import QtGui, QtCore, QtWidgets from ..constants import Z_VAL_NODE_WIDGET diff --git a/NodeGraphQt/qgraphics/node_text_item.py b/NodeGraphQt/qgraphics/node_text_item.py index d4fdf543..f363d3f7 100644 --- a/NodeGraphQt/qgraphics/node_text_item.py +++ b/NodeGraphQt/qgraphics/node_text_item.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtWidgets, QtCore, QtGui diff --git a/NodeGraphQt/qgraphics/pipe.py b/NodeGraphQt/qgraphics/pipe.py index 3ab9246a..7cf1276f 100644 --- a/NodeGraphQt/qgraphics/pipe.py +++ b/NodeGraphQt/qgraphics/pipe.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import math from Qt import QtCore, QtGui, QtWidgets diff --git a/NodeGraphQt/qgraphics/port.py b/NodeGraphQt/qgraphics/port.py index 6e78648e..d170d308 100644 --- a/NodeGraphQt/qgraphics/port.py +++ b/NodeGraphQt/qgraphics/port.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtGui, QtCore, QtWidgets from ..constants import ( diff --git a/NodeGraphQt/qgraphics/slicer.py b/NodeGraphQt/qgraphics/slicer.py index af7412b1..7bf670ad 100644 --- a/NodeGraphQt/qgraphics/slicer.py +++ b/NodeGraphQt/qgraphics/slicer.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import math from Qt import QtCore, QtGui, QtWidgets diff --git a/NodeGraphQt/widgets/__init__.py b/NodeGraphQt/widgets/__init__.py index dbce5ad7..c1adfc08 100644 --- a/NodeGraphQt/widgets/__init__.py +++ b/NodeGraphQt/widgets/__init__.py @@ -1,30 +1,3 @@ -#!/usr/bin/python - -# (c) 2017, Johnny Chan -# https://github.com/jchanvfx/NodeGraphQt - -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: - -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. - -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. - -# * Neither the name of the Johnny Chan nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, -# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT -# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/actions.py b/NodeGraphQt/widgets/actions.py index 0704bd67..d7c6ec1d 100644 --- a/NodeGraphQt/widgets/actions.py +++ b/NodeGraphQt/widgets/actions.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtCore, QtWidgets from .stylesheet import STYLE_QMENU diff --git a/NodeGraphQt/widgets/dialogs.py b/NodeGraphQt/widgets/dialogs.py index baff3fb8..b0943b84 100644 --- a/NodeGraphQt/widgets/dialogs.py +++ b/NodeGraphQt/widgets/dialogs.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import os from .stylesheet import STYLE_MESSAGEBOX diff --git a/NodeGraphQt/widgets/node_publish_widget.py b/NodeGraphQt/widgets/node_publish_widget.py index d3e0f8be..35d8b177 100644 --- a/NodeGraphQt/widgets/node_publish_widget.py +++ b/NodeGraphQt/widgets/node_publish_widget.py @@ -1,5 +1,8 @@ -import os +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +import os from .properties import PropFileSavePath from Qt import QtWidgets diff --git a/NodeGraphQt/widgets/node_space_bar.py b/NodeGraphQt/widgets/node_space_bar.py index a6ef7658..25f1f1a2 100644 --- a/NodeGraphQt/widgets/node_space_bar.py +++ b/NodeGraphQt/widgets/node_space_bar.py @@ -1,5 +1,8 @@ -from Qt import QtWidgets, QtCore +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +from Qt import QtWidgets, QtCore from .stylesheet import STYLE_SLASH_BUTTON, STYLE_NODE_BUTTON diff --git a/NodeGraphQt/widgets/node_widgets.py b/NodeGraphQt/widgets/node_widgets.py index dff38f09..0edeeec8 100644 --- a/NodeGraphQt/widgets/node_widgets.py +++ b/NodeGraphQt/widgets/node_widgets.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .dialogs import FileDialog from .properties import _ValueEdit from .stylesheet import * diff --git a/NodeGraphQt/widgets/nodes_palette.py b/NodeGraphQt/widgets/nodes_palette.py index 4f326abd..78dc9e25 100644 --- a/NodeGraphQt/widgets/nodes_palette.py +++ b/NodeGraphQt/widgets/nodes_palette.py @@ -1,9 +1,9 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -from collections import defaultdict +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +from collections import defaultdict from Qt import QtWidgets, QtCore, QtGui - from ..constants import URN_SCHEME diff --git a/NodeGraphQt/widgets/nodes_tree.py b/NodeGraphQt/widgets/nodes_tree.py index 147318f5..d09da61e 100644 --- a/NodeGraphQt/widgets/nodes_tree.py +++ b/NodeGraphQt/widgets/nodes_tree.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtWidgets, QtCore, QtGui from ..constants import URN_SCHEME diff --git a/NodeGraphQt/widgets/properties.py b/NodeGraphQt/widgets/properties.py index 4f4cfc72..95a13fd2 100644 --- a/NodeGraphQt/widgets/properties.py +++ b/NodeGraphQt/widgets/properties.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from collections import defaultdict from Qt import QtWidgets, QtCore, QtGui diff --git a/NodeGraphQt/widgets/properties_bin.py b/NodeGraphQt/widgets/properties_bin.py index 741b8fc7..908483d6 100644 --- a/NodeGraphQt/widgets/properties_bin.py +++ b/NodeGraphQt/widgets/properties_bin.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtWidgets, QtCore, QtGui, QtCompat from .properties import NodePropWidget diff --git a/NodeGraphQt/widgets/scene.py b/NodeGraphQt/widgets/scene.py index 77719160..6461f3de 100644 --- a/NodeGraphQt/widgets/scene.py +++ b/NodeGraphQt/widgets/scene.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtGui, QtCore, QtWidgets from ..constants import (VIEWER_BG_COLOR, diff --git a/NodeGraphQt/widgets/stylesheet.py b/NodeGraphQt/widgets/stylesheet.py index 57efc895..53750410 100644 --- a/NodeGraphQt/widgets/stylesheet.py +++ b/NodeGraphQt/widgets/stylesheet.py @@ -1,5 +1,7 @@ -import re +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +import re from ..constants import ICON_DOWN_ARROW # Reformat the icon path on Windows OS. diff --git a/NodeGraphQt/widgets/tab_search.py b/NodeGraphQt/widgets/tab_search.py index 1d1af036..7cc67916 100644 --- a/NodeGraphQt/widgets/tab_search.py +++ b/NodeGraphQt/widgets/tab_search.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import re from collections import OrderedDict diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index c6ba176d..4e2405bb 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import math import Qt diff --git a/README.md b/README.md index 72842c83..af60d187 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ + + + ## NodeGraphQt [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md) diff --git a/docs/Makefile b/docs/Makefile index 298ea9e2..8f9dd26d 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,5 +1,7 @@ +# SPDX-FileCopyrightText: 2021 The Sphinx Authors +# SPDX-License-Identifier: CC-BY-4.0 + # Minimal makefile for Sphinx documentation -# # You can set these variables from the command line. SPHINXOPTS = @@ -16,4 +18,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/constants.rst b/docs/constants.rst index 3c0b225d..7ac3e54d 100644 --- a/docs/constants.rst +++ b/docs/constants.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Constants ######### diff --git a/docs/custom_widgets.rst b/docs/custom_widgets.rst index 0e288efb..8a8a475e 100644 --- a/docs/custom_widgets.rst +++ b/docs/custom_widgets.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Custom Widgets ############## @@ -108,4 +111,4 @@ nodes to a serialized json formatted file. ---- .. autoclass:: NodeGraphQt.NodePublishWidget - :members: \ No newline at end of file + :members: diff --git a/docs/examples/ex_menu.rst b/docs/examples/ex_menu.rst index 717010e2..00030c70 100644 --- a/docs/examples/ex_menu.rst +++ b/docs/examples/ex_menu.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Menu Examples ############# @@ -97,4 +100,4 @@ Below is an example for overriding a context menu for the node type ``"com.chant bar_node = graph.create_node('com.chantasticvfx.BarNode', pos=[300, 100]) # show widget. - node_graph.widget.show() \ No newline at end of file + node_graph.widget.show() diff --git a/docs/examples/ex_node.rst b/docs/examples/ex_node.rst index 360714dc..c5b0117a 100644 --- a/docs/examples/ex_node.rst +++ b/docs/examples/ex_node.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Node Examples ############# diff --git a/docs/examples/ex_overview.rst b/docs/examples/ex_overview.rst index 26cc50f5..59cd41c5 100644 --- a/docs/examples/ex_overview.rst +++ b/docs/examples/ex_overview.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Basic Overview ############## @@ -115,4 +118,4 @@ Here's a basic example snippet for creating two nodes and connecting them togeth result: .. image:: ../_images/example_result.png - :width: 60% \ No newline at end of file + :width: 60% diff --git a/docs/examples/ex_pipe.rst b/docs/examples/ex_pipe.rst index 152bd477..44b31884 100644 --- a/docs/examples/ex_pipe.rst +++ b/docs/examples/ex_pipe.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Pipe Examples ############# @@ -32,4 +35,4 @@ Note: if you've set up your node graph with the ``NodeGraphQt.setup_context_menu is a convenience function then you'll already have the actions to set the pipe layout under "Edit>Pipe". -.. image:: ../_images/pipe_layout_menu.png \ No newline at end of file +.. image:: ../_images/pipe_layout_menu.png diff --git a/docs/examples/ex_port.rst b/docs/examples/ex_port.rst index 44636558..58713b72 100644 --- a/docs/examples/ex_port.rst +++ b/docs/examples/ex_port.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Port Examples ############# diff --git a/docs/graph.rst b/docs/graph.rst index f83e1b36..2c1f9153 100644 --- a/docs/graph.rst +++ b/docs/graph.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Graphs ###### diff --git a/docs/index.rst b/docs/index.rst index dc60213b..6eb58f22 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + NodeGraphQt |version_str| ######################### diff --git a/docs/make.bat b/docs/make.bat index 27f573b8..df3d92ca 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -1,9 +1,11 @@ -@ECHO OFF - -pushd %~dp0 +@echo off +REM SPDX-FileCopyrightText: 2021 The Sphinx Authors +REM SPDX-License-Identifier: CC-BY-4.0 REM Command file for Sphinx documentation +pushd %~dp0 + if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) diff --git a/docs/menu.rst b/docs/menu.rst index 115208d6..d887e1cd 100644 --- a/docs/menu.rst +++ b/docs/menu.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Menus ##### diff --git a/docs/node_widgets.rst b/docs/node_widgets.rst index 84de46ab..fdd14982 100644 --- a/docs/node_widgets.rst +++ b/docs/node_widgets.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Node Embedded Widgets ##################### diff --git a/docs/nodes.rst b/docs/nodes.rst index cc2d9d24..c18daca8 100644 --- a/docs/nodes.rst +++ b/docs/nodes.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Nodes ##### diff --git a/docs/nodes/BackdropNode.rst b/docs/nodes/BackdropNode.rst index 9d2d2ab0..609d4270 100644 --- a/docs/nodes/BackdropNode.rst +++ b/docs/nodes/BackdropNode.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + BackdropNode ############ diff --git a/docs/nodes/BaseNode.rst b/docs/nodes/BaseNode.rst index 7d23ea5e..97f2b863 100644 --- a/docs/nodes/BaseNode.rst +++ b/docs/nodes/BaseNode.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + BaseNode ######## diff --git a/docs/nodes/NodeObject.rst b/docs/nodes/NodeObject.rst index 61138a94..89ae98b1 100644 --- a/docs/nodes/NodeObject.rst +++ b/docs/nodes/NodeObject.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + NodeObject ########## diff --git a/docs/nodes/Port.rst b/docs/nodes/Port.rst index 67b6ec72..41579168 100644 --- a/docs/nodes/Port.rst +++ b/docs/nodes/Port.rst @@ -1,3 +1,6 @@ +.. SPDX-FileCopyrightText: 2021 Johnny Chan +.. SPDX-License-Identifier: CC-BY-4.0 + Port #### diff --git a/example.py b/example.py index c6ef5f86..4b73c1c3 100644 --- a/example.py +++ b/example.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import os from Qt import QtCore, QtGui, QtWidgets diff --git a/example_auto_nodes.py b/example_auto_nodes.py index 103abd6e..aeaafe6e 100644 --- a/example_auto_nodes.py +++ b/example_auto_nodes.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from NodeGraphQt import NodeGraph, setup_context_menu, \ QtWidgets, QtCore, PropertiesBinWidget, BackdropNode from example_auto_nodes import Publish, RootNode, update_nodes, setup_node_menu diff --git a/example_auto_nodes/__init__.py b/example_auto_nodes/__init__.py index ef4f5cbc..c28bb26c 100644 --- a/example_auto_nodes/__init__.py +++ b/example_auto_nodes/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import AutoNode, ModuleNode, SubGraphNode, RootNode from .subgraph_nodes import Publish from .node_base.utils import update_node_down_stream, update_nodes, setup_node_menu diff --git a/example_auto_nodes/basic_nodes.py b/example_auto_nodes/basic_nodes.py index 2e5e1432..69cf26e1 100644 --- a/example_auto_nodes/basic_nodes.py +++ b/example_auto_nodes/basic_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import AutoNode diff --git a/example_auto_nodes/data_node.py b/example_auto_nodes/data_node.py index 3c56d158..9fb6ab04 100644 --- a/example_auto_nodes/data_node.py +++ b/example_auto_nodes/data_node.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import AutoNode diff --git a/example_auto_nodes/input_nodes.py b/example_auto_nodes/input_nodes.py index fb158574..ca44bb90 100644 --- a/example_auto_nodes/input_nodes.py +++ b/example_auto_nodes/input_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from NodeGraphQt import QtCore from NodeGraphQt.constants import (NODE_PROP_VECTOR2, NODE_PROP_VECTOR3, diff --git a/example_auto_nodes/logic_nodes.py b/example_auto_nodes/logic_nodes.py index 2701b594..a3731f01 100644 --- a/example_auto_nodes/logic_nodes.py +++ b/example_auto_nodes/logic_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import AutoNode diff --git a/example_auto_nodes/module_nodes.py b/example_auto_nodes/module_nodes.py index b0c79298..069ff695 100644 --- a/example_auto_nodes/module_nodes.py +++ b/example_auto_nodes/module_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import (ModuleNode, get_functions_from_module, get_functions_from_type) diff --git a/example_auto_nodes/node_base/__init__.py b/example_auto_nodes/node_base/__init__.py index d67fb1a6..751c7ab6 100644 --- a/example_auto_nodes/node_base/__init__.py +++ b/example_auto_nodes/node_base/__init__.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .auto_node import AutoNode from .module_node import ModuleNode, get_functions_from_module, get_functions_from_type from .subgraph_node import SubGraphNode, SubGraphInputNode, SubGraphOutputNode, RootNode diff --git a/example_auto_nodes/node_base/auto_node.py b/example_auto_nodes/node_base/auto_node.py index 028603b9..f8faddd7 100644 --- a/example_auto_nodes/node_base/auto_node.py +++ b/example_auto_nodes/node_base/auto_node.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import copy import time import traceback diff --git a/example_auto_nodes/node_base/module_node.py b/example_auto_nodes/node_base/module_node.py index 36f0c6e8..055d1f28 100644 --- a/example_auto_nodes/node_base/module_node.py +++ b/example_auto_nodes/node_base/module_node.py @@ -1,5 +1,7 @@ -import inspect +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +import inspect from .auto_node import AutoNode diff --git a/example_auto_nodes/node_base/subgraph_node.py b/example_auto_nodes/node_base/subgraph_node.py index 87c35bbf..f0568c11 100644 --- a/example_auto_nodes/node_base/subgraph_node.py +++ b/example_auto_nodes/node_base/subgraph_node.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import json from NodeGraphQt import SubGraph @@ -458,4 +461,4 @@ def run(self): @property def has_error(self): - return False \ No newline at end of file + return False diff --git a/example_auto_nodes/node_base/utils.py b/example_auto_nodes/node_base/utils.py index 0ea23b8e..4bfc1ba3 100644 --- a/example_auto_nodes/node_base/utils.py +++ b/example_auto_nodes/node_base/utils.py @@ -1,5 +1,7 @@ -import hashlib +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT +import hashlib from NodeGraphQt import topological_sort_by_down, NodePublishWidget diff --git a/example_auto_nodes/subgraph_nodes.py b/example_auto_nodes/subgraph_nodes.py index 56763c60..1113ac3f 100644 --- a/example_auto_nodes/subgraph_nodes.py +++ b/example_auto_nodes/subgraph_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import SubGraphNode, SubGraphInputNode, SubGraphOutputNode import json import os diff --git a/example_auto_nodes/viewer_nodes.py b/example_auto_nodes/viewer_nodes.py index 5ce3d26f..ac6b30d0 100644 --- a/example_auto_nodes/viewer_nodes.py +++ b/example_auto_nodes/viewer_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import AutoNode diff --git a/example_auto_nodes/widget_nodes.py b/example_auto_nodes/widget_nodes.py index 17beab6a..68bc56bb 100644 --- a/example_auto_nodes/widget_nodes.py +++ b/example_auto_nodes/widget_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from .node_base import AutoNode diff --git a/example_auto_nodes/wrappers/__init__.py b/example_auto_nodes/wrappers/__init__.py index e69de29b..34135045 100644 --- a/example_auto_nodes/wrappers/__init__.py +++ b/example_auto_nodes/wrappers/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT diff --git a/example_auto_nodes/wrappers/dict.py b/example_auto_nodes/wrappers/dict.py index 5775e3fa..e61d6b10 100644 --- a/example_auto_nodes/wrappers/dict.py +++ b/example_auto_nodes/wrappers/dict.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + def clear(self): self.clear() return self diff --git a/example_auto_nodes/wrappers/list.py b/example_auto_nodes/wrappers/list.py index 50a8daae..9eb60137 100644 --- a/example_auto_nodes/wrappers/list.py +++ b/example_auto_nodes/wrappers/list.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + def append(self, object): self.append(object) return self diff --git a/example_auto_nodes/wrappers/math.py b/example_auto_nodes/wrappers/math.py index c0e4cc66..4f5e30aa 100644 --- a/example_auto_nodes/wrappers/math.py +++ b/example_auto_nodes/wrappers/math.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from math import * _pi = pi diff --git a/example_auto_nodes/wrappers/str.py b/example_auto_nodes/wrappers/str.py index 8c23726d..91dec869 100644 --- a/example_auto_nodes/wrappers/str.py +++ b/example_auto_nodes/wrappers/str.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + def capitalize(self): return self.capitalize() diff --git a/example_auto_nodes/wrappers/tuple.py b/example_auto_nodes/wrappers/tuple.py index 1a8af60c..78ff99d2 100644 --- a/example_auto_nodes/wrappers/tuple.py +++ b/example_auto_nodes/wrappers/tuple.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + def count(self, value): return self.count(value) diff --git a/example_math_nodes.py b/example_math_nodes.py index c25b09fd..d6366e56 100644 --- a/example_math_nodes.py +++ b/example_math_nodes.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from Qt import QtWidgets, QtCore from NodeGraphQt import (NodeGraph, diff --git a/example_nodes/__init__.py b/example_nodes/__init__.py index f3eb74a4..b3de0697 100644 --- a/example_nodes/__init__.py +++ b/example_nodes/__init__.py @@ -1,4 +1,7 @@ -#!/usr/bin/python +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import os import sys import ast diff --git a/example_nodes/basic_nodes.py b/example_nodes/basic_nodes.py index a923b107..c3f4c204 100644 --- a/example_nodes/basic_nodes.py +++ b/example_nodes/basic_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from NodeGraphQt import BaseNode diff --git a/example_nodes/input_nodes.py b/example_nodes/input_nodes.py index 207103a6..faea68cd 100644 --- a/example_nodes/input_nodes.py +++ b/example_nodes/input_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import os from NodeGraphQt import BaseNode, QtCore @@ -85,4 +88,4 @@ def __init__(self): self.view.widgets['combo'].value_changed.connect(self.update_stream) def run(self): - self.set_property('out', eval(self.get_property('combo'))) \ No newline at end of file + self.set_property('out', eval(self.get_property('combo'))) diff --git a/example_nodes/logic_nodes.py b/example_nodes/logic_nodes.py index 22d4996d..5a58fcb1 100644 --- a/example_nodes/logic_nodes.py +++ b/example_nodes/logic_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from NodeGraphQt import BaseNode, QtCore diff --git a/example_nodes/math_node.py b/example_nodes/math_node.py index 132959f8..bd6fe98a 100644 --- a/example_nodes/math_node.py +++ b/example_nodes/math_node.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import example_nodes.wrappers.math as math import inspect from functools import partial diff --git a/example_nodes/util_nodes.py b/example_nodes/util_nodes.py index 1318e376..451bbb21 100644 --- a/example_nodes/util_nodes.py +++ b/example_nodes/util_nodes.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import inspect from NodeGraphQt import BaseNode @@ -153,4 +155,4 @@ def __init__(self): self.create_property('self', None) def run(self): - self.set_property('self', self) \ No newline at end of file + self.set_property('self', self) diff --git a/example_nodes/viewer_nodes.py b/example_nodes/viewer_nodes.py index 7f03a660..eefc28bd 100644 --- a/example_nodes/viewer_nodes.py +++ b/example_nodes/viewer_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from NodeGraphQt import BaseNode @@ -30,4 +33,4 @@ def on_input_connected(self, to_port, from_port): def on_input_disconnected(self, to_port, from_port): """Override node callback method""" - self.set_property('data', None) \ No newline at end of file + self.set_property('data', None) diff --git a/example_nodes/widget_nodes.py b/example_nodes/widget_nodes.py index 6dcc2968..442d20ea 100644 --- a/example_nodes/widget_nodes.py +++ b/example_nodes/widget_nodes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from NodeGraphQt import BaseNode diff --git a/example_nodes/wrappers/__init__.py b/example_nodes/wrappers/__init__.py index e69de29b..34135045 100644 --- a/example_nodes/wrappers/__init__.py +++ b/example_nodes/wrappers/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT diff --git a/example_nodes/wrappers/math.py b/example_nodes/wrappers/math.py index b0a357fe..f4da3272 100644 --- a/example_nodes/wrappers/math.py +++ b/example_nodes/wrappers/math.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + from math import * _pi = pi diff --git a/requirements.txt b/requirements.txt index fb053ab0..7989e2c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + Qt.py>=1.2.0 diff --git a/setup.py b/setup.py index 915e4f89..28cea2de 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,7 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- +#! /usr/bin/python3 +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + import os import sys From 8b73216741354335480e5db9a6bbb80ee970f759 Mon Sep 17 00:00:00 2001 From: mara004 Date: Thu, 16 Sep 2021 19:07:18 +0200 Subject: [PATCH 2/3] add spdx information to .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 5fa9c8dc..ac893ee3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Johnny Chan +# SPDX-License-Identifier: MIT + # virtual enviroment env/* venv/* From 8378636339b0a1a3879c6cb3081186b2966d3edc Mon Sep 17 00:00:00 2001 From: mara004 Date: Sat, 18 Sep 2021 13:11:35 +0200 Subject: [PATCH 3/3] improve shebang --- NodeGraphQt/__init__.py | 2 +- NodeGraphQt/base/__init__.py | 2 +- NodeGraphQt/base/commands.py | 2 +- NodeGraphQt/base/factory.py | 2 +- NodeGraphQt/base/graph.py | 2 +- NodeGraphQt/base/menu.py | 2 +- NodeGraphQt/base/model.py | 2 +- NodeGraphQt/base/node.py | 2 +- NodeGraphQt/base/port.py | 2 +- NodeGraphQt/base/utils.py | 2 +- NodeGraphQt/constants.py | 2 +- NodeGraphQt/errors.py | 2 +- NodeGraphQt/pkg_info.py | 2 +- NodeGraphQt/qgraphics/node_abstract.py | 2 +- NodeGraphQt/qgraphics/node_backdrop.py | 2 +- NodeGraphQt/qgraphics/node_base.py | 2 +- NodeGraphQt/qgraphics/node_overlay_disabled.py | 2 +- NodeGraphQt/qgraphics/pipe.py | 2 +- NodeGraphQt/qgraphics/port.py | 2 +- NodeGraphQt/qgraphics/slicer.py | 2 +- NodeGraphQt/widgets/__init__.py | 2 +- NodeGraphQt/widgets/actions.py | 2 +- NodeGraphQt/widgets/node_publish_widget.py | 2 +- NodeGraphQt/widgets/node_space_bar.py | 2 +- NodeGraphQt/widgets/node_widgets.py | 2 +- NodeGraphQt/widgets/nodes_palette.py | 2 +- NodeGraphQt/widgets/nodes_tree.py | 2 +- NodeGraphQt/widgets/properties.py | 2 +- NodeGraphQt/widgets/properties_bin.py | 2 +- NodeGraphQt/widgets/scene.py | 2 +- NodeGraphQt/widgets/tab_search.py | 2 +- NodeGraphQt/widgets/viewer.py | 2 +- example.py | 2 +- example_auto_nodes.py | 2 +- example_auto_nodes/data_node.py | 2 +- example_math_nodes.py | 2 +- example_nodes/__init__.py | 2 +- example_nodes/math_node.py | 2 +- example_nodes/util_nodes.py | 2 +- setup.py | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/NodeGraphQt/__init__.py b/NodeGraphQt/__init__.py index 4438e8e8..8650bd39 100644 --- a/NodeGraphQt/__init__.py +++ b/NodeGraphQt/__init__.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/__init__.py b/NodeGraphQt/base/__init__.py index c1adfc08..d30b8090 100644 --- a/NodeGraphQt/base/__init__.py +++ b/NodeGraphQt/base/__init__.py @@ -1,3 +1,3 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/commands.py b/NodeGraphQt/base/commands.py index ab561326..73239c3a 100644 --- a/NodeGraphQt/base/commands.py +++ b/NodeGraphQt/base/commands.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/factory.py b/NodeGraphQt/base/factory.py index bbb134c0..316409d1 100644 --- a/NodeGraphQt/base/factory.py +++ b/NodeGraphQt/base/factory.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/graph.py b/NodeGraphQt/base/graph.py index 8c5a02d4..15fb689a 100644 --- a/NodeGraphQt/base/graph.py +++ b/NodeGraphQt/base/graph.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/menu.py b/NodeGraphQt/base/menu.py index 8c1dc6b2..aaebcd18 100644 --- a/NodeGraphQt/base/menu.py +++ b/NodeGraphQt/base/menu.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/model.py b/NodeGraphQt/base/model.py index 9ce73f21..2b937a48 100644 --- a/NodeGraphQt/base/model.py +++ b/NodeGraphQt/base/model.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/node.py b/NodeGraphQt/base/node.py index f17a1149..ad86680f 100644 --- a/NodeGraphQt/base/node.py +++ b/NodeGraphQt/base/node.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/port.py b/NodeGraphQt/base/port.py index 5f9aa5ee..dc9a474f 100644 --- a/NodeGraphQt/base/port.py +++ b/NodeGraphQt/base/port.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/base/utils.py b/NodeGraphQt/base/utils.py index c727fe5e..712d47aa 100644 --- a/NodeGraphQt/base/utils.py +++ b/NodeGraphQt/base/utils.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/constants.py b/NodeGraphQt/constants.py index 11fa975e..3a2bc9aa 100644 --- a/NodeGraphQt/constants.py +++ b/NodeGraphQt/constants.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/errors.py b/NodeGraphQt/errors.py index 29084a60..7f666b10 100644 --- a/NodeGraphQt/errors.py +++ b/NodeGraphQt/errors.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/pkg_info.py b/NodeGraphQt/pkg_info.py index eb47d47a..c33112e8 100644 --- a/NodeGraphQt/pkg_info.py +++ b/NodeGraphQt/pkg_info.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/node_abstract.py b/NodeGraphQt/qgraphics/node_abstract.py index 394eada9..d1575e1d 100644 --- a/NodeGraphQt/qgraphics/node_abstract.py +++ b/NodeGraphQt/qgraphics/node_abstract.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/node_backdrop.py b/NodeGraphQt/qgraphics/node_backdrop.py index a2ee9fe0..59647351 100644 --- a/NodeGraphQt/qgraphics/node_backdrop.py +++ b/NodeGraphQt/qgraphics/node_backdrop.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/node_base.py b/NodeGraphQt/qgraphics/node_base.py index e30eea79..844dd65c 100644 --- a/NodeGraphQt/qgraphics/node_base.py +++ b/NodeGraphQt/qgraphics/node_base.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/node_overlay_disabled.py b/NodeGraphQt/qgraphics/node_overlay_disabled.py index a711831e..c16882e7 100644 --- a/NodeGraphQt/qgraphics/node_overlay_disabled.py +++ b/NodeGraphQt/qgraphics/node_overlay_disabled.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/pipe.py b/NodeGraphQt/qgraphics/pipe.py index 7cf1276f..c7dbb9d6 100644 --- a/NodeGraphQt/qgraphics/pipe.py +++ b/NodeGraphQt/qgraphics/pipe.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/port.py b/NodeGraphQt/qgraphics/port.py index d170d308..fce69445 100644 --- a/NodeGraphQt/qgraphics/port.py +++ b/NodeGraphQt/qgraphics/port.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/qgraphics/slicer.py b/NodeGraphQt/qgraphics/slicer.py index 7bf670ad..84054d0c 100644 --- a/NodeGraphQt/qgraphics/slicer.py +++ b/NodeGraphQt/qgraphics/slicer.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/__init__.py b/NodeGraphQt/widgets/__init__.py index c1adfc08..d30b8090 100644 --- a/NodeGraphQt/widgets/__init__.py +++ b/NodeGraphQt/widgets/__init__.py @@ -1,3 +1,3 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/actions.py b/NodeGraphQt/widgets/actions.py index d7c6ec1d..ee52cd9d 100644 --- a/NodeGraphQt/widgets/actions.py +++ b/NodeGraphQt/widgets/actions.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/node_publish_widget.py b/NodeGraphQt/widgets/node_publish_widget.py index 35d8b177..e57334e0 100644 --- a/NodeGraphQt/widgets/node_publish_widget.py +++ b/NodeGraphQt/widgets/node_publish_widget.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/node_space_bar.py b/NodeGraphQt/widgets/node_space_bar.py index 25f1f1a2..adb84c02 100644 --- a/NodeGraphQt/widgets/node_space_bar.py +++ b/NodeGraphQt/widgets/node_space_bar.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/node_widgets.py b/NodeGraphQt/widgets/node_widgets.py index 0edeeec8..e849c7a4 100644 --- a/NodeGraphQt/widgets/node_widgets.py +++ b/NodeGraphQt/widgets/node_widgets.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/nodes_palette.py b/NodeGraphQt/widgets/nodes_palette.py index 78dc9e25..89eaea20 100644 --- a/NodeGraphQt/widgets/nodes_palette.py +++ b/NodeGraphQt/widgets/nodes_palette.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/nodes_tree.py b/NodeGraphQt/widgets/nodes_tree.py index d09da61e..11385d85 100644 --- a/NodeGraphQt/widgets/nodes_tree.py +++ b/NodeGraphQt/widgets/nodes_tree.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/properties.py b/NodeGraphQt/widgets/properties.py index 95a13fd2..690d4c25 100644 --- a/NodeGraphQt/widgets/properties.py +++ b/NodeGraphQt/widgets/properties.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/properties_bin.py b/NodeGraphQt/widgets/properties_bin.py index 908483d6..a7edf7db 100644 --- a/NodeGraphQt/widgets/properties_bin.py +++ b/NodeGraphQt/widgets/properties_bin.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/scene.py b/NodeGraphQt/widgets/scene.py index 6461f3de..7249f588 100644 --- a/NodeGraphQt/widgets/scene.py +++ b/NodeGraphQt/widgets/scene.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/tab_search.py b/NodeGraphQt/widgets/tab_search.py index 7cc67916..143817db 100644 --- a/NodeGraphQt/widgets/tab_search.py +++ b/NodeGraphQt/widgets/tab_search.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index 4e2405bb..a64ae3d6 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example.py b/example.py index 4b73c1c3..7e9d2e76 100644 --- a/example.py +++ b/example.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example_auto_nodes.py b/example_auto_nodes.py index aeaafe6e..96f75e9d 100644 --- a/example_auto_nodes.py +++ b/example_auto_nodes.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example_auto_nodes/data_node.py b/example_auto_nodes/data_node.py index 9fb6ab04..7934e6c2 100644 --- a/example_auto_nodes/data_node.py +++ b/example_auto_nodes/data_node.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example_math_nodes.py b/example_math_nodes.py index d6366e56..8b886775 100644 --- a/example_math_nodes.py +++ b/example_math_nodes.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example_nodes/__init__.py b/example_nodes/__init__.py index b3de0697..d995d2d7 100644 --- a/example_nodes/__init__.py +++ b/example_nodes/__init__.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example_nodes/math_node.py b/example_nodes/math_node.py index bd6fe98a..af02572f 100644 --- a/example_nodes/math_node.py +++ b/example_nodes/math_node.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/example_nodes/util_nodes.py b/example_nodes/util_nodes.py index 451bbb21..55aed5bd 100644 --- a/example_nodes/util_nodes.py +++ b/example_nodes/util_nodes.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT diff --git a/setup.py b/setup.py index 28cea2de..f7567947 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Johnny Chan # SPDX-License-Identifier: MIT