Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
339 commits
Select commit Hold shift + click to select a range
1f6aec8
There is no official release of pytest-mock which supports python3.6
stephan-hof Oct 5, 2016
9acbc35
Protect simple (single index) subscript via _getitem_.
stephan-hof Oct 5, 2016
f9138b7
Protect slice subscript via _getitem_.
stephan-hof Oct 5, 2016
03c6d18
Protect extended slice subscript via _getitem_.
stephan-hof Oct 6, 2016
b38ed51
Protect subscript assignment and deletion via _write_.
stephan-hof Oct 7, 2016
1f26049
Protect augmented assignment of variables with _inplacevar_.
stephan-hof Oct 10, 2016
6258f8c
ast.Call has always a 'func'. ast.Name as always an 'id'.
stephan-hof Oct 11, 2016
180f520
Protect *args and **kwargs (if used) with _apply_.
stephan-hof Oct 11, 2016
726b0f0
Minor PEP8 stuff.
stephan-hof Oct 11, 2016
91e714e
Refactor check_name into a separate method.
stephan-hof Oct 13, 2016
3df01a8
Check the names of function parameters.
stephan-hof Oct 13, 2016
f3be5c5
Support nested checks on 'tuple parameter unpacking'.
stephan-hof Oct 17, 2016
b7b1ba8
Protect 'tuple parameter unpacking' with _getiter_.
stephan-hof Oct 17, 2016
4e8ee6a
Make each temporary variable unique for the entire module.
stephan-hof Oct 18, 2016
d12194a
fix some print functions
loechel Oct 18, 2016
22757ee
started to update changes.txt
loechel Oct 18, 2016
ad7f126
added name
loechel Oct 18, 2016
c944d40
fix syntax for future import
oz123 Oct 22, 2016
4ed102e
pytest settings
loechel Oct 22, 2016
b1bb55e
exclude tests/fixtures
oz123 Oct 22, 2016
19b2f99
add tests for python 3
oz123 Oct 22, 2016
74a78c9
WIP - updates for Python 3
oz123 Oct 22, 2016
31bf2ae
Rewrite the mechanism of tuple parameter unpacking.
stephan-hof Oct 23, 2016
4c2b2d4
Check parameter names of lambda functions.
stephan-hof Oct 23, 2016
652c7d9
Protect 'tuple parameter unpacking' on lambda functions.
stephan-hof Oct 23, 2016
c30bd6e
Document more failures with Python3
oz123 Oct 23, 2016
207ca3e
Merge remote-tracking branch 'upstream/Python3_update' into Python3_u…
oz123 Oct 23, 2016
dac38ad
Merge pull request #1 from oz123/Python3_update
oz123 Oct 23, 2016
01598c5
Revert "Python3 update"
Oct 25, 2016
f52ab42
Merge pull request #2 from zopefoundation/revert-1-Python3_update
Oct 25, 2016
bab7e27
Use tox for the tests on Travis. (#3)
Oct 25, 2016
73cbf69
Try to use coveralls to get information about coverage evolvement.
Oct 25, 2016
e6ac70a
Try to run coveralls again.
Oct 25, 2016
746045b
Protect tuple assignments with '_getiter_'.
stephan-hof Oct 25, 2016
7ec26fa
Debug why there ist no coverage data.
Oct 25, 2016
33a3e2a
Allow try..except..finally in the new transformer.py
stephan-hof Oct 26, 2016
1bfa3c0
Protect tuple unpacking on exception handlers.
stephan-hof Oct 27, 2016
8ae35e7
Try to specify the path to the file generated by coverage.
Oct 28, 2016
f2b3bdc
coveralls expects the coverage result file in .coverage
Oct 28, 2016
a21797e
Merge branch 'Python3_update' into try-out-coveralls
loechel Nov 5, 2016
f2b1aa3
Merge pull request #4 from zopefoundation/try-out-coveralls
loechel Nov 7, 2016
59350b2
Check for invalid import names.
stephan-hof Oct 28, 2016
59e3258
It is so tiersome writing 'compile_restricted_exec' all the time.
stephan-hof Oct 28, 2016
f41bf71
Check class names.
stephan-hof Nov 2, 2016
6ea4f24
Rewrite the 'unpack sequence' protection.
stephan-hof Nov 2, 2016
5281ecb
Enhance the unittest.
stephan-hof Nov 2, 2016
537cba1
Add a unittest for unpack sequence with starred elements.
stephan-hof Nov 2, 2016
80c9f6e
Protect sequence unpacking on for loops (+ comprehensions).
stephan-hof Nov 2, 2016
8e4c468
Use correct order for imports.
stephan-hof Nov 8, 2016
eba32f6
PEP8 PEP257 compliance.
stephan-hof Nov 8, 2016
ff7dcda
Refactor out a method for the import checks.
stephan-hof Nov 9, 2016
8932611
Add more comments how protection of 'sequence unpacking' works.
stephan-hof Nov 9, 2016
deab046
Do not allow access to '__traceback__'.
stephan-hof Nov 9, 2016
f9f2237
There is now a released version of pytest-mock which supports Python …
Nov 18, 2016
cdb2871
Merge pull request #7 from zopefoundation/use-released-pytest-mock
Nov 18, 2016
13073cc
Protect print statement.
stephan-hof Nov 15, 2016
63c6dcb
Protect print function via 'PrintCollector._call_print'.
stephan-hof Nov 15, 2016
775a5b3
Get rid of not useful tests.
stephan-hof Nov 22, 2016
e54d9ef
Add tests for print.
stephan-hof Nov 22, 2016
aa21c35
Add a test for conditional print + print collector.
stephan-hof Nov 24, 2016
a383d8f
Simplify the if construct.
stephan-hof Nov 25, 2016
a88fd0c
Merge pull request #9 from zopefoundation/python3_port_print
stephan-hof Nov 29, 2016
588c5f7
Migrate the nested generator test.
stephan-hof Nov 25, 2016
ee1d514
Migrate test for ternary operator.
stephan-hof Nov 25, 2016
292601d
Refactor out a method having common code for sequence unpacking.
stephan-hof Nov 29, 2016
04457dc
Protect sequence unpacking on with statements.
stephan-hof Nov 29, 2016
1a37c46
Migrate tests for the with statement.
stephan-hof Nov 30, 2016
b4da29b
Separate code quality checks (#8)
Dec 3, 2016
cddc72e
Merge branch 'Python3_update' into python3_migrate_tests_part0
Dec 3, 2016
dac4060
Get rid of wrong docstrings.
stephan-hof Dec 5, 2016
4d01d7e
Migrate 'before_and_after27'.
stephan-hof Dec 5, 2016
171c4c7
Migrate missing tests.
stephan-hof Dec 14, 2016
986eca8
Migrate the tests for guarding functions calls with _apply_.
stephan-hof Dec 14, 2016
c3f5017
Migrate tests for attribute access in function defaults.
stephan-hof Dec 15, 2016
deb434e
Use the 'augmented assignment' tests from the old suite.
stephan-hof Dec 15, 2016
3f8a078
Remove this file, since no more tests are there anymore.
stephan-hof Dec 15, 2016
603f864
update docs to which versions should be supported with source (#13)
loechel Jan 31, 2017
4d98e21
Merge branch 'Python3_update' into python3_migrate_tests_part0
Jan 31, 2017
255047f
Merge pull request #10 from zopefoundation/python3_migrate_tests_part0
Jan 31, 2017
4f89271
Clean up.
Jan 31, 2017
9495403
Py.test 3.0 now works with all supported Python versions.
Jan 31, 2017
cf1485b
Merge pull request #14 from zopefoundation/clean-up-tox-ini
loechel Jan 31, 2017
6df2851
Do the version checks in a central place.
Jan 31, 2017
5addea8
Add an isort environment to apply its rules.
Jan 31, 2017
7dc6e5f
Merge pull request #15 from zopefoundation/central-version-checks
Jan 31, 2017
5e7fdaa
Get rid of the whitelist.
Jan 31, 2017
36fd520
Improve tests.
Jan 31, 2017
f4ac2b5
Incorporate change requests.
Jan 31, 2017
d4bd9d0
Merge pull request #16 from zopefoundation/remove-whitelist
Jan 31, 2017
da3956d
Completely cover `check_name`.
Jan 31, 2017
4f4ce25
Merge pull request #19 from zopefoundation/visit_Name
loechel Feb 1, 2017
4244e83
Python3 docs consolidation (#17)
loechel Feb 1, 2017
2371e05
Clean up the tests. (#20)
Feb 1, 2017
0e3afc5
Remove six (#18)
loechel Feb 1, 2017
f0c15c3
Fix comments for try-except + refactor the tests into parts.
Feb 1, 2017
bd48de9
PEP-257
Feb 1, 2017
a237d6a
Merge pull request #21 from zopefoundation/fix-try-except2
loechel Feb 1, 2017
f5013b2
Transform lambda tests.
Feb 1, 2017
bef0f7f
Transform `def` tests.
Feb 1, 2017
f124cf9
Port weird lambda test.
Feb 1, 2017
116230b
Prevent using mutable objects as default params.
Feb 1, 2017
4084ac7
Merge pull request #22 from zopefoundation/fix-lambda
loechel Feb 1, 2017
d65b787
Merge branch 'Python3_update' into fix-init-args
loechel Feb 1, 2017
64546c7
Merge pull request #23 from zopefoundation/fix-init-args
loechel Feb 1, 2017
e52cf46
Compile now returns a named tuple to ease usage.
Feb 2, 2017
725b3a8
Bring test coverage of `_compile_restricted_mode` to 100 %.
Feb 2, 2017
7f2f163
Refactor tests to take advantage of `CompileResult`.
Feb 2, 2017
a9bcf54
Merge pull request #25 from zopefoundation/compile-result
loechel Feb 2, 2017
02eb02a
Flake8 the code + enable it in the tests.
Feb 2, 2017
f8c6f2c
Merge pull request #26 from zopefoundation/flake8
loechel Feb 3, 2017
6f1b522
begin documenting usage and and upgarde of dependencies, also comment…
loechel Feb 1, 2017
30b0c0c
move update to upgrade
loechel Feb 1, 2017
8306639
update path in base document
loechel Feb 1, 2017
3a88144
added virtualenv elements in gitignore
loechel Feb 1, 2017
49f6f13
add more docs for api
loechel Feb 1, 2017
b6f3088
source code documentation with questions and todos
loechel Feb 1, 2017
ee2449f
add note in notes that it should be transferred and this file should …
loechel Feb 1, 2017
1508854
move parts of update_notes into specific documentation
loechel Feb 1, 2017
030c219
extend doc
loechel Feb 1, 2017
900554b
explain usage more in detail
loechel Feb 1, 2017
b139fe6
document and fix api order
loechel Feb 1, 2017
13ac581
update docs
loechel Feb 1, 2017
c9f66cd
document internals
loechel Feb 1, 2017
02c367a
Clean-up markup and some spellings.
Feb 1, 2017
a1f3a84
change filetype to rst and update read
loechel Feb 2, 2017
addd924
try to integrate docs build in tox pipe
loechel Feb 2, 2017
0778b6e
move txt to rst file
loechel Feb 2, 2017
4bc636c
Build documentation on travis, too.
Feb 2, 2017
d9b0f29
PEP-8
Feb 3, 2017
5e11325
Merge pull request #27 from zopefoundation/usage-doc
loechel Feb 3, 2017
5f1d5f9
Make sure even Python 3 does not allow a bad name in except as.
Feb 3, 2017
4402d00
Flake8 the new tests, too.
Feb 3, 2017
98a3a5a
add a buildstep for docs in tox.ini
loechel Feb 3, 2017
6db1b3b
Merge pull request #30 from zopefoundation/flake8-tests
loechel Feb 3, 2017
081f1af
Remove ported tests. (#29)
Feb 3, 2017
65a27e6
Port AugAssign tests.
Feb 3, 2017
753f726
Port with name test + fix other name tests.
Feb 3, 2017
65e7e19
Split import test into single ones.
Feb 3, 2017
bd6135f
Test relative as-import.
Feb 3, 2017
72dd2fc
Remove file completely ported.
Feb 3, 2017
46f3244
Remove tests needing modules which have been deleted because they whe…
Feb 3, 2017
b708af4
Fix the extension to match with the file which contains the tests.
Feb 3, 2017
94b0a08
Also run the old test in tox and travis.
Feb 3, 2017
f33d112
add Python2 only Expression visit
loechel Feb 3, 2017
137f476
Merge pull request #32 from zopefoundation/port-tests
loechel Feb 3, 2017
20797f6
add a buildstep for docs in tox.ini
loechel Feb 3, 2017
50d7d21
add Python2 only Expression visit
loechel Feb 3, 2017
178faca
fix merge problem
loechel Feb 3, 2017
5370e78
add a buildstep for docs in tox.ini (#31)
loechel Feb 3, 2017
6023850
warnings
loechel Feb 3, 2017
e5cae0a
Add the old RestrictedPython 3 tests to coverage.
Feb 3, 2017
aaabe1c
Fix doc strings again.
Feb 3, 2017
6f4ebc9
Port bad name in dict and set comprehension.
Feb 3, 2017
ea7f250
Port compound with statement.
Feb 3, 2017
0e845d2
fix invalid source code input and test it
loechel Feb 3, 2017
26fea54
Allow `assert` statements.
Feb 3, 2017
ad7c687
Allow comparisons.
Feb 3, 2017
9e1f1f4
Allow control flow statements.
Feb 3, 2017
c370a97
Remove ported test.
Feb 3, 2017
4e46e19
Use higher precision to see if deleting tests might harm the coverage.
Feb 3, 2017
a0de603
Fix comments: There is no ans will be no test_niceParse.py
Feb 3, 2017
ad85fb0
Merge branch 'Python3_update' into ast_doc_warnings
Feb 3, 2017
5c90b8c
implement changes requested by icemac for pull #33
loechel Feb 3, 2017
1967210
Merge branch 'ast_doc_warnings' of github.com:zopefoundation/Restrict…
loechel Feb 3, 2017
b8a55a6
Merge pull request #34 from zopefoundation/port-tests
loechel Feb 3, 2017
117c249
Merge branch 'Python3_update' into ast_doc_warnings
loechel Feb 3, 2017
5637f48
Merge pull request #33 from zopefoundation/ast_doc_warnings
loechel Feb 3, 2017
d5c8787
more docs
loechel Feb 3, 2017
7e5ca7a
Allow more ast nodes. (#35)
Feb 4, 2017
66d9953
well format ast for comparision
loechel Feb 4, 2017
99080eb
roadmap and who to contribut started
loechel Feb 4, 2017
8e16a63
Use more sane mark names.
Feb 4, 2017
ffc4edc
Use the new pytest marks to save some lines of code.
Feb 4, 2017
a06f0dd
more docs
loechel Feb 3, 2017
26e5ed0
well format ast for comparision
loechel Feb 4, 2017
4888ce9
roadmap and who to contribut started
loechel Feb 4, 2017
453962a
Merge branch 'more_docs' of github.com:zopefoundation/RestrictedPytho…
loechel Feb 4, 2017
0bfa2e2
Merge pull request #38 from zopefoundation/clean-up-marks2
loechel Feb 4, 2017
1e402f7
Merge branch 'Python3_update' into more_docs
loechel Feb 4, 2017
edd5682
more docs consolidation
loechel Feb 4, 2017
e2f7b0a
check more invalid inputs
loechel Feb 5, 2017
63ea00b
allow Not Statement in RestrictedPython, needed in AccesControll
loechel Feb 5, 2017
ddda664
add tests for Limits
loechel Feb 6, 2017
980e603
tests in testUtilities btest have already been moved to test_utilities
loechel Feb 6, 2017
f93693c
restructuring tests folder layout and imports for pytest
loechel Feb 7, 2017
7736ab1
correct params for compile_restricted_function according to old API
loechel Feb 7, 2017
2877cc0
consolidate configs
loechel Feb 8, 2017
e048d09
add .eggs/ to git ignore list
loechel Feb 8, 2017
e664e1d
correct Copyright sentance
loechel Feb 9, 2017
1aa3e30
apply requested changes on docs
loechel Feb 21, 2017
3f56aca
more doc und doctests fixtures
loechel Feb 21, 2017
d1ef607
rework doctests in documentation to use .. testcode:: instead of .. d…
loechel Feb 21, 2017
f5910e7
some cleanup for readabitlity of docs
loechel Feb 21, 2017
7788263
better testcode grouping
loechel Feb 21, 2017
c99a908
pytest-html included
loechel Feb 27, 2017
0ba212f
changed to match review and enhancement requests
loechel Feb 28, 2017
2c07317
apply requested changes by @icemac
loechel Mar 2, 2017
93d634b
more todos and inclding @stephan-hof comment on compile params flags …
loechel Mar 2, 2017
d259149
add autodoc to roadmap
loechel Mar 2, 2017
69d7878
start using api doc styles
loechel Mar 2, 2017
70eca19
Merge pull request #39 from zopefoundation/compile_tests
loechel Mar 3, 2017
7afde5a
Merge branch 'Python3_update' into more_docs
loechel Mar 3, 2017
1cad497
Merge pull request #37 from zopefoundation/more_docs
loechel Mar 3, 2017
f525898
'RestrictingNodeTransformer' reports now the used names.
stephan-hof Mar 3, 2017
9ab2d69
Use the ast module to get all the used names.
stephan-hof Feb 28, 2017
95fcf82
Remove not needed code.
stephan-hof Feb 28, 2017
1f20bcf
Port maketrans to python3 and remove other usages of the string module.
stephan-hof Feb 28, 2017
2d0c442
Refactor 'eval'.
stephan-hof Feb 28, 2017
e5817ac
Use 'compile_restricted_eval' from compile.py
stephan-hof Feb 28, 2017
6fcc399
Move the tests for 'Eval.py' to the new tests.
stephan-hof Mar 2, 2017
2f572d2
Make isort and flake8 happy.
stephan-hof Mar 3, 2017
14ee5ed
Merge pull request #43 from zopefoundation/port-eval-py
stephan-hof Mar 6, 2017
155ab98
Undo the changes in the old code to make sure we have the original on…
Mar 14, 2017
7a6a657
Fix the Python-3 variant which was not equivalent to the Python-2 one.
Mar 14, 2017
32b867b
Allow `sets` again.
Mar 14, 2017
30237aa
Fix import errors.
Mar 14, 2017
e0961a8
Clean up code:
Mar 14, 2017
5ba1fed
Merge branch 'Python3_update' into re-add-sets
Mar 27, 2017
d03645b
Fix as suggested by @stephan-hof.
Mar 27, 2017
310bd32
Merge branch 'Python3_update' into fix-full-write-guard
Mar 27, 2017
d83e527
Merge branch 'Python3_update' into undo-changes-in-PR3
Mar 27, 2017
d295875
Merge pull request #48 from zopefoundation/re-add-sets
loechel Mar 27, 2017
d6c641d
Merge branch 'Python3_update' into undo-changes-in-PR3
loechel Mar 27, 2017
a3e9051
Merge pull request #45 from zopefoundation/undo-changes-in-PR3
loechel Mar 27, 2017
1593aca
Merge branch 'Python3_update' into fix-full-write-guard
loechel Mar 27, 2017
b627d8c
Merge pull request #46 from zopefoundation/fix-full-write-guard
loechel Mar 27, 2017
dfe3ea4
More unit tests for higher code coverage and understanding (#50)
loechel May 2, 2017
5e1dbaa
Do not attempt to import builtins on Python 2.7
rbu May 3, 2017
ebd7d06
Merge pull request #52 from zopefoundation/do-not-use-builtins-on-py2
rbu May 3, 2017
4d1b2a2
Slices (#51)
dwt May 3, 2017
a1772d6
Add `slice()` to safe_builtins.
sallner May 3, 2017
7eac358
Merge branch 'Python3_update' into slice_as_safe_builtin
loechel May 3, 2017
2037b76
Merge pull request #53 from zopefoundation/slice_as_safe_builtin
loechel May 3, 2017
d9cc70a
fix some spelling and conventions
loechel May 3, 2017
e14f904
Allow to create new classes with `safe_builtins` activated.
May 3, 2017
2cdce8d
Refactor to improve readability.
sallner May 3, 2017
5c8a319
Merge pull request #55 from zopefoundation/slice_fixes
loechel May 3, 2017
9d602d8
Merge branch 'Python3_update' into py3-allow-class
loechel May 3, 2017
946e379
Merge pull request #56 from zopefoundation/py3-allow-class
loechel May 3, 2017
c183fa3
add PendingDeprecationWarnings
loechel May 4, 2017
ffc46aa
Merge remote-tracking branch 'origin/Python3_update' into class_defin…
sallner May 4, 2017
4942f24
Public API --> RestrictionCapableEval added after resolved problem of…
loechel May 4, 2017
a3cc1ad
Add documentation on necessary setup in case AccessControl is not used.
sallner May 4, 2017
4f60606
Allow class definitions and support decorators, bases and global __me…
sallner May 4, 2017
d4a939d
Merge pull request #58 from zopefoundation/DepricationWarnings
dwt May 4, 2017
6ce4c5a
Merge branch 'Python3_update' into class_definitions
sallner May 4, 2017
f843967
Merge pull request #59 from zopefoundation/class_definitions
loechel May 4, 2017
7870aa2
Deleting an attribute has to be guarded, too.
May 5, 2017
e4754d5
Merge branch 'master' into Python3_update
May 5, 2017
3390db5
Implement compile_restricted_function (#57)
loechel May 5, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[run]
branch = True
source = RestrictedPython
omit =
# Tests are classically not part of source code
# and should not be calculated into coverage sum
# on the other hand, the coverage tools do a handy job on highlighting
# code branches and tests that that did not get executed.
# Therefore we include tests into coverage analysis for the moment.
#tests/*.py
#src/RestrictedPython/tests
#src/RestrictedPython/tests/*.py

[report]
precision = 3
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[*]
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.{py,cfg}]
indent_size = 4

[Makefile]
indent_style = tab
47 changes: 34 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
*.egg-info
*.py?
.installed.cfg
.mr.developer.cfg
bin/
build/
develop/
develop-eggs/
dist/
eggs/
include/
lib/
parts/
*.mo
*.py[cod]
.coverage*
pip-selfcheck.json
pyvenv.cfg
/.python-version
/*.egg-info
/.eggs/
/.Python
/.cache
/.installed.cfg
/.mr.developer.cfg
/.project
/.pydevproject
/.tox
/bin
/build
/develop-eggs
/dist
/downloads
/eggs
/fake-eggs
/htmlcov
/report-*.html
/include
/lib
/share
/local.cfg
/parts
/src/*.egg-info
/var
coverage.xml
docs/doctrees
docs/html
25 changes: 22 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@ language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy-5.4
env:
- ENVIRON=py
- ENVIRON=py27-rp3,py27-datetime,py36-datetime
- ENVIRON=isort,flake8,docs
matrix:
exclude:
- env: ENVIRON=isort,flake8,docs
- env: ENVIRON=py27-rp3,py27-datetime,py36-datetime
include:
- python: "3.6"
env: ENVIRON=py36-datetime,isort,flake8,docs
- python: "2.7"
env: ENVIRON=py27-rp3,py27-datetime
install:
- python bootstrap.py
- bin/buildout
- pip install tox coveralls coverage
script:
- bin/test
- tox -e $ENVIRON
after_success:
- coverage combine
- coveralls
notifications:
email: false
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
================
RestrictedPython
================

RestrictedPython is a defined subset of the Python language which allows to provide a program input into a trusted environment.

For full documentation please see http://restrictedpython.readthedocs.io/en/python3_update/ or local docs/index.
1 change: 0 additions & 1 deletion README.txt

This file was deleted.

4 changes: 2 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
parser.add_option("-t", "--accept-buildout-test-releases",
dest='accept_buildout_test_releases',
action="store_true", default=False,
help=("Normally, if you do not specify a --version, the "
"bootstrap script and buildout gets the newest "
help=("Normally, if you do not specify a --buildout-version, "
"the bootstrap script and buildout gets the newest "
"*final* versions of zc.buildout and its recipes and "
"extensions for you. If you use this flag, "
"bootstrap and buildout will get the newest releases "
Expand Down
57 changes: 54 additions & 3 deletions buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,63 @@
[buildout]
develop = .
parts = interpreter test
parts =
code-analysis
githook
interpreter
test
pytest
tox
sphinx
isort

versions = versions

[interpreter]
recipe = zc.recipe.egg
interpreter = python
eggs = RestrictedPython
interpreter = tpython
eggs = RestrictedPython[test,develop,docs]

[test]
recipe = zc.recipe.testrunner
eggs = RestrictedPython

[pytest]
recipe = zc.recipe.egg
eggs =
pytest
pytest-flake8
pytest-isort
RestrictedPython
tox

[tox]
recipe = zc.recipe.egg
eggs =
tox

[sphinx]
recipe = zc.recipe.egg
eggs =
Sphinx

[isort]
recipe = zc.recipe.egg
eggs =
isort

[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/
flake8 = False
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
flake8-max-complexity = 15

[githook]
recipe = plone.recipe.command
command =
#echo "\nbin/pytest" >> .git/hooks/pre-commit
echo "\nbin/tox" >> .git/hooks/pre-commit
cat .git/hooks/pre-commit

[versions]
pycodestyle = 2.2.0
13 changes: 10 additions & 3 deletions CHANGES.txt → docs/CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
Changes
=======

3.7.0a1 (unreleased)
--------------------
4.0.0 (unreleased)
------------------

- Mostly complete rewrite based on Python AST module.
[loechel (Alexander Loechel), icemac (Michael Howitz), stephan-hof (Stephan Hofmockel), tlotze (Thomas Lotze)]

- switch to pytest

- The ``compile_restricted*`` functions now return a
``namedtuple CompileResult`` instead of a simple ``tuple``.

- TBD

3.6.0 (2010-07-09)
------------------
Expand Down
Loading