The NetBSD Project

CVS log for pkgsrc/math/py-simpleeval/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / math / py-simpleeval

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 1 10:56:24 2023 UTC (9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, HEAD
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

py-simpleeval: updated to 0.9.13

0.9.13

Better handling of empty strings passed as input.
Fix the shift safe number issue from 0.9.12
More minor pylint / etc fixes / cleanups (general code quality)
separate .parse
Allow setting up completely empty {} operators / functions
Add extra bit-ops
Add @daxamin to contributors ?
Version bump stuff.
other readme tweaks
star expressions, eg x = {"a": 1, "b": 2, **c}

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 23 19:13:16 2022 UTC (22 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.12: +2 -5 lines
Diff to previous 1.12 (colored)

py-simpleeval: updated to 0.9.12

0.9.12
KInd of hoping this is the last 0.9 release, and I find time to stablize as 1.0, and start the 2.0 work some time soon...

Changelog:

Remove Cyclic references (memory leak)
Add left & right shift operations (<< and >>)
Switch to GH actions & CodeCov.io for CI tests
Add extra contributors details
Reformat w/ Black + isort, and have linting of those in CI

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 4 20:54:17 2022 UTC (22 months, 4 weeks ago) by wiz
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 23 09:01:47 2021 UTC (2 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

py-simpleeval: updated to 0.9.11

0.9.11:
Revert / convert to setup.py-less build system using pypa build

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 3 12:17:37 2020 UTC (3 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

py-simpleeval: updated to 0.9.10

0.9.10:
Unknown changes

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 14 10:26:59 2018 UTC (5 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

py-simpleeval: updated to 0.9.8

0.9.8:
Unknown changes

Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 14 07:33:33 2018 UTC (5 years, 3 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

py-simpleeval: updated to 0.9.6

0.9.6:
Unknown changes.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 11 07:10:47 2017 UTC (6 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Changes since 1.6: +3 -5 lines
Diff to previous 1.6 (colored)

py-simpleeval: update to 0.9.5

0.9.5:
Python 3 compatibility.
Bug fixes.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 30 22:32:19 2017 UTC (6 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Switch github HOMEPAGEs to https.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jan 1 14:43:46 2017 UTC (6 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Add python-3.6 to incompatible versions.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 9 13:03:55 2016 UTC (7 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Remove python33: adapt all packages that refer to it.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 8 17:43:36 2016 UTC (7 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Switch to MASTER_SITES_PYPI.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 5 21:25:49 2015 UTC (8 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Extend PYTHON_VERSIONS_INCOMPATIBLE to 35

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 25 05:05:39 2015 UTC (8 years, 3 months ago) by richard
Branch: MAIN
CVS Tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3

Add py-simpleeval
A quick single-file MIT-Licenced library for easily adding evaluatable
expressions into python projects. Say you want to allow a user to set an alarm
volume, which could depend on the time of day, alarm level, how many previous
alarms had gone off, and if there is music playing at the time.

Or if you want to allow simple formulae in a web application, but don't want
to give full eval() access, or don't want to run in javascript on the client side.

It's deliberately very simple, just a single file you can dump into a project,
or import from pypi (pip or easy_install).

Internally, it's using the amazing python ast module to parse the expression,
which allows very fine control of what is and isn't allowed. It should be
completely safe in terms of what operations can be performed by the expression.

The only issue I know to be aware of is that you can create an expression which
takes a long time to evaluate, or which evaluating requires an awful lot of
memory, which leaves the potential for DOS attacks. There is basic protection
against this, and you can lock it down further if you desire.

You should be aware of this when deploying in a public setting.

The defaults are pretty locked down and basic, and it's very easy to add whatever
extra specific functionality you need (your own functions, variable/name lookup, etc).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>