Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Plugin Factory Plugin Factory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • plugins
  • Plugin FactoryPlugin Factory
  • Merge requests
  • !6

Release 3.0.25

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Muhammad Bilal requested to merge uat into main 2 years ago
  • Overview 0
  • Commits 8
  • Pipelines 2
  • Changes 4
Compare
  • version 1
    c4bbc2cf
    2 years ago

  • main (base)

and
  • latest version
    fdeefa60
    8 commits, 2 years ago

  • version 1
    c4bbc2cf
    7 commits, 2 years ago

4 files
+ 23
- 31

    Preferences

    File browser
    Compare changes
plugin_‎factory‎
plug‎in.py‎ +4 -13
sche‎ma.py‎ +0 -12
.gitlab‎-ci.yml‎ +18 -5
setu‎p.cfg‎ +1 -1
plugin_factory/plugin.py
+ 4
- 13
  • View file @ fdeefa60

  • Edit in single-file editor

  • Open in Web IDE


import random
from typing import Any, Dict, List
from pymemri.plugin.pluginbase import PluginBase
from pymemri.data.schema import Message, OauthFlow
from pymemri.gitlab_api import GitlabAPI
from pymemri.data.itembase import Item, Edge
from pymemri.data.schema import Message, EmailMessage
from pymemri.data.oauth import OauthFlow
# from .schema import CategoricalPrediction
# from .schema import Model as ModelItem
from pymemri.plugin.pluginbase import PluginBase
class FactoryPlugin(PluginBase):
@@ -17,13 +9,13 @@ class FactoryPlugin(PluginBase):
def __init__(
self,
repo: str =None,
repo: str = None,
template_url: str = None,
**kwargs,
):
super().__init__(**kwargs)
assert repo is not None
self.repo=repo
self.repo = repo
self.template_url = template_url
def add_to_schema(self):
@@ -35,4 +27,3 @@ class FactoryPlugin(PluginBase):
api.create_repo(self.repo)
api.create_new_project(self.repo, user, template_url=self.template_url)
print("Done")
plugin_factory/schema.py deleted 100644 → 0
+ 0
- 12
  • View file @ 9d570106

from typing import Optional
from pymemri.data.itembase import Item
class Model(Item):
properties = Item.properties + ["name", "version"]
def __init__(self, name: str = None, version: str = None, **kwargs):
super().__init__(**kwargs)
# Properties
self.name: str = name
self.version: str = version
\ No newline at end of file
.gitlab-ci.yml
+ 18
- 5
  • View file @ fdeefa60

  • Edit in single-file editor

  • Open in Web IDE


@@ -34,11 +34,7 @@ stages:
# # - config.json
# - schema.json
build_image:
only:
- dev
- main
- /release*/
.build_image:
stage: build
before_script:
- echo "Building docker image..."
@@ -54,6 +50,23 @@ build_image:
# See https://docs.gitlab.com/ee/ci/variables/predefined_variables.html#variables-reference for available variables
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-latest
build_image:
extends: .build_image
only:
- dev
- prod
- main
- qa
- uat
build_image_manual:
extends: .build_image
when: manual
# memri-docs:
# stage: docs
# only:
setup.cfg
+ 1
- 1
  • View file @ fdeefa60

  • Edit in single-file editor

  • Open in Web IDE


@@ -12,7 +12,7 @@ classifiers =
packages = find:
python_requires = >=3.6
install_requires =
pymemri @ git+https://gitlab.memri.io/memri/pymemri.git@v0.0.29
pymemri @ git+https://gitlab.memri.io/memri/pymemri.git@v0.0.32
jinja2==3.0.0
[options.packages.find]
0 Assignees
None
Assign to
0 Reviewers
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
Lock merge request
Unlocked
2
2 participants
Koen van der Veen
Muhammad Bilal
Reference:
Source branch: uat

Menu

Explore Projects Groups Snippets