Skip to content

Commit

Permalink
Merge pull request #32 from saraedum/license
Browse files Browse the repository at this point in the history
Actually update license to GPLv2+
  • Loading branch information
saraedum authored Nov 8, 2023
2 parents f433ab0 + fdc8c27 commit 51bcf22
Show file tree
Hide file tree
Showing 22 changed files with 490 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],

"license": "GPL-3.0-or-later",
"license": "GPL-2.0-or-later",
"title": "veerer",
"description": "<p>Veerer is a Python package to deal with veering triangulations of surfaces and their associated flat structures.</p>"
}
339 changes: 339 additions & 0 deletions COPYING

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
# Copyright (C) 2019-2023 Vincent Delecroix
# 2023 Julian Rüth
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************
from setuptools import setup, Extension
from Cython.Build import cythonize
Expand All @@ -35,14 +37,14 @@
author_email="contact@flatsurf.org",
url="https://github.com/flatsurf/veerer",
packages=["veerer", "veerer.polyhedron"],
license="GNU General Public License, version 3",
license = 'GPL 2.0+',
ext_modules=cythonize(extensions),
install_requires=[],
setup_requires=["Cython"],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_quadrangulation_flip_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_failure_conjugate_in_H6():
[((1,), (1,)), ((1,), (1,)), ((0,), (1,)), ((5,), (1,))],
"(0,4,1,5,2,6,3)"),
("(0,6,5)(1,4,3,2)", "(0,6)(1,2,5)(3,4)",
[((1,), (1,)), ((4,), (1,)), ((1,), (1,)), ((1,), (1,))],
[((1,), (1,)), ((4,), (1,)), ((1,), (1,)), ((1,), (1,))],
"(0,4,1,5,2,6,3)"),
("(0,4,2)(1)(3)(5,6)", "(0,5,6)(1,2,3,4)",
[((1,), (1,)), ((1,), (1,)), ((0,), (1,)), ((0,), (1,))],
Expand Down Expand Up @@ -177,7 +177,7 @@ def test_failure_conjugate_in_H6():
# ("(0,3,2,1)", "(0,2)(1)(3)", [((0,), (2,)), ((0, 3, 2), (0, 0, 1))], "(0,1,2,3)"),
# ("(0,2)(1)(3)", "(0,1,2,3)", [((0, 1, 3), (0, 1, 0)), ((1,), (2,))], "(0,3,2,1)"),
# ("(0,2)(1)(3)", "(0,1,2,3)", [((0, 1, 3), (0, 0, 1)), ((3,), (2,))], "(0,3,2,1)")]
#
#
# flip_sequences = [VeeringQuadrangulationFlipSequence(VeeringQuadrangulation(pr, pl), flips, relabelling) for pr, pl, flips, relabelling in data]
#
# N = len(flip_sequences)
Expand Down
12 changes: 7 additions & 5 deletions veerer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from .constants import RED, BLUE, PURPLE, GREEN, HORIZONTAL, VERTICAL, RIGHT, LEFT, UP, DOWN
Expand Down
22 changes: 12 additions & 10 deletions veerer/automaton.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer 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.
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

import os
Expand Down Expand Up @@ -945,7 +947,7 @@ class GeometricAutomatonSubspace(Automaton):
n=6: Geometric veering linear constraint automaton with 800 vertices
"""
_name = 'geometric veering linear constraint'

def _setup(self, backend=None):
self._backend = backend

Expand Down
12 changes: 7 additions & 5 deletions veerer/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

NONE = 0
Expand Down
14 changes: 8 additions & 6 deletions veerer/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from array import array
Expand Down Expand Up @@ -94,7 +96,7 @@ def __init__(self, triangulation, cover, mutable=False, check=True):
for i,p in enumerate(cover):
if p is None:
cover[i] = perm_init(range(d))

ep = self._t.edge_permutation(copy=False)
n = self._t.num_half_edges()
ne = self._t.num_edges()
Expand Down
12 changes: 7 additions & 5 deletions veerer/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

CHECK = False
Expand Down
12 changes: 7 additions & 5 deletions veerer/flat_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
#
# Copyright (C) 2018-2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from sage.structure.sequence import Sequence
Expand Down
12 changes: 7 additions & 5 deletions veerer/flip_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@
#
# Copyright (C) 2020 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from .constants import colour_from_char, colour_to_char, RED, BLUE, PURPLE, GREEN, HORIZONTAL, VERTICAL
Expand Down
12 changes: 7 additions & 5 deletions veerer/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

import math
Expand Down
12 changes: 7 additions & 5 deletions veerer/linear_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from array import array
Expand Down
16 changes: 9 additions & 7 deletions veerer/measured_train_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
#
# Copyright (C) 2018-2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from sage.categories.fields import Fields
Expand Down Expand Up @@ -80,7 +82,7 @@ def lengths(self):
def __repr__(self):
return "MeasuredTrainTrack({}, {})".format(
self._triangulation, self._lengths)

def __call__(self, p, iterations=1):
r"""
p = (i,x) where
Expand All @@ -89,7 +91,7 @@ def __call__(self, p, iterations=1):
EXAMPLES::
sage: from veerer import *
sage: from veerer import *
sage: v0 = vector((1, 0, 1, 1))
sage: v1 = vector((0, 1, 1, 1))
sage: t = Triangulation("(0,1,2)(~0,~1,3)")
Expand Down
12 changes: 7 additions & 5 deletions veerer/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
#
# Copyright (C) 2018-2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
# This program 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 2
# of the License, or (at your option) any later version.
#
# veerer is distributed in the hope that it will be useful,
# This program 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 veerer. If not, see <https://www.gnu.org/licenses/>.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# ****************************************************************************

from .env import ppl
Expand Down
Loading

0 comments on commit 51bcf22

Please sign in to comment.