tilezen / mapbox-vector-tile

Python package for encoding & decoding Mapbox Vector Tiles
MIT License
240 stars 47 forks source link

Updates of the repository #114

Closed benoit9126 closed 1 year ago

benoit9126 commented 2 years ago

Hi,

Here is a large proposal to update this Python package. It contains

  1. ~The drop of Python 2 support~ #115
  2. ~A more recent generation of the protobuf Python code to solve #113 ~ #119
  3. ~The usage of GitHub actions~ #116
  4. The usage of Poetry with a pyproject.toml
  5. ~The usage of pre-commit (black, isort, flake8, etc)~ #121
  6. ~The usage of tox for the tests.~ #116
vincentsarago commented 2 years ago

@benoit9126 I'm not the repo owner or maintainer but IMO you should split this PR in multiple small PR and first discuss change in issue (e.g usage of poetry), it might ease the reviewer and increase the likelihood of the fix to be merged :-)

benoit9126 commented 2 years ago

Ok. Do you have a priority order among the points listed above?

rmarianski commented 1 year ago

Ok. Do you have a priority order among the points listed above?

my 2c is dropping python2 support and protobuf generation are higher priority.

benoit9126 commented 1 year ago

@rmarianski : The next possible steps would be:

  1. A more recent generation of the protobuf Python code to solve #113
  2. The usage of Poetry with a pyproject.toml
  3. The usage of pre-commit (black, isort, flake8, etc)

I start to implement the first which is the most important for me. If the community aggrees with the two other proposals, I can provide them too.

benoit9126 commented 1 year ago
  1. I also note that there are some troubles between the round function of Python 2 and 3 that forces you to use quantize and to pass a round function in some operators (encode for instance). As now, only Python 3 is supported, we could remove this argument round_fn and just use the round function.
benoit9126 commented 1 year ago

@rmarianski I close this PR as everything was added in other PR.