# Path: awslimitchecker/version.py
# _VERSION = '.'.join([str(x) for x in _VERSION_TUP])


import os
import sys
import logging
import subprocess
import re
from datetime import datetime
from awslimitchecker.version import _VERSION
from distutils.spawn import find_executable
    from github3 import login
Jason Antman <jason@jasonantman.com> <http://www.jasonantman.com>
################################################################################
"""


try:
except ImportError:
    raise SystemExit('ERROR: you must "pip install \'github3.py>=1.3.0\'"')

logger = logging.getLogger(__name__)


class GithubReleaser(object):

    head_re = re.compile(r'^## (\d+\.\d+\.\d+).*')

    def __init__(self):
        self._pandoc = find_executable('pandoc')
        if self._pandoc is None:
            sys.stderr.write("ERROR: pandoc not found on PATH.\n")
            raise SystemExit(1)
        self._gh_token = os.environ.get('GITHUB_TOKEN', None)
        if self._gh_token is None:
            sys.stderr.write("ERROR: GITHUB_TOKEN env var must be set\n")
            raise SystemExit(1)
        self._gh = login(token=self._gh_token)
        self._repo = self._gh.repository('jantman', 'awslimitchecker')

    def run(self, action):
        logger.info('Github Releaser running action: %s', action)

# Path: awslimitchecker/version.py
# _VERSION = '.'.join([str(x) for x in _VERSION_TUP])


# Path: dev/github_releaser.py
import os
import sys
import logging
import subprocess
import re
from datetime import datetime
from awslimitchecker.version import _VERSION
from distutils.spawn import find_executable
    from github3 import login

Jason Antman <jason@jasonantman.com> <http://www.jasonantman.com>
################################################################################
"""


try:
except ImportError:
    raise SystemExit('ERROR: you must "pip install \'github3.py>=1.3.0\'"')

logger = logging.getLogger(__name__)


class GithubReleaser(object):

    head_re = re.compile(r'^## (\d+\.\d+\.\d+).*')

    def __init__(self):
        self._pandoc = find_executable('pandoc')
        if self._pandoc is None:
            sys.stderr.write("ERROR: pandoc not found on PATH.\n")
            raise SystemExit(1)
        self._gh_token = os.environ.get('GITHUB_TOKEN', None)
        if self._gh_token is None:
            sys.stderr.write("ERROR: GITHUB_TOKEN env var must be set\n")
            raise SystemExit(1)
        self._gh = login(token=self._gh_token)
        self._repo = self._gh.repository('jantman', 'awslimitchecker')

    def run(self, action):
        logger.info('Github Releaser running action: %s', action)

        logger.info('Current awslimitchecker version: %s', _VERSION)