Skip to content

Commit 11f55b2

Browse files
alexfiklinducer
authored andcommitted
update and fix urls to use https
1 parent 37a8f26 commit 11f55b2

File tree

10 files changed

+37
-37
lines changed

10 files changed

+37
-37
lines changed

README.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ performs constant folding, and it can compile its expressions into Python
2828
bytecode for fast(er) execution.
2929

3030
If you are looking for a full-blown Computer Algebra System, look at
31-
`sympy <http://pypi.python.org/pypi/sympy>`_ or
32-
`PyGinac <http://pyginac.sourceforge.net/>`_. If you are looking for a
31+
`sympy <https://pypi.org/project/sympy/>`__ or
32+
`PyGinac <https://pyginac.sourceforge.net/>`__. If you are looking for a
3333
basic, small and extensible set of symbolic operations, pymbolic may
3434
well be for you.
3535

3636
Resources:
3737

38-
* `documentation <http://documen.tician.de/pymbolic>`_
39-
* `download <http://pypi.python.org/pypi/pymbolic>`_ (via the package index)
40-
* `source code via git <http://github.com/inducer/pymbolic>`_ (also bug tracker)
38+
* `PyPI package <https://pypi.org/project/pymbolic/>`__
39+
* `Documentation <https://documen.tician.de/pymbolic/>`__
40+
* `Source code (GitHub) <https://github.com/inducer/pymbolic>`__

doc/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ As a final example, we can now derive from *MyMapper* to multiply all
101101
Pymbolic around the web
102102
-----------------------
103103

104-
* `download <http://pypi.python.org/pypi/pymbolic>`_ (via the package index)
105-
* `documentation <http://documen.tician.de/pymbolic>`_
106-
* `source code via git <http://github.com/inducer/pymbolic>`_ (also bug tracker)
104+
* `PyPI package <https://pypi.org/project/pymbolic/>`__
105+
* `Documentation <https://documen.tician.de/pymbolic/>`__
106+
* `Source code (GitHub) <https://github.com/inducer/pymbolic>`__
107107

108108
Contents
109109
--------

doc/misc.rst

+17-17
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@ This command should install :mod:`pymbolic`::
55

66
pip install pymbolic
77

8-
You may need to run this with :command:`sudo`.
9-
If you don't already have `pip <https://pypi.python.org/pypi/pip>`_,
8+
You may need to run this with :command:`sudo` if you are not in a virtual environment
9+
(not recommended). If you don't already have `pip <https://pypi.org/project/pip>`__,
1010
run this beforehand::
1111

12-
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
13-
python get-pip.py
12+
python -m ensurepip
1413

15-
For a more manual installation, download the source, unpack it,
16-
and say::
14+
For a more manual installation, download the source, unpack it, and run::
1715

18-
python setup.py install
16+
pip install .
17+
18+
This should also install all the required dependencies (see ``pyproject.toml``
19+
for a complete list).
20+
21+
For development, you may want to install in `editable mode
22+
<https://setuptools.pypa.io/en/latest/userguide/development_mode.html>`__::
23+
24+
pip install --no-build-isolation --editable .[test]
1925

2026
Why pymbolic when there's already sympy?
2127
========================================
@@ -65,10 +71,10 @@ At any rate, to answer your question, here goes:
6571

6672
This part is a bit of a red herring though, since this can be
6773
implemented for sympy (and, in fact, `I have
68-
<https://github.com/inducer/pymbolic/blob/master/pymbolic/sympy_interface.py#L71>`_).
74+
<https://github.com/inducer/pymbolic/blob/main/pymbolic/interop/sympy.py#L47>`__).
6975
Also, I noticed that sympy's codegen module implements something similar (e.g.
7076
`here
71-
<https://github.com/sympy/sympy/blob/master/sympy/printing/fcode.py#L174>`_).
77+
<https://github.com/sympy/sympy/blob/master/sympy/printing/fortran.py#L70>`__).
7278
The remaining issue is that most of sympy's behaviors aren't available to
7379
extend in this style.
7480

@@ -98,7 +104,7 @@ Version 2015.3
98104
.. note::
99105

100106
This version is currently under development. You can get snapshots from
101-
Pymbolic's `git repository <https://github.com/inducer/pymbolic>`_
107+
Pymbolic's `git repository <https://github.com/inducer/pymbolic>`__
102108

103109
* Add :mod:`pymbolic.geometric_algebra`.
104110
* First documented version.
@@ -133,19 +139,13 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
133139
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
134140
OTHER DEALINGS IN THE SOFTWARE.
135141

136-
Frequently Asked Questions
137-
==========================
138-
139-
The FAQ is maintained collaboratively on the
140-
`Wiki FAQ page <http://wiki.tiker.net/Pymbolic/FrequentlyAskedQuestions>`_.
141-
142142
Glossary
143143
========
144144

145145
.. glossary::
146146

147147
mix-in
148-
See `Wikipedia article <https://en.wikipedia.org/wiki/Mixin>`_.
148+
See `Wikipedia article <https://en.wikipedia.org/wiki/Mixin>`__.
149149

150150
Be sure to mention the mix-in before the base classe being mixed in the
151151
list of base classes. This way, the mix-in can override base class

pymbolic/algorithm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def integer_power(x, n, one=1):
2929
"""Compute :math:`x^n` using only multiplications.
3030
31-
See also the `C2 wiki <http://c2.com/cgi/wiki?IntegerPowerAlgorithm>`_.
31+
See also the `C2 wiki <https://wiki.c2.com/?IntegerPowerAlgorithm>`__.
3232
"""
3333

3434
assert isinstance(n, int)
@@ -60,7 +60,7 @@ def extended_euclidean(q, r):
6060
6161
See also the
6262
`Wikipedia article on the Euclidean algorithm
63-
<https://en.wikipedia.org/wiki/Euclidean_algorithm>`_.
63+
<https://en.wikipedia.org/wiki/Euclidean_algorithm>`__.
6464
"""
6565
import pymbolic.traits as traits
6666

@@ -138,7 +138,7 @@ def fft(x, sign=1,
138138
where :math:`z = \exp(-2i\pi\operatorname{sign}/n)` and ``n == len(x)``.
139139
Works for all positive *n*.
140140
141-
See also `Wikipedia <http://en.wikipedia.org/wiki/Cooley-Tukey_FFT_algorithm>`_.
141+
See also `Wikipedia <https://en.wikipedia.org/wiki/Cooley%E2%80%93Tukey_FFT_algorithm>`__.
142142
"""
143143

144144
# revision 293076305

pymbolic/compiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class CompileMapper(StringifyMapper):
3131
def map_constant(self, expr, enclosing_prec):
3232
# work around numpy bug #1137 (locale-sensitive repr)
33-
# http://projects.scipy.org/numpy/ticket/1137
33+
# https://github.com/numpy/numpy/issues/1735
3434
try:
3535
import numpy
3636
except ImportError:

pymbolic/geometric_algebra/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
__doc__ = """
28-
See `Wikipedia <https://en.wikipedia.org/wiki/Geometric_algebra>`_ for an idea
28+
See `Wikipedia <https://en.wikipedia.org/wiki/Geometric_algebra>`__ for an idea
2929
of what this is.
3030
3131
.. versionadded:: 2013.2
@@ -139,7 +139,7 @@ def permutation_sign(p):
139139
def bit_count(i):
140140
"""Count the number of set bits in *i*."""
141141

142-
# nicked from http://wiki.python.org/moin/BitManipulation
142+
# nicked from https://wiki.python.org/moin/BitManipulation
143143

144144
count = 0
145145
while i:
@@ -408,11 +408,11 @@ class MultiVector:
408408
409409
[DFM] L. Dorst, D. Fontijne, and S. Mann, `Geometric Algebra for Computer
410410
Science: An Object-Oriented Approach to Geometry
411-
<https://books.google.com?isbn=0080553109>`_. Morgan Kaufmann, 2010.
411+
<https://books.google.com?isbn=0080553109>`__. Morgan Kaufmann, 2010.
412412
413413
[HS] D. Hestenes and G. Sobczyk, `Clifford Algebra to Geometric Calculus: A
414414
Unified Language for Mathematics and Physics
415-
<https://books.google.com?isbn=9027725616>`_. Springer, 1987.
415+
<https://books.google.com?isbn=9027725616>`__. Springer, 1987.
416416
417417
The object behaves much like the corresponding :class:`galgebra.mv.Mv`
418418
object in :mod:`galgebra`, especially with respect to the supported

pymbolic/imperative/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_dot_dependency_graph(
4343

4444
# deprecated
4545
use_insn_ids=None,):
46-
"""Return a string in the `dot <http://graphviz.org/>`_ language depicting
46+
"""Return a string in the `dot <https://graphviz.org/>`__ language depicting
4747
dependencies among kernel statements.
4848
4949
:arg statements: A sequence of statements, each of which is stringified by

pymbolic/interop/maxima.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"""
3333

3434
# Inspired by similar code in Sage at:
35-
# http://trac.sagemath.org/sage_trac/browser/sage/interfaces/maxima.py
35+
# https://github.com/sagemath/sage/blob/master/src/sage/interfaces/maxima.py
3636

3737
import re
3838
from sys import intern

pymbolic/mapper/constant_converter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
class ConstantToNumpyConversionMapper(pymbolic.mapper.IdentityMapper):
27-
"""Because of `this numpy bug <https://github.com/numpy/numpy/issues/9438>`_,
27+
"""Because of `this numpy bug <https://github.com/numpy/numpy/issues/9438>`__,
2828
sized :mod:`numpy` number (i.e. ones with definite bit width, such as
2929
:class:`numpy.complex64`) have a low likelihood of surviving expression
3030
construction.

pymbolic/mapper/graphviz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
class GraphvizMapper(WalkMapper):
31-
"""Produces code for `dot <http://graphviz.org>`_ that yields
31+
"""Produces code for `dot <https://graphviz.org>`__ that yields
3232
an expression tree of the traversed expression(s).
3333
3434
.. automethod:: get_dot_code

0 commit comments

Comments
 (0)