From: Vivien Maisonneuve Date: Tue, 5 Aug 2014 17:09:55 +0000 (+0200) Subject: Rename pypol into LinPy X-Git-Tag: 1.0~84 X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/commitdiff_plain/7b93cea1daf2889e9ee10ca9c22a1b5124404937?ds=inline;hp=960f0c252361dfd696359f803aae40a9b13b14a6 Rename pypol into LinPy --- diff --git a/.gitignore b/.gitignore index 7ce9a97..32e9e09 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ +*~ /build/ /dist/ +/linpy.egg-info/ /MANIFEST -/pypol.egg-info/ /venv/ __pycache__ -*~ diff --git a/Makefile b/Makefile index 28c927f..11f63e1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -NAME=pypol +NAME=linpy PYTHON=python3 SETUP=$(PYTHON) setup.py diff --git a/doc/Makefile b/doc/Makefile index 6e04a49..b489e38 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -85,17 +85,17 @@ qthelp: @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pypol.qhcp" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/LinPy.qhcp" @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pypol.qhc" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/LinPy.qhc" devhelp: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp @echo @echo "Build finished." @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/pypol" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pypol" + @echo "# mkdir -p $$HOME/.local/share/devhelp/LinPy" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/LinPy" @echo "# devhelp" epub: diff --git a/doc/conf.py b/doc/conf.py index 8a670ce..23a1b91 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# Linpy documentation build configuration file, created by +# LinPy documentation build configuration file, created by # sphinx-quickstart on Wed Jun 25 20:34:21 2014. # # This file is execfile()d with the current directory set to its @@ -46,7 +46,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = 'pypol' +project = 'LinPy' copyright = '2014, MINES ParisTech' # The version info for the project you're documenting, acts as replacement for @@ -179,7 +179,7 @@ html_static_path = ['_static'] #html_file_suffix = None # Output file base name for HTML help builder. -htmlhelp_basename = 'pypoldoc' +htmlhelp_basename = 'LinPydoc' # -- Options for LaTeX output --------------------------------------------- @@ -199,7 +199,7 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'pypol.tex', 'pypol Documentation', + ('index', 'LinPy.tex', 'LinPy Documentation', 'MINES ParisTech', 'manual'), ] @@ -229,7 +229,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'pypol', 'pypol Documentation', + ('index', 'LinPy', 'LinPy Documentation', ['MINES ParisTech'], 1) ] @@ -243,8 +243,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'pypol', 'pypol Documentation', - 'MINES ParisTech', 'pypol', 'One line description of project.', + ('index', 'LinPy', 'LinPy Documentation', + 'MINES ParisTech', 'LinPy', 'One line description of project.', 'Miscellaneous'), ] diff --git a/doc/examples.rst b/doc/examples.rst index 7a390d3..a4b0f5a 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -1,11 +1,11 @@ -Linpy Examples +LinPy Examples ============== Creating a Polyhedron ----------------- To create any polyhedron, first define the symbols used. Then use the polyhedron functions to define the constraints for the polyhedron. This example creates a square. - - >>> from pypol import * + + >>> from linpy import * >>> x, y = symbols('x y') >>> # define the constraints of the polyhedron >>> square1 = Le(0, x) & Le(x, 2) & Le(0, y) & Le(y, 2) @@ -13,32 +13,32 @@ Creating a Polyhedron And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0)) Urnary Operations ------------------ - +----------------- + >>> square1.isempty() False >>> square1.isbounded() True - + Binary Operations ----------------- - + >>> square2 = Le(2, x) & Le(x, 4) & Le(2, y) & Le(y, 4) >>> square1 + square2 Or(And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0)), And(Ge(x - 2, 0), Ge(-x + 4, 0), Ge(y - 2, 0), Ge(-y + 4, 0))) - >>> # check if square1 and square2 are disjoint - >>> square1.disjoint(square2) - False + >>> # check if square1 and square2 are disjoint + >>> square1.disjoint(square2) + False Plot Examples -------------- - - Linpy uses matplotlib plotting library to plot 2D and 3D polygons. The user has the option to pass subplots to the :meth:`plot` method. This can be a useful tool to compare polygons. Also, key word arguments can be passed such as color and the degree of transparency of a polygon. - +------------- + + LinPy uses matplotlib plotting library to plot 2D and 3D polygons. The user has the option to pass subplots to the :meth:`plot` method. This can be a useful tool to compare polygons. Also, key word arguments can be passed such as color and the degree of transparency of a polygon. + >>> import matplotlib.pyplot as plt >>> from matplotlib import pylab >>> from mpl_toolkits.mplot3d import Axes3D - >>> from pypol import * + >>> from linpy import * >>> # define the symbols >>> x, y, z = symbols('x y z') >>> fig = plt.figure() @@ -47,21 +47,21 @@ Plot Examples >>> cham = Le(0, x) & Le(x, 3) & Le(0, y) & Le(y, 3) & Le(0, z) & Le(z, 3) & Le(z - 2, x) & Le(x, z + 2) & Le(1 - z, x) & Le(x, 5 - z) & Le(z - 2, y) & Le(y, z + 2) & Le(1 - z, y) & Le(y, 5 - z) & Le(y - 2, x) & Le(x, y + 2) & Le(1 - y, x) & Le(x, 5 - y) >>> cham.plot(cham_plot, facecolors=(1, 0, 0, 0.75)) >>> pylab.show() - + .. figure:: images/cube.jpg :align: center - - The user can also inspect a polygon's vertices and the integer points included in the polygon. - + + The user can also inspect a polygon's vertices and the integer points included in the polygon. + >>> diamond = Ge(y, x - 1) & Le(y, x + 1) & Ge(y, -x - 1) & Le(y, -x + 1) >>> diamond.vertices() [Point({x: Fraction(0, 1), y: Fraction(1, 1)}), Point({x: Fraction(-1, 1), y: Fraction(0, 1)}), Point({x: Fraction(1, 1), y: Fraction(0, 1)}), Point({x: Fraction(0, 1), y: Fraction(-1, 1)})] >>> diamond.points() [Point({x: -1, y: 0}), Point({x: 0, y: -1}), Point({x: 0, y: 0}), Point({x: 0, y: 1}), Point({x: 1, y: 0})] - - - - - - - + + + + + + + diff --git a/doc/index.rst b/doc/index.rst index 97e6157..c5fe0b4 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -1,15 +1,15 @@ -.. pypol documentation master file, created by +.. LinPy documentation master file, created by sphinx-quickstart on Wed Jun 25 20:34:21 2014. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -Welcome to Linpy’s documentation! +Welcome to LinPy’s documentation! ================================= -Linpy is a Python library for symbolic mathematics. -If you are new to Linpy, start with the Examples. +LinPy is a Python library for symbolic mathematics. +If you are new to LinPy, start with the Examples. -This is the central page for all of Linpy’s documentation. +This is the central page for all of LinPy’s documentation. Contents: diff --git a/doc/install.rst b/doc/install.rst index a19f9ba..0ed0654 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -6,24 +6,24 @@ Installation Source ====== -Users can install Linpy by cloning the git repository:: +Users can install LinPy by cloning the git repository:: git clone https://scm.cri.ensmp.fr/git/pypol.git Install ======= -…execute `setup.py` +…execute `setup.py` Dependencies ============ -Linpy has several dependencies. Users will first need to install Integer Set Library (isl). The source files of isl are available as a tarball or a git repository. Both are available `here`_ . +LinPy has several dependencies. Users will first need to install Integer Set Library (isl). The source files of isl are available as a tarball or a git repository. Both are available `here`_ . -To use the Linpy plotting function, users need to install matplotlib using instructions in the following `link`_. +To use the LinPy plotting function, users need to install matplotlib using instructions in the following `link`_. .. _here: http://freshmeat.net/projects/isl/ -.. _link: http://matplotlib.org/faq/installing_faq.html \ No newline at end of file +.. _link: http://matplotlib.org/faq/installing_faq.html diff --git a/doc/modules.rst b/doc/modules.rst index 0645c7a..281ab9f 100644 --- a/doc/modules.rst +++ b/doc/modules.rst @@ -1,9 +1,9 @@ .. module-docs: -Linpy Module Reference +LinPy Module Reference ====================== -There are four main Linpy modules: +There are four main LinPy modules: .. toctree:: :maxdepth: 2 diff --git a/examples/README.rst b/examples/README.rst index 990fcaa..17ee50f 100644 --- a/examples/README.rst +++ b/examples/README.rst @@ -3,15 +3,15 @@ Examples ======== -This directory contains pypol examples programs. +This directory contains LinPy examples programs. Running Examples ================ -To run the individual examples one needs to have Python version ≥ 3.4 installed and pypol must be in your ``PYTHONPATH`` environment variable. +To run the individual examples one needs to have Python version ≥ 3.4 installed and linpy must be in your ``PYTHONPATH`` environment variable. Most examples can be run from the command line ``python3`` and the name of the example:: - vivien@rochefort:~/pypol/examples$ export PYTHONPATH=$PWD/..:$PYTHONPATH - vivien@rochefort:~/pypol/examples$ python3 squares.py + vivien@rochefort:~/linpy/examples$ export PYTHONPATH=$PWD/..:$PYTHONPATH + vivien@rochefort:~/linpy/examples$ python3 squares.py -Note: on most systems, the current directory is searched by Python automatically, so ``python3 examples/squares.py`` works from the pypol root directory, however there are systems (Ubuntu Intrepid) where this doesn't work by default, unless you put ``PYTHONPATH=.`` into your .bashrc for example. +Note: on most systems, the current directory is searched by Python automatically, so ``python3 examples/squares.py`` works from the LinPy root directory, however there are systems (Ubuntu Intrepid) where this doesn't work by default, unless you put ``PYTHONPATH=.`` into your .bashrc for example. diff --git a/examples/bac2014.py b/examples/bac2014.py index bb8969d..775be66 100755 --- a/examples/bac2014.py +++ b/examples/bac2014.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from pypol import * +from linpy import * x, y, z = symbols('x y z') DF = Eq(x, y) & Eq(z, 6 - 2*x) diff --git a/examples/diamonds.py b/examples/diamonds.py index d5119b4..0978d4c 100755 --- a/examples/diamonds.py +++ b/examples/diamonds.py @@ -5,7 +5,7 @@ import matplotlib.pyplot as plt from matplotlib import pylab from mpl_toolkits.mplot3d import Axes3D -from pypol import * +from linpy import * x, y, z = symbols('x y z') diff --git a/examples/menger.py b/examples/menger.py index 9ec958f..d8a74d4 100755 --- a/examples/menger.py +++ b/examples/menger.py @@ -9,7 +9,7 @@ from math import ceil from matplotlib import pylab from mpl_toolkits.mplot3d import Axes3D -from pypol import * +from linpy import * x, y, z = symbols('x y z') diff --git a/examples/nsad2010.py b/examples/nsad2010.py index 0a25279..9359315 100755 --- a/examples/nsad2010.py +++ b/examples/nsad2010.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from pypol import * +from linpy import * class Transformer: diff --git a/examples/squares.py b/examples/squares.py index e00821e..ea48fe4 100755 --- a/examples/squares.py +++ b/examples/squares.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from pypol import * +from linpy import * a, x, y, z = symbols('a x y z') diff --git a/examples/tesseract.py b/examples/tesseract.py index b2a5e97..0a57188 100755 --- a/examples/tesseract.py +++ b/examples/tesseract.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from pypol import * +from linpy import * x, y, z, t = symbols('x y z t') diff --git a/pypol/.gitignore b/linpy/.gitignore similarity index 100% rename from pypol/.gitignore rename to linpy/.gitignore diff --git a/pypol/__init__.py b/linpy/__init__.py similarity index 81% rename from pypol/__init__.py rename to linpy/__init__.py index 1df4728..7d67f77 100644 --- a/pypol/__init__.py +++ b/linpy/__init__.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . """ A polyhedral library based on ISL. diff --git a/pypol/_islhelper.c b/linpy/_islhelper.c similarity index 95% rename from pypol/_islhelper.c rename to linpy/_islhelper.c index 6757ae1..bd39df7 100644 --- a/pypol/_islhelper.c +++ b/linpy/_islhelper.c @@ -1,19 +1,19 @@ // Copyright 2014 MINES ParisTech // -// This file is part of Linpy. +// This file is part of LinPy. // -// Linpy is free software: you can redistribute it and/or modify +// LinPy 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. // -// Linpy is distributed in the hope that it will be useful, +// LinPy 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 Linpy. If not, see . +// along with LinPy. If not, see . #include diff --git a/pypol/domains.py b/linpy/domains.py similarity index 99% rename from pypol/domains.py rename to linpy/domains.py index f918e14..21e78db 100644 --- a/pypol/domains.py +++ b/linpy/domains.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import ast import functools diff --git a/pypol/geometry.py b/linpy/geometry.py similarity index 97% rename from pypol/geometry.py rename to linpy/geometry.py index 9a5fa8f..335a826 100644 --- a/pypol/geometry.py +++ b/linpy/geometry.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import math import numbers diff --git a/pypol/islhelper.py b/linpy/islhelper.py similarity index 90% rename from pypol/islhelper.py rename to linpy/islhelper.py index 7201882..c38e734 100644 --- a/pypol/islhelper.py +++ b/linpy/islhelper.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import ctypes, ctypes.util diff --git a/pypol/linexprs.py b/linpy/linexprs.py similarity index 98% rename from pypol/linexprs.py rename to linpy/linexprs.py index bd3ad5a..aedf170 100644 --- a/pypol/linexprs.py +++ b/linpy/linexprs.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import ast import functools diff --git a/pypol/polyhedra.py b/linpy/polyhedra.py similarity index 98% rename from pypol/polyhedra.py rename to linpy/polyhedra.py index 9bfc64b..e9226f2 100644 --- a/pypol/polyhedra.py +++ b/linpy/polyhedra.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import functools import math diff --git a/pypol/tests/__init__.py b/linpy/tests/__init__.py similarity index 68% rename from pypol/tests/__init__.py rename to linpy/tests/__init__.py index 072bb70..8244acf 100644 --- a/pypol/tests/__init__.py +++ b/linpy/tests/__init__.py @@ -1,16 +1,16 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . diff --git a/pypol/tests/libhelper.py b/linpy/tests/libhelper.py similarity index 79% rename from pypol/tests/libhelper.py rename to linpy/tests/libhelper.py index 1ac25d3..7cefbb2 100644 --- a/pypol/tests/libhelper.py +++ b/linpy/tests/libhelper.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import functools import unittest diff --git a/pypol/tests/test_domains.py b/linpy/tests/test_domains.py similarity index 97% rename from pypol/tests/test_domains.py rename to linpy/tests/test_domains.py index 2907f09..4b8c5ea 100644 --- a/pypol/tests/test_domains.py +++ b/linpy/tests/test_domains.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import unittest diff --git a/pypol/tests/test_geometry.py b/linpy/tests/test_geometry.py similarity index 94% rename from pypol/tests/test_geometry.py rename to linpy/tests/test_geometry.py index 45ffa3c..2f4db2b 100644 --- a/pypol/tests/test_geometry.py +++ b/linpy/tests/test_geometry.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import math import unittest diff --git a/pypol/tests/test_linexprs.py b/linpy/tests/test_linexprs.py similarity index 98% rename from pypol/tests/test_linexprs.py rename to linpy/tests/test_linexprs.py index 0fca90e..16b9cde 100644 --- a/pypol/tests/test_linexprs.py +++ b/linpy/tests/test_linexprs.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import functools import unittest diff --git a/pypol/tests/test_polyhedra.py b/linpy/tests/test_polyhedra.py similarity index 91% rename from pypol/tests/test_polyhedra.py rename to linpy/tests/test_polyhedra.py index 30d5d5f..d50f0f1 100644 --- a/pypol/tests/test_polyhedra.py +++ b/linpy/tests/test_polyhedra.py @@ -1,19 +1,19 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . import functools import unittest diff --git a/setup.py b/setup.py index f72af50..05ea91c 100755 --- a/setup.py +++ b/setup.py @@ -2,31 +2,31 @@ # Copyright 2014 MINES ParisTech # -# This file is part of Linpy. +# This file is part of LinPy. # -# Linpy is free software: you can redistribute it and/or modify +# LinPy 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. # -# Linpy is distributed in the hope that it will be useful, +# LinPy 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 Linpy. If not, see . +# along with LinPy. If not, see . from distutils.core import setup, Extension setup( - name='pypol', + name='LinPy', description='A polyhedral library based on ISL', author='MINES ParisTech', - packages=['pypol'], + packages=['linpy'], ext_modules = [ - Extension('pypol._islhelper', - sources=['pypol/_islhelper.c'], + Extension('linpy._islhelper', + sources=['linpy/_islhelper.c'], libraries=['isl']) ] )