name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
  Version control system that is built on top of Git in
  attempt to make user interface easier by playing with
  underlying concepts. Gitless is fully compatible with
  Git and can be used with it interchangeably.

grade: devel
confinement: devmode

parts:
  libgit2:
    plugin: cmake
    source: https://github.com/libgit2/libgit2/archive/v0.27.0.tar.gz
    build-packages:
      - libssl-dev

  gitless-cli:
    plugin: python
    source: .
    after: [libgit2]


# obligatory fields

name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
  Version control system that is built on top of Git in
  attempt to make user interface easier by playing with
  underlying concepts. Gitless is fully compatible with
  Git and can be used with it interchangeably.

grade: devel          # 'stable' for stable/candidate upload
confinement: devmode  # 'strict' after right plugs and slots

# 'optional' fields

apps:
  gl:
    command: bin/gl

parts:
  libgit2:
    plugin: cmake
    source: https://github.com/libgit2/libgit2/archive/v0.27.0.tar.gz
    build-packages:
      - libssl-dev

  gitless-cli:
    plugin: python
    source: .
    after: [libgit2]


Add `gl` command (that doesn't work)
Add `gl` command (that doesn't work)

    ✗ gitless.gl
    Traceback (most recent call last):
      File "/snap/gitless/x5/bin/gl", line 11, in <module>
        load_entry_point('gitless==0.8.6', 'console_scripts', 'gl')()
      File "/snap/gitless/x5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/snap/gitless/x5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2691, in load_entry_point
        return ep.load()
      File "/snap/gitless/x5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2322, in load
        return self.resolve()
      File "/snap/gitless/x5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2328, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/snap/gitless/x5/lib/python3.5/site-packages/gitless/cli/gl.py", line 22, in <module>
        from gitless import core
      File "/snap/gitless/x5/lib/python3.5/site-packages/gitless/core.py", line 30, in <module>
        from sh import git, ErrorReturnCode
    ImportError: cannot import name 'git'
