From dbfd31c3f3dedfd331b9685d263ae3e91b51ea63 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Tue, 26 May 2026 16:27:31 +0200 Subject: [PATCH 1/3] Large changes including complete refactoring of tests. Also removed gridToVTK and included rectilinearToVTK and structuredToVTK instead. Fixed some minor errors. Updated version to 2.0.0 since it is not compatible with previous versions. --- LICENSE.txt | 45 +++++++++++++++++++++----------------------- pyevtk/__init__.py | 41 ++++++++++++++++++++++------------------ pyevtk/evtk.py | 47 +++++++++++++++++++++++----------------------- pyevtk/hl.py | 47 +++++++++++++++++++++++----------------------- pyevtk/vtk.py | 47 +++++++++++++++++++++++----------------------- pyevtk/xml.py | 47 +++++++++++++++++++++++----------------------- 6 files changed, 136 insertions(+), 138 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index df99fbc..a85a58b 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,24 +1,21 @@ -*********************************************************************************** -* Copyright 2010 - 2016 Paulo A. Herrera. All rights reserved. * -* * -* Redistribution and use in source and binary forms, with or without * -* modification, are permitted provided that the following conditions are met: * -* * -* 1. Redistributions of source code must retain the above copyright notice, * -* this list of conditions and the following disclaimer. * -* * -* 2. 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. * -* * -* THIS SOFTWARE IS PROVIDED BY PAULO A. HERRERA ``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 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * -* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * -* BUT NOT LIMITED TO, PROCUREMEN 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. * -*********************************************************************************** +MIT License + +Copyright (c) 2021 Paulo A. Herrera + +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. \ No newline at end of file diff --git a/pyevtk/__init__.py b/pyevtk/__init__.py index 527b33f..03dea95 100644 --- a/pyevtk/__init__.py +++ b/pyevtk/__init__.py @@ -1,21 +1,26 @@ -# ************************************************************************* -# * Copyright 2010 - 2016 Paulo Herrera * -# * * -# * This file is part of EVTK. * -# * * -# * EVTK is free software: you can redistribute it and/or modify * -# * it under the terms of the GNU General Public License as published by * -# * the Free Software Foundation, either version 3 of the License, or * -# * (at your option) any later version. * -# * * -# * EVTK is distributed in the hope that it will be useful, * -# * but WITHOUT ANY WARRANTY; without even the implied warranty of * -# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -# * GNU General Public License for more details. * -# * * -# * You should have received a copy of the GNU General Public License * -# * along with EVTK. If not, see . * -# ************************************************************************* +###################################################################################### +# MIT License +# +# Copyright (c) 2010-2021 Paulo A. Herrera +# +# 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. +###################################################################################### from . import evtk from . import hl diff --git a/pyevtk/evtk.py b/pyevtk/evtk.py index 41feffa..e070367 100644 --- a/pyevtk/evtk.py +++ b/pyevtk/evtk.py @@ -1,27 +1,26 @@ -# *********************************************************************************** -# * Copyright 2010 - 2016 Paulo A. Herrera. All rights reserved. * -# * * -# * Redistribution and use in source and binary forms, with or without * -# * modification, are permitted provided that the following conditions are met: * -# * * -# * 1. Redistributions of source code must retain the above copyright notice, * -# * this list of conditions and the following disclaimer. * -# * * -# * 2. 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. * -# * * -# * THIS SOFTWARE IS PROVIDED BY PAULO A. HERRERA ``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 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * -# * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * -# * BUT NOT LIMITED TO, PROCUREMEN 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. * -# *********************************************************************************** +###################################################################################### +# MIT License +# +# Copyright (c) 2010-2021 Paulo A. Herrera +# +# 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. +###################################################################################### """Export routines.""" import sys diff --git a/pyevtk/hl.py b/pyevtk/hl.py index df2e96a..fcbe18e 100644 --- a/pyevtk/hl.py +++ b/pyevtk/hl.py @@ -1,27 +1,26 @@ -# *********************************************************************************** -# * Copyright 2010 - 2016 Paulo A. Herrera. All rights reserved. * -# * * -# * Redistribution and use in source and binary forms, with or without * -# * modification, are permitted provided that the following conditions are met: * -# * * -# * 1. Redistributions of source code must retain the above copyright notice, * -# * this list of conditions and the following disclaimer. * -# * * -# * 2. 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. * -# * * -# * THIS SOFTWARE IS PROVIDED BY PAULO A. HERRERA ``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 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * -# * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * -# * BUT NOT LIMITED TO, PROCUREMEN 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. * -# *********************************************************************************** +###################################################################################### +# MIT License +# +# Copyright (c) 2010-2021 Paulo A. Herrera +# +# 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. +###################################################################################### """High level Python library to export data to binary VTK file.""" import numpy as np diff --git a/pyevtk/vtk.py b/pyevtk/vtk.py index 6da4949..77fdf1f 100644 --- a/pyevtk/vtk.py +++ b/pyevtk/vtk.py @@ -1,27 +1,26 @@ -# *********************************************************************************** -# * Copyright 2010 - 2016 Paulo A. Herrera. All rights reserved. * -# * * -# * Redistribution and use in source and binary forms, with or without * -# * modification, are permitted provided that the following conditions are met: * -# * * -# * 1. Redistributions of source code must retain the above copyright notice, * -# * this list of conditions and the following disclaimer. * -# * * -# * 2. 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. * -# * * -# * THIS SOFTWARE IS PROVIDED BY PAULO A. HERRERA ``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 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * -# * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * -# * BUT NOT LIMITED TO, PROCUREMEN 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. * -# *********************************************************************************** +###################################################################################### +# MIT License +# +# Copyright (c) 2010-2021 Paulo A. Herrera +# +# 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. +###################################################################################### """Low level Python library to export data to binary VTK file.""" import sys diff --git a/pyevtk/xml.py b/pyevtk/xml.py index b4c1e37..7292295 100644 --- a/pyevtk/xml.py +++ b/pyevtk/xml.py @@ -1,27 +1,26 @@ -# *********************************************************************************** -# * Copyright 2010 - 2016 Paulo A. Herrera. All rights reserved * -# * * -# * Redistribution and use in source and binary forms, with or without * -# * modification, are permitted provided that the following conditions are met: * -# * * -# * 1. Redistributions of source code must retain the above copyright notice, * -# * this list of conditions and the following disclaimer. * -# * * -# * 2. 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. * -# * * -# * THIS SOFTWARE IS PROVIDED BY PAULO A. HERRERA ``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 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * -# * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * -# * BUT NOT LIMITED TO, PROCUREMEN 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. * -# *********************************************************************************** +###################################################################################### +# MIT License +# +# Copyright (c) 2010-2021 Paulo A. Herrera +# +# 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. +###################################################################################### """Simple class to generate a well-formed XML file.""" From 54595db86dcc26469951600a1d3cabcc513270cf Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Tue, 26 May 2026 16:28:33 +0200 Subject: [PATCH 2/3] Updated license header --- LICENSE.txt | 4 ++-- pyevtk/__init__.py | 2 +- pyevtk/evtk.py | 2 +- pyevtk/hl.py | 2 +- pyevtk/vtk.py | 2 +- pyevtk/xml.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index a85a58b..b8c6e19 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Paulo A. Herrera +Copyright (c) 2021-2024 Paulo A. Herrera Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ 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. \ No newline at end of file +SOFTWARE. diff --git a/pyevtk/__init__.py b/pyevtk/__init__.py index 03dea95..b17356c 100644 --- a/pyevtk/__init__.py +++ b/pyevtk/__init__.py @@ -1,7 +1,7 @@ ###################################################################################### # MIT License # -# Copyright (c) 2010-2021 Paulo A. Herrera +# Copyright (c) 2010-2024 Paulo A. Herrera # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/pyevtk/evtk.py b/pyevtk/evtk.py index e070367..c749b40 100644 --- a/pyevtk/evtk.py +++ b/pyevtk/evtk.py @@ -1,7 +1,7 @@ ###################################################################################### # MIT License # -# Copyright (c) 2010-2021 Paulo A. Herrera +# Copyright (c) 2010-2024 Paulo A. Herrera # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/pyevtk/hl.py b/pyevtk/hl.py index fcbe18e..8bb37f8 100644 --- a/pyevtk/hl.py +++ b/pyevtk/hl.py @@ -1,7 +1,7 @@ ###################################################################################### # MIT License # -# Copyright (c) 2010-2021 Paulo A. Herrera +# Copyright (c) 2010-2024 Paulo A. Herrera # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/pyevtk/vtk.py b/pyevtk/vtk.py index 77fdf1f..e4de0cd 100644 --- a/pyevtk/vtk.py +++ b/pyevtk/vtk.py @@ -1,7 +1,7 @@ ###################################################################################### # MIT License # -# Copyright (c) 2010-2021 Paulo A. Herrera +# Copyright (c) 2010-2024 Paulo A. Herrera # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal diff --git a/pyevtk/xml.py b/pyevtk/xml.py index 7292295..8fd14f3 100644 --- a/pyevtk/xml.py +++ b/pyevtk/xml.py @@ -1,7 +1,7 @@ ###################################################################################### # MIT License # -# Copyright (c) 2010-2021 Paulo A. Herrera +# Copyright (c) 2010-2024 Paulo A. Herrera # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal From a3681f0af3f4ed182a5d955daa808c6be0dca3f0 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Tue, 26 May 2026 16:28:52 +0200 Subject: [PATCH 3/3] Update setup.py license to MIT --- setup.py | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/setup.py b/setup.py index ff73b8d..af4f980 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,26 @@ -# *********************************************************************************** -# * Copyright 2010-2017 Paulo A. Herrera. All rights reserved. * -# * * -# * Redistribution and use in source and binary forms, with or without * -# * modification, are permitted provided that the following conditions are met: * -# * * -# * 1. Redistributions of source code must retain the above copyright notice, * -# * this list of conditions and the following disclaimer. * -# * * -# * 2. 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. * -# * * -# * THIS SOFTWARE IS PROVIDED BY PAULO A. HERRERA ``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 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * -# * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * -# * BUT NOT LIMITED TO, PROCUREMEN 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. * -# *********************************************************************************** +###################################################################################### +# MIT License +# +# Copyright (c) 2010-2024 Paulo A. Herrera +# +# 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. +###################################################################################### try: from setuptools import setup @@ -48,7 +47,7 @@ def readme(fname): author_email="pauloa.herrera@gmail.com", maintainer="Adamos Kyriakou", maintainer_email="somada141@gmail.com", - license="BSD-2-Clause", + license="MIT", url="https://github.com/pyscience-projects/pyevtk", packages=["pyevtk", "evtk"], package_dir={"pyevtk": "pyevtk"},