mike820324 / microProxy

A http/https interceptor written in pure python.
MIT License
17 stars 3 forks source link

[Proposal]: context for replay contains microProxy version #203

Closed chhsiao90 closed 7 years ago

chhsiao90 commented 7 years ago

I think ViewerContext that would used by replay need version field. So that microProxy could do replay with elder version of replay script.

mike820324 commented 7 years ago

Make sense.

chhsiao90 commented 7 years ago

The version of ViewerContext will depends on version.py But I found that current version is VERSION="0.4.0+dev" Could you explain how you plan for the version iteration? That I could plan how to do the ViewerContext compatibility through different versions. Thanks

mike820324 commented 7 years ago

well when the tag point is tagged, the VERSION will change into current release version plus the "+dev" string. But if we release to the pypi, the pypi version will never have the +dev tag.

This is how the h11 version works, https://github.com/njsmith/h11/blob/master/h11/_version.py, which based on his comment, is following the pep 440.

But the version naming scheme can still be changed, since before 0.4.0, we haven't use it that often.