Skip to content

Update python-parser's cpython dependency #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 27, 2016
Merged

Update python-parser's cpython dependency #38

merged 6 commits into from
Jul 27, 2016

Conversation

ihrwein
Copy link
Contributor

@ihrwein ihrwein commented Jul 25, 2016

We used a forked version of rust-cpython (0.5) with some custom functions. rust-cpython (0.6) is still not released, but it contains several improvements compared to 0.5.

I have an open PR in the upstream rust-cpython repository: dgrunwald/rust-cpython#53

Once it is merged, we can update the master branch in my forked repository (https://github.com/ihrwein/rust-cpython) and use it for building this parser.


This PR does the following things:

  • updates the rust-cpython dependency
  • fixes the introduced breaking changes
  • runs rustfmt on the source code.

This change is Reviewable

Tibor Benke added 5 commits July 25, 2016 08:49
1. py_fn! needs a Python token
2. py_class! is preferred way to wrap Rust types into Python objects
 * if we need to modify the wrapped object, we have to put it inside a
   RefCell
 * for the details, see the docs: http://dgrunwald.github.io/rust-cpython/doc/cpython/macro.py_class!.html

Signed-off-by: Tibor Benke <[email protected]>
Signed-off-by: Tibor Benke <[email protected]>
Signed-off-by: Noémi Ványi <[email protected]>
rustfmt searches recursively for this file, so we can use the same
configuration file for all Rust modules.

Signed-off-by: Tibor Benke <[email protected]>
Signed-off-by: Tibor Benke <[email protected]>
@ihrwein ihrwein self-assigned this Jul 25, 2016
@ihrwein
Copy link
Contributor Author

ihrwein commented Jul 25, 2016

@kvch Could you review this PR? Thanks! :)

@ihrwein ihrwein removed their assignment Jul 25, 2016
@ihrwein
Copy link
Contributor Author

ihrwein commented Jul 25, 2016

I bumped the version (I like to bump it every time in the last commit of a PR according to the rules of semantic versioning. Unfortunately, I tend to forget these bumps 😢 )

@kvch kvch merged commit 98fa0f4 into master Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants