File: installation.rst

package info (click to toggle)
python-asteval 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 296 kB
  • sloc: python: 2,606; makefile: 53
file content (69 lines) | stat: -rw-r--r-- 2,334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
====================================
Installing Asteval
====================================

.. _numpy: https://numpy.org/
.. _numpy_financial: https://numpy.org/numpy-financial/
.. _github:  https://github.com/lmfit/asteval
.. _PyPI:  https://pypi.org/project/asteval/

Requirements
~~~~~~~~~~~~~~~

Asteval is a pure Python module. The latest stable version is |release|, which
supports Python 3.9 through 3.13.

Installing `asteval` requires `setuptools` and `setuptools_scm`. No other
libraries outside of the standard library are required.  If `numpy`_ and
`numpy_financial`_ are available, `asteval` will make use of these libraries.
Running the test suite requires the `pytest`, `coverage`, and `pytest-cov`
modules, deployment uses `build` and `twine`, and building the documentation
requires `sphinx`.

Python 3.9 through 3.13 are tested on Windows, MacOS, and Linux, with
and without `numpy`_ installed.  Older Python versions have generally
been supported by `asteval` until they are well past the end of
security fixes. While `asteval` may continue to work with Python 3.8
or even 3.7, these are not supported.


Support for new versions of the Python 3 series is not guaranteed until some
time after the official release of that version, as we may not start testing
until late in the "beta" period of development.  Historically, the delay has
not been too long, though `asteval` may not support newly introduced language
features.


Installing with `pip`
~~~~~~~~~~~~~~~~~~~~~~~~~~~

The latest stable version of `asteval` is |release| and is available at
`PyPI`_ or as a conda package.  You should be able to install `asteval`
with::

   pip install asteval

It may also be available on some conda channels, including `conda-forge`,
but as it is a pure Python package with no dependencies or OS-specific
extensions, using `pip` should be the preferred method on all platforms and
environments.

Development Version
~~~~~~~~~~~~~~~~~~~~~~~~

The latest development version can be found at the `github`_ repository, and cloned with::

    git clone https://github.com/lmfit/asteval.git


Installation from the source tree on any platform is can then be done with::

   pip install .

License
~~~~~~~~~~~~~

The `asteval` code and documentation is distribution under the following
license:

.. literalinclude:: ../LICENSE