Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
pip_pylint 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Apr 14, 2019
1 parent 3f92fa6 commit 170befb
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Expand Up @@ -370,6 +370,7 @@ hunter_default_version(pip_lazy-object-proxy VERSION 1.3.1)
hunter_default_version(pip_nose VERSION 1.3.7)
hunter_default_version(pip_nose-timer VERSION 0.7.5)
hunter_default_version(pip_numpy VERSION 1.16.2)
hunter_default_version(pip_pylint VERSION 2.3.1)
hunter_default_version(pip_six VERSION 1.12.0)
hunter_default_version(pip_smmap VERSION 2.0.5)
hunter_default_version(pip_wrapt VERSION 1.11.1)
Expand Down
31 changes: 31 additions & 0 deletions cmake/projects/pip_pylint/hunter.cmake
@@ -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)
21 changes: 21 additions & 0 deletions docs/packages/pkg/pip_pylint.rst
@@ -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 }
26 changes: 26 additions & 0 deletions examples/pip_pylint/CMakeLists.txt
@@ -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 }

0 comments on commit 170befb

Please sign in to comment.