Page MenuHomeFreeBSD

textproc/py-parso: Python Parser
ClosedPublic

Authored by ultima on Dec 11 2017, 7:39 AM.

Details

Summary

Parso is a Python parser that supports error recovery and round-trip
parsing for different Python versions (in multiple Python versions).
Parso is also able to list multiple syntax errors in your python file.

Parso has been battle-tested by jedi. It was pulled out of jedi to be
useful for other projects as well.

Parso consists of a small API to parse Python and analyse the syntax tree.

WWW: https://github.com/davidhalter/parso

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ultima created this revision.Dec 11 2017, 7:39 AM
koobs accepted this revision.Dec 11 2017, 11:12 AM
koobs added a subscriber: koobs.

LGTM.

Ideally add TEST_DEPENDS (pytest) and test (do-test) target to make running test suite for QA easy.

Dont use tox, just: cd ${WRKSRC} && ${PYTHON_CMD} -m pytest test, cd ${WRKSRC} && pytest-${PYTHON_VER} test or similar

This revision is now accepted and ready to land.Dec 11 2017, 11:12 AM
sunpoet added inline comments.
textproc/py-parso/Makefile
17 ↗(On Diff #36440)

Please sort USE_PYTHON.

19–20 ↗(On Diff #36440)

Why not use CHEESESHOP as MASTER_SITES?

mat added inline comments.Dec 11 2017, 2:07 PM
textproc/py-parso/Makefile
17 ↗(On Diff #36440)

Please don't, "distutils autoplist" is the logical way, autoplist needs distutils.

This revision was automatically updated to reflect the committed changes.
ultima marked 3 inline comments as done.EditedDec 11 2017, 8:11 PM

LGTM.

Ideally add TEST_DEPENDS (pytest) and test (do-test) target to make running test suite for QA easy.

Dont use tox, just: cd ${WRKSRC} && ${PYTHON_CMD} -m pytest test, cd ${WRKSRC} && pytest-${PYTHON_VER} test or similar

Added with pytest-cache as well in depends

Committed, if you see anything else let me know. Thanks =]