islpy 2023.2.5__cp312-cp312-macosx_11_0_arm64.whl → 2024.2__cp312-cp312-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
islpy/__init__.py CHANGED
@@ -20,11 +20,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
  THE SOFTWARE.
21
21
  """
22
22
 
23
- from typing import Optional, TypeVar, cast, Callable, Any
23
+ from typing import Any, Callable, Optional, TypeVar, cast
24
24
 
25
25
  import islpy._isl as _isl
26
26
  from islpy.version import VERSION, VERSION_TEXT # noqa
27
27
 
28
+
29
+ __version__ = VERSION_TEXT
30
+
28
31
  # {{{ copied verbatim from pytools to avoid numpy/pytools dependency
29
32
 
30
33
  F = TypeVar("F", bound=Callable[..., Any])
@@ -49,7 +52,7 @@ def _memoize_on_first_arg(function: F, cache_dict_name: Optional[str] = None) ->
49
52
 
50
53
  def wrapper(obj, *args, **kwargs):
51
54
  if kwargs:
52
- key = (_HasKwargs, frozenset(kwargs.items())) + args
55
+ key = (_HasKwargs, frozenset(kwargs.items()), *args)
53
56
  else:
54
57
  key = args
55
58
 
@@ -87,6 +90,8 @@ Error = _isl.Error
87
90
 
88
91
  # {{{ name imports
89
92
 
93
+ isl_version = _isl.isl_version
94
+
90
95
  Context = _isl.Context
91
96
  IdList = _isl.IdList
92
97
  ValList = _isl.ValList
@@ -502,7 +507,7 @@ def _add_functionality():
502
507
  if dim_to_name is None:
503
508
  name = self.get_dim_name(tp, i)
504
509
  else:
505
- name = dim_to_name[(tp, i)]
510
+ name = dim_to_name[tp, i]
506
511
 
507
512
  result[name] = coeff
508
513
 
Binary file
islpy/version.py CHANGED
@@ -1,2 +1,2 @@
1
- VERSION = (2023, 2, 5)
1
+ VERSION = (2024, 2)
2
2
  VERSION_TEXT = ".".join(str(i) for i in VERSION)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: islpy
3
- Version: 2023.2.5
3
+ Version: 2024.2
4
4
  Summary: Wrapper around isl, an integer set library
5
5
  Home-page: http://documen.tician.de/islpy
6
6
  Author: Andreas Kloeckner
@@ -22,9 +22,8 @@ Classifier: Topic :: Scientific/Engineering :: Physics
22
22
  Classifier: Topic :: Scientific/Engineering :: Visualization
23
23
  Classifier: Topic :: Software Development :: Libraries
24
24
  Requires-Python: ~=3.8
25
- License-File: doc/misc.rst
26
25
  Provides-Extra: test
27
- Requires-Dist: pytest >=2 ; extra == 'test'
26
+ Requires-Dist: pytest>=2; extra == "test"
28
27
 
29
28
  islpy: Polyhedral Analysis from Python
30
29
  ======================================
@@ -0,0 +1,7 @@
1
+ islpy-2024.2.dist-info/RECORD,,
2
+ islpy-2024.2.dist-info/WHEEL,sha256=Ah-QQGLB4HPowt31mOh8uSX1FlWlASzlKRBttSXH2kY,104
3
+ islpy-2024.2.dist-info/top_level.txt,sha256=txVjJJ85Sa3IMOF6WOh_bTkOyRDWiSW2kQOf8vSPb6M,6
4
+ islpy-2024.2.dist-info/METADATA,sha256=lq6OJ8w6D6toAOYmNbAuqZYu569KwHIvTeZYuQt8gEU,3099
5
+ islpy/_isl.cpython-312-darwin.so,sha256=A8nMk88QNdLKXeo5qi1P8-aKU2EcV8fLHQY1UvZqV9k,7957272
6
+ islpy/version.py,sha256=GIrFDi1EGoev0c3vbRgeQwCmQCUsa_l35IlliuGaTLU,69
7
+ islpy/__init__.py,sha256=6380Da-Rvz_PxL-kmorbUtkdBaH9_XDF38ziESK6q3U,38066
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: skbuild 0.17.6
2
+ Generator: skbuild 0.18.1
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-macosx_11_0_arm64
5
5
 
@@ -1,8 +0,0 @@
1
- islpy-2023.2.5.dist-info/RECORD,,
2
- islpy-2023.2.5.dist-info/WHEEL,sha256=cfKgMoSp-zPJrSoNUeQfajxX7iB5ANGzAzCvv8m61gI,104
3
- islpy-2023.2.5.dist-info/misc.rst,sha256=3C_u46XayaGn8Uk_gCYM6sRO0XNTNg9fYf4FBiAlaE8,6337
4
- islpy-2023.2.5.dist-info/top_level.txt,sha256=txVjJJ85Sa3IMOF6WOh_bTkOyRDWiSW2kQOf8vSPb6M,6
5
- islpy-2023.2.5.dist-info/METADATA,sha256=LC2vLMgDsmZBSBVPmNMRQiS1FkAp3jbMas7ZUT4eEYk,3130
6
- islpy/_isl.cpython-312-darwin.so,sha256=4bggZfdjwgFK3YzdcZW89oy_n-p9w_xRAJHizPwc5Q4,8174439
7
- islpy/version.py,sha256=8BXi4fZjCnlQnuRoYEZfbM9C__EJ5sBNVNVsjYmWgzI,72
8
- islpy/__init__.py,sha256=hWsa1KSQyZCFwaoN0e7jEigogL9Lq3NK87kXg9Tmivk,38007
@@ -1,207 +0,0 @@
1
- Installation
2
- ============
3
-
4
- This command should install :mod:`islpy`::
5
-
6
- pip install islpy
7
-
8
- You may need to run this with :command:`sudo`.
9
- If you don't already have `pip <https://pypi.python.org/pypi/pip>`_,
10
- run this beforehand::
11
-
12
- curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
13
- python get-pip.py
14
-
15
- For a more manual installation, `download the source
16
- <http://pypi.python.org/pypi/islpy>`_, unpack it, and say::
17
-
18
- python setup.py install
19
-
20
- You may also clone its git repository::
21
-
22
- git clone --recursive http://git.tiker.net/trees/islpy.git
23
- git clone --recursive git://github.com/inducer/islpy
24
-
25
- Wiki and FAQ
26
- ============
27
-
28
- A `wiki page <http://wiki.tiker.net/IslPy>`_ is also available, where install
29
- instructions and an FAQ will grow over time.
30
-
31
- For a mailing list, please consider using the `isl list
32
- <http://groups.google.com/group/isl-development>`_ until they tell us to get
33
- lost.
34
-
35
- License
36
- =======
37
-
38
- islpy is licensed to you under the MIT/X Consortium license:
39
-
40
- Copyright (c) 2011 Andreas Klöckner and Contributors.
41
-
42
- Permission is hereby granted, free of charge, to any person
43
- obtaining a copy of this software and associated documentation
44
- files (the "Software"), to deal in the Software without
45
- restriction, including without limitation the rights to use,
46
- copy, modify, merge, publish, distribute, sublicense, and/or sell
47
- copies of the Software, and to permit persons to whom the
48
- Software is furnished to do so, subject to the following
49
- conditions:
50
-
51
- The above copyright notice and this permission notice shall be
52
- included in all copies or substantial portions of the Software.
53
-
54
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
55
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
56
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
57
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
58
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
59
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
60
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
61
- OTHER DEALINGS IN THE SOFTWARE.
62
-
63
- .. note::
64
-
65
- * isl and imath, which islpy depends on, are also licensed under the `MIT
66
- license <http://repo.or.cz/w/isl.git/blob/HEAD:/LICENSE>`_.
67
-
68
- * GMP, which used to be a dependency of isl and thus islpy, is no longer
69
- required. (but building against it can optionally be requested)
70
-
71
- Relation with isl's C interface
72
- ===============================
73
-
74
- Nearly all of the bindings to isl are auto-generated, using the following
75
- rules:
76
-
77
- * Follow :pep:`8`.
78
- * Expose the underlying object-oriented structure.
79
- * Remove the `isl_` and `ISL_` prefixes from data types, macros and
80
- function names, replace them with Python namespaces.
81
- * A method `isl_printer_print_set` would thus become
82
- :meth:`islpy.Printer.print_set`.
83
-
84
- See also :ref:`gen-remarks`.
85
-
86
- User-visible Changes
87
- ====================
88
-
89
- Version 2016.2
90
- --------------
91
- .. note::
92
-
93
- This version is currently in development and can be obtained from
94
- islpy's version control.
95
-
96
- * Update for isl 0.17
97
- * Add :func:`islpy.make_zero_and_vars`
98
-
99
- Version 2016.1.1
100
- ----------------
101
-
102
- * Add :func:`islpy.make_zero_and_vars`
103
- * Do not turn on small-integer optimization by default
104
- (to avoid build trouble on old compilers)
105
-
106
- Version 2016.1
107
- --------------
108
-
109
- * Update for isl 0.16
110
-
111
- Version 2014.2.1
112
- ----------------
113
-
114
- * :mod:`islpy` now avoids using 2to3 for Python 3 compatibility.
115
-
116
- Version 2014.2
117
- --------------
118
-
119
- * A large number of previously unavailable functions are now exposed.
120
-
121
- * Sebastian Pop's `imath <https://github.com/creachadair/imath>`__ support has
122
- been merged into the version of isl that ships with :mod:`islpy`. This means
123
- that unless a user specifically requests a build against GMP, :mod:`islpy`
124
- is (a) entirely self-contained and depends only on a C++ compiler and
125
- (b) is entirely MIT-licensed by default.
126
-
127
- Version 2014.1
128
- --------------
129
-
130
- * Many classes are now picklable.
131
-
132
- * isl's handling of integer's has changed, forcing islpy to make
133
- incompatible changes as well.
134
-
135
- Now :class:`islpy.Val` is used to represent all numbers going
136
- into and out of :mod:`islpy`. ``gmpy`` is no longer a dependency
137
- of :mod:`islpy`. The following rules apply for this interface change:
138
-
139
- * You can pass (up to ``long int``-sized) integers to methods of
140
- isl objects without manual conversion to :class:`islpy.Val`.
141
- For larger numbers, you need to convert manually for now.
142
-
143
- * All numbers returned from :mod:`islpy` will be of type :class:`islpy.Val`.
144
- If they are integers, they can be converted
145
-
146
- * Since upstream made the decision to make ``isl_XXX_do_something_val``
147
- not always semantically equivalent to ``isl_XXX_do_something``, the
148
- old functions were removed.
149
-
150
- One example of this is ``isl_aff_get_constant``, which returned just
151
- the constant, and ``isl_aff_get_constant_val``, which returns the
152
- constant divided by the :class:`islpy.Aff`'s denominator as a rational
153
- value.
154
-
155
- Version 2011.3
156
- --------------
157
-
158
- * Add :meth:`islpy.Set.project_out_except` and friends.
159
- * Add ``islpy.Set.remove_divs_of_dim_type`` and friends.
160
- * ``islpy.Dim`` was renamed to :class:`islpy.Space` in isl.
161
- * ``islpy.Div`` was removed and replaced by :class:`islpy.Aff`
162
- wherever it was used previously.
163
- * ``islpy.BasicSet.as_set`
164
- and
165
- ``islpy.BasicMap.as_map``
166
- were removed.
167
- * :ref:`automatic-casts` were added.
168
- * Support for more Python :class:`set`-like behavior was added. In particular,
169
- the operators `|`, `&', '-', `<`, `<=`, `>`, `>=`, `==`, `!=` work as expected.
170
- * Support direct construction from string for objects that have a `read_from_str`
171
- method.
172
- * The constant in a :class:`islpy.Constraint` is now set as the '1'
173
- key in a coefficient dictionary in
174
- :meth:`islpy.Constraint.eq_from_names`,
175
- :meth:`islpy.Constraint.ineq_from_names`, and
176
- :meth:`islpy.Constraint.set_coefficients_by_name`.
177
-
178
- Version 2011.2
179
- --------------
180
-
181
- * Switch to copy-by-default semantics.
182
- * A few changes in Python-side functionality.
183
- * Automatic type promotion in 'self' argument.
184
-
185
- Version 2011.1
186
- --------------
187
-
188
- * Initial release.
189
-
190
- Documentation Cross-References
191
- ------------------------------
192
-
193
- .. class:: unsigned
194
-
195
- See :class:`int`.
196
-
197
- .. class:: long
198
-
199
- See :class:`int`.
200
-
201
- .. class:: size_t
202
-
203
- See :class:`int`.
204
-
205
- .. class:: double
206
-
207
- See :class:`float`.