#!/usr/bin/env python3 # Copyright (C) 2017 Flycheck contributors # Copyright (C) 2016 Sebastian Wiesner and Flycheck contributors # This file is not part of GNU Emacs. # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # You should have received a copy of the GNU General Public License along with # this program. If not, see . import re import sys import subprocess from datetime import date from collections import namedtuple from pathlib import Path import requests from git import Repo SOURCE_DIR = Path(__file__).resolve().parent.parent FLYCHECK_EL = SOURCE_DIR.joinpath('flycheck.el') CHANGELOG = SOURCE_DIR.joinpath('CHANGES.rst') TRAVIS_ENDPOINT = 'https://api.travis-ci.org/repos/flycheck/flycheck' VERSION_HEADER_RE = re.compile( r'^(?P