This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2016-2019, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_cmake_args) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
pip_pylint | ||
VERSION | ||
2.3.1 | ||
URL | ||
"https://github.com/PyCQA/pylint/archive/pylint-2.3.1.tar.gz" | ||
SHA1 | ||
9dc2b3825611baeca43d3601f36841aa8cb7ef60 | ||
) | ||
|
||
hunter_cmake_args( | ||
pip_pylint | ||
CMAKE_ARGS | ||
DEPENDS_ON_PACKAGES=pip_astroid | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_pip) | ||
hunter_cacheable(pip_pylint) | ||
hunter_download(PACKAGE_NAME pip_pylint) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. spelling:: | ||
|
||
pylint | ||
|
||
.. index:: | ||
single: python ; pip_pylint | ||
|
||
.. _pkg.pip_pylint: | ||
|
||
pip_pylint | ||
========== | ||
|
||
- `Official <http://pylint.pycqa.org>`__ | ||
- `Official GitHub <https://github.com/PyCQA/pylint>`__ | ||
- `PyPI <https://pypi.org/project/pylint>`__ | ||
- `Example <https://github.com/ruslo/hunter/blob/master/examples/pip_pylint/CMakeLists.txt>`__ | ||
|
||
.. literalinclude:: /../examples/pip_pylint/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2016-2019, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.12) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-pip_pylint) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(pip_pylint) | ||
find_package(pip_pylint CONFIG REQUIRED) | ||
|
||
execute_process( | ||
COMMAND | ||
${Python_EXECUTABLE} -m pylint --help | ||
RESULT_VARIABLE | ||
result | ||
) | ||
|
||
if(NOT result EQUAL "0") | ||
message(FATAL_ERROR "Failed") | ||
endif() | ||
# DOCUMENTATION_END } |