-
Notifications
You must be signed in to change notification settings - Fork 727
Piper/python3 support #357
Piper/python3 support #357
Conversation
Depends on ethereum/serpent#102 |
hi @pipermerriam thank you for this effort. |
@heikoheiko I'm working on getting a fully passing test suite first. Then I'll deal with any performance problems. |
|
@@ -3,4 +3,4 @@ coveralls | |||
pytest>=2.9.0 | |||
pytest-catchlog==1.2.2 | |||
pytest-timeout==1.0.0 | |||
https://github.com/ethereum/serpent/tarball/develop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should NOT be merged. This is just here to get the python3 tests running until I can get ethereum/serpent#102 merged.
ethereum/solidity#651 is causing some of the current test failures within the |
@heikoheiko here is some profiling data from the https://gist.github.com/pipermerriam/3d12e18097c0d6be72956bd19a24eac7 |
Alrighty! The CI failures are all related to ethereum/solidity#651. This is ready for review and theoretically merging if people are ok with it. This depends on ethereum/serpent#102 being reviewed and merged. Alternatively I can remove the code that references my fork/branch which will cause CI to start failing in more places but will allow this to be merged independently. |
011f315
to
6361eb4
Compare
6361eb4
to
65ee002
Compare
ok, All of the test failures are related to the solidity stdin bug (see ethereum/solidity#651). You can view these under the travis run for d3e61e1 which can be found https://travis-ci.org/ethereum/pyethereum/builds/138391919 (note this commit was rebased away but you can still see the test run) I've just pushed 49e570f which reverts the
Soliciting feedback on this plan and hoping to move it forward in a timely fashion. |
23e7471
to
1ad21be
Compare
Benchmark Data
|
Thank you. Looks way better than what I expected. |
udpf = self.config['UNCLE_DEPTH_PENALTY_FACTOR'] | ||
un = uncle.number | ||
bn = self.number | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those assignments (except uncle.number
) could probably be pulled out of the loop (assuming self.delta_balance()
doesn't modify self.number
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Fixed
Looks very good to me (apart from the minor nit picks above). One thing I would like to change a bit is the travis and tox configuration. There are a few reasons for doing it this way:
|
@ulope I've tried to adapt your examples in a manner that tries to maximize the ability to use tox to runt he tests locally and on travis while still getting full coverage reports. See 5ca58a6 I'm still probably gonna have to futz with it a bit to get it running smoothly but I'd be curious to get your feedback on whether this is inline with what you were thinking. |
474952f
to
2c16c37
Compare
@ulope I actually undid the |
4f67ea8
to
818a91d
Compare
Additional benchmark results from
|
@pipermerriam Yeah, ok in that case we don't have a choice. Bummer. Regarding the tox/travis config, I don't think it's critical to this PR. If it works ok just leave it for now and then we can have another look and possibly optimize it later. |
thanks @pipermerriam! |
There is sort of a deadlock for getting py3 support between `ethereum/pyethereum` and `ethereum/serpent`, due to a circular test dependency. In order to break the circle, this can be used to create a release, which in turn can be used by `serpent`s build. see #357
There is sort of a deadlock for getting py3 support between `ethereum/pyethereum` and `ethereum/serpent`, due to a circular test dependency. In order to break the circle, this can be used to create a release, which in turn can be used by `serpent`s build. see #357
#132
What was wrong?
This project did not support python3
How was it fixed.
2.7
,3.4
and3.5
//
b
to make them byte strings.Cute animal picture