[3party] Update protobuf to v4.23.4 #15

Merged
root merged 1 commit from 3party/protobuf into master 2023-08-21 13:44:37 +00:00
5 changed files with 59 additions and 1101 deletions

1
README
View file

@ -1 +0,0 @@
Kothic Mapcss parser/processor tailored for Organic Maps use.

9
README.md Normal file
View file

@ -0,0 +1,9 @@
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
Kothic Mapcss parser/processor tailored for Organic Maps use.
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
Dependencies:
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
* Python >= 3.8
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
Python dependencies:
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
```bash
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
pip3 install -r requirements.txt
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8
```
Review

Please mention it requires Python >= 3.8

Please mention it requires Python >= 3.8

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
Review
protobuf~=4.23.0

We're going to have at least minor updates, right?

```suggestion protobuf~=4.23.0 ``` We're going to have at least minor updates, right?
Review
protobuf~=4.23.0

We're going to have at least minor updates, right?

```suggestion protobuf~=4.23.0 ``` We're going to have at least minor updates, right?
protobuf~=4.23.0
Review
protobuf~=4.23.0

We're going to have at least minor updates, right?

```suggestion protobuf~=4.23.0 ``` We're going to have at least minor updates, right?

File diff suppressed because it is too large Load diff

View file

@ -2,11 +2,11 @@ from mapcss import MapCSS
from optparse import OptionParser
import os
import csv
import sys
import functools
from multiprocessing import Pool, set_start_method
from collections import OrderedDict
import mapcss.webcolors
from drules_struct_pb2 import *
whatever_to_hex = mapcss.webcolors.webcolors.whatever_to_hex
whatever_to_cairo = mapcss.webcolors.webcolors.whatever_to_cairo
@ -14,17 +14,6 @@ whatever_to_cairo = mapcss.webcolors.webcolors.whatever_to_cairo
PROFILE = False
MULTIPROCESSING = True
# If path to the protobuf EGG is specified then apply it before import drules_struct_pb2
PROTOBUF_EGG_PATH = os.environ.get("PROTOBUF_EGG_PATH")
if PROTOBUF_EGG_PATH:
# another version of protobuf may be installed, override it
for i in range(len(sys.path)):
if -1 != sys.path[i].find("protobuf-"):
sys.path[i] = PROTOBUF_EGG_PATH
sys.path.append(PROTOBUF_EGG_PATH)
from drules_struct_pb2 import *
WIDTH_SCALE = 1.0
# z-index values defined in mapcss files are first