diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 2e66aa5ca..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,39 +0,0 @@ -version: 2.3.2.{build} - -branches: - only: - - main - - v1 - -install: - - git submodule update --init --recursive - - py -3 --version - - set PATH=C:\Python38-x64;C:\Python38-x64\Scripts;%PATH% - - cmake --version - - python --version - - python -m pip --version - - python -m pip install conan - - conan user - - conan --version - -build_script: - - mkdir build - - cd build - - ps: - cmake .. -DCLI11_WARNINGS_AS_ERRORS=ON -DCLI11_SINGLE_FILE_TESTS=ON - -DCMAKE_BUILD_TYPE=Debug -DCMAKE_GENERATOR="Visual Studio 14 2015" - - ps: cmake --build . - - cd .. - - ps: set CTEST_OUTPUT_ON_FAILURE=1 - - conan create . CLIUtils/CLI11 - -test_script: - - cd build - - ps: ctest --output-on-failure -C Debug - -notifications: - - provider: Webhook - url: https://webhooks.gitter.im/e/0185e91c5d989a476d7b - on_build_success: false - on_build_failure: true - on_build_status_changed: true diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 7d376345b..93b7651cc 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -60,19 +60,6 @@ name, pre-commit): pre-commit install ``` -## For developers releasing to Conan.io - -This is now done by the CI system on tagged releases. Previously, the steps to -make a Conan.io release were: - -```bash -conan remove '*' # optional, I like to be clean -conan create . cliutils/stable -conan upload "*" -r cli11 --all -``` - -Here I've assumed that the remote is `cli11`. - ## For maintainers: remember to add contributions In a commit to a PR, just add diff --git a/conanfile.py b/conanfile.py deleted file mode 100644 index b5b9e490a..000000000 --- a/conanfile.py +++ /dev/null @@ -1,49 +0,0 @@ -from conans import ConanFile, CMake -from conans.tools import load, cross_building -import re - - -def get_version(): - try: - content = load("include/CLI/Version.hpp") - version = re.search(r'#define CLI11_VERSION "(.*)"', content).group(1) - return version - except Exception: - return None - - -class CLI11Conan(ConanFile): - name = "CLI11" - version = get_version() - description = "Command Line Interface toolkit for C++11" - topics = ("cli", "c++11", "parser", "cli11") - url = "https://github.com/CLIUtils/CLI11" - homepage = "https://github.com/CLIUtils/CLI11" - author = "Henry Schreiner " - license = "BSD-3-Clause" - - settings = "os", "compiler", "arch", "build_type" - exports_sources = ( - "LICENSE", - "README.md", - "include/*", - "src/*", - "extern/*", - "cmake/*", - "CMakeLists.txt", - "CLI11.CPack.Description.txt", - "tests/*", - ) - - def build(self): # this is not building a library, just tests - cmake = CMake(self) - cmake.definitions["CLI11_BUILD_EXAMPLES"] = "OFF" - cmake.definitions["CLI11_SINGLE_FILE"] = "OFF" - cmake.configure() - cmake.build() - if not cross_building(self.settings): - cmake.test() - cmake.install() - - def package_id(self): - self.info.header_only() diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt deleted file mode 100644 index 48f6d9903..000000000 --- a/test_package/CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ -project(PackageTest CXX) -cmake_minimum_required(VERSION 3.1) - -include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) -conan_basic_setup() - -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_EXTENSIONS OFF) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -message(STATUS "${CMAKE_PREFIX_PATH}") - -find_package(CLI11 CONFIG REQUIRED) - -add_executable(example example.cpp) -target_link_libraries(example CLI11::CLI11) diff --git a/test_package/conanfile.py b/test_package/conanfile.py deleted file mode 100644 index 4c5c028ec..000000000 --- a/test_package/conanfile.py +++ /dev/null @@ -1,21 +0,0 @@ -from conans import ConanFile, CMake, tools -import os - - -class HelloTestConan(ConanFile): - settings = "os", "compiler", "build_type", "arch" - generators = "cmake" - - def build(self): - cmake = CMake(self) - cmake.configure() - cmake.build() - - def imports(self): - self.copy("*.dll", dst="bin", src="bin") - self.copy("*.dylib*", dst="bin", src="lib") - - def test(self): - if not tools.cross_building(self.settings): - os.chdir("bin") - self.run(".%sexample" % os.sep) diff --git a/test_package/example.cpp b/test_package/example.cpp deleted file mode 100644 index 464cf7518..000000000 --- a/test_package/example.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// This file is a "Hello, world!" CLI11 program - -#include "CLI/CLI.hpp" - -#include - -int main(int argc, char **argv) { - - CLI::App app("Some nice description"); - - int x = 0; - app.add_option("-x", x, "an integer value")->capture_default_str(); - - bool flag; - app.add_flag("-f,--flag", flag, "a flag option"); - - CLI11_PARSE(app, argc, argv); - - return 0; -}