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

Commit

Permalink
pip_six 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Apr 14, 2019
1 parent 7a24da2 commit fcb1bd7
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Expand Up @@ -369,6 +369,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_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
24 changes: 24 additions & 0 deletions cmake/projects/pip_six/hunter.cmake
@@ -0,0 +1,24 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
pip_six
VERSION
1.12.0
URL
"https://github.com/benjaminp/six/archive/1.12.0.tar.gz"
SHA1
eb86fb797c4be6069ed821113cc908bc02774175
)

hunter_pick_scheme(DEFAULT url_sha1_pip)
hunter_cacheable(pip_six)
hunter_download(PACKAGE_NAME pip_six)
21 changes: 21 additions & 0 deletions docs/packages/pkg/pip_six.rst
@@ -0,0 +1,21 @@
.. spelling::

six

.. index::
single: python ; pip_six

.. _pkg.pip_six:

pip_six
=======

- `Official <https://six.readthedocs.io>`__
- `Official GitHub <https://github.com/benjaminp/six>`__
- `PyPI <https://pypi.org/project/six>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/pip_six/CMakeLists.txt>`__

.. literalinclude:: /../examples/pip_six/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
28 changes: 28 additions & 0 deletions examples/pip_six/CMakeLists.txt
@@ -0,0 +1,28 @@
# 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_six)

# DOCUMENTATION_START {
hunter_add_package(pip_six)
find_package(pip_six CONFIG REQUIRED)

set(test_command "import six")

execute_process(
COMMAND
${Python_EXECUTABLE} -c ${test_command}
RESULT_VARIABLE
result
)

if(NOT result EQUAL "0")
message(FATAL_ERROR "Failed")
endif()
# DOCUMENTATION_END }

0 comments on commit fcb1bd7

Please sign in to comment.