-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using pyproject.toml without setup.cfg, updated README, cleanup
- Loading branch information
Showing
6 changed files
with
63 additions
and
105 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ ASTEVAL | |
:target: https://zenodo.org/badge/latestdoi/4185/newville/asteval | ||
|
||
|
||
|
||
Links | ||
----- | ||
|
||
|
@@ -38,8 +37,20 @@ Links | |
* Development Code: https://github.com/lmfit/asteval | ||
* Issue Tracker: https://github.com/lmfit/asteval/issues | ||
|
||
What is it? | ||
----------- | ||
Installation | ||
---------- | ||
|
||
To install the asteval module, use:: | ||
pip install asteval | ||
|
||
or download and unack the source package and use | ||
pip install . | ||
|
||
Asteval require Python 3.8 or higher. If installed, many functions and | ||
constants from numpy will be used by default. | ||
|
||
About ASTEVAL | ||
-------------- | ||
|
||
ASTEVAL is a safe(ish) evaluator of Python expressions and statements, | ||
using Python's ast module. The idea is to provide a simple, safe, and | ||
|
@@ -67,9 +78,13 @@ the most important differences and absences are: | |
1. Variable and function symbol names are held in a simple symbol | ||
table (a single dictionary), giving a flat namespace. | ||
2. creating classes is not supported. | ||
3. importing modules is not supported. | ||
3. importing modules is not supported by default - it can be enabled. | ||
4. function decorators, yield, lambda, exec, and eval are not supported. | ||
5. files can only be opened in read-only mode. | ||
|
||
In addition, accessing many internal methods and classes of objects is | ||
forbidden in order to strengthen asteval against malicious user code. | ||
|
||
|
||
Matt Newville <[email protected]> | ||
Last Update: 30-June-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,47 @@ build-backend = "setuptools.build_meta" | |
[tool.setuptools_scm] | ||
write_to = "asteval/version.py" | ||
version_scheme = "post-release" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["asteval"] | ||
|
||
[tool.coverage.run] | ||
omit = ["tests/*"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov=asteval --cov-report html" | ||
|
||
[project] | ||
name = "asteval" | ||
dynamic = ["version"] | ||
requires-python = ">= 3.8" | ||
description = "Safe, minimalistic evaluator of python expression using ast module" | ||
readme = "README.rst" | ||
authors = [ | ||
{name = "Matthew Newville", email = "[email protected]"} | ||
] | ||
license = {file = "LICENSE"} | ||
keywords = ["AST", "expression evaluation", "eval"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
|
||
[project.url] | ||
Homepage = " https://github.com/lmfit/asteval" | ||
Documentation = "https://lmfit.github.io/asteval/" | ||
Tracker = "https://github.com/lmfit/asteval/issues" | ||
|
||
[project.optional-dependencies] | ||
dev = ["build", "twine"] | ||
doc = ["Sphinx"] | ||
test = ["pytest", "pytest-cov", "coverage"] | ||
all = ["asteval[dev, doc, test]"] |
This file was deleted.
Oops, something went wrong.