Commit e52a0525 authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'pu3-use-internal-pip' into 'master'

Use internal pip for python3.

See merge request !63
parents dc1bc8c9 8236e0e4
Pipeline #27507 passed with stages
in 3 minutes and 34 seconds
# Python modules
import logging
import os
import shutil
......@@ -55,8 +57,8 @@ def check_destination(self, dest, url, rev_options, rev_display):
return checkout
def unpack(self, location):
def unpack(self, location, url):
"""
monkey patch pip library cause they always remove downloaded dir. no idea why
"""
self.obtain(location)
self.obtain(location, url=url)
......@@ -40,3 +40,20 @@ class OrderedDictYAMLLoader(yaml.Loader):
value = self.construct_object(value_node, deep=deep)
mapping[key] = value
return mapping
def ordered_load(stream, Loader=yaml.Loader, object_pairs_hook=OrderedDict):
"""
For Python 3.7+ only
"""
class OrderedLoader(Loader):
pass
def construct_mapping(loader, node):
loader.flatten_mapping(node)
return object_pairs_hook(loader.construct_pairs(node))
OrderedLoader.add_constructor(
yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
construct_mapping)
return yaml.load(stream, OrderedLoader)
from builtins import object
# Third-party modules
from peewee import Model, CharField, TextField
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, BooleanField
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, BooleanField
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, TextField
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, TextField
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, TextField, ForeignKeyField
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, TextField, ForeignKeyField
......
from builtins import object
# Third-party modules
from peewee import (Model, CharField, TextField, ForeignKeyField,
DateTimeField, BooleanField, IntegerField)
......
from builtins import object
# Third-party modules
from peewee import Model, CharField, IntegerField, ForeignKeyField
......
from builtins import object
# Third-party modules
from peewee import (Model, CharField, TextField, ForeignKeyField,
DateTimeField, BooleanField)
......
from builtins import object
# Third-party modules
from peewee import (Model, CharField, ForeignKeyField,
BooleanField)
......
from builtins import object
# Third-party modules
from peewee import (Model, CharField, ForeignKeyField,
BooleanField)
......
# Third-party modules
from peewee import TextField
......
# Third-party modules
from peewee import TextField
......
# Third-party modules
from peewee import CharField
......
# Third-party modules
from peewee import CharField, BooleanField
......
# Third-party modules
from peewee import CharField
......
from peewee import CharField
def migrate(migrator):
migrator.add_column(
"environment",
"metrics_collector",
CharField(default="")
)
# Third-party modules
from peewee import CharField
def migrate(migrator):
migrator.add_column(
"environment",
"metrics_collector",
CharField(default="")
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment