From 5b5c870ee1803d19e53e052e1070ce4086b80647 Mon Sep 17 00:00:00 2001 From: gbMichelle Date: Fri, 7 Feb 2020 01:36:05 +0100 Subject: [PATCH] Include automatic build system files --- .appveyor.yml | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ .wheelman.yml | 43 +++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 .appveyor.yml create mode 100644 .wheelman.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..cd629492 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,75 @@ +image: + - Visual Studio 2019 + +environment: + matrix: + # Environment vars to send to the build VM + - PYTHON: "C:\\Python38-x64\\python.exe" + WHEELMAN_TARGET: windows + WHEELMAN_REPO: "https://github.com/gbMichelle/wheelman.git" + TWINE_USERNAME: + secure: EnVF0Efkdy2CMUFOw91AOg== + TWINE_PASSWORD: + secure: vRDWpHszD6qeJkqhcs/sJA== + +install: + # Windows install prep. + - cmd: | + git clone %WHEELMAN_REPO% wheelman + %PYTHON% -m pip install wheel pyyaml twine + +# Turn off MSBuild mode. +build: off + +#test_script: + # No tests, how horrible D:< + +after_test: + - cmd: "%PYTHON% wheelman\\wheelman.py --target %WHEELMAN_TARGET%" + +artifacts: + # bdist_wheel puts the built wheel in the dist directory + - path: dist\* + +# The build identifier shown in our webhook +version: '{branch}.{build}' + +# Our Discord webhook +notifications: +- provider: Webhook + url: + secure: HPXukd4+SRk2k/1Lf7KxUSB4zVjwaGTepjGvpywQR8ZviI1/C5ABpAYfLYgup81E6p/bbHVgkno4cUf0SkcJqUTUFlFoKdTFQAstp7n/fHF7VvFj+C14R4EUcM2EINgwIGAI1pjse+a5bAJtNvFnllPOn/JqO7hxdV/jqFlh4Bs= + method: POST + body: >- + { + "embeds": [ + { + "title": "Build {{buildId}} for {{repositoryName}} - {{#passed}}Success{{/passed}}{{^passed}}Failure{{/passed}}", + "url": "{{buildUrl}}", + "color": {{#passed}}40973{{/passed}}{{^passed}}11672839{{/passed}}, + "fields": [ + { + "name": "Commit", + "value": "[{{commitMessage}}](https://github.com/{{repositoryName}}/commit/{{commitId}})" + }, + { + "name": "Duration", + "value": "{{duration}}", + "inline": true + }, + { + "name": "Build version", + "value": "{{buildVersion}}", + "inline": true + } + ] + } + ] + } + on_build_success: true + on_build_failure: true + on_build_status_changed: true + +branches: + only: + - master diff --git a/.wheelman.yml b/.wheelman.yml new file mode 100644 index 00000000..55e96db8 --- /dev/null +++ b/.wheelman.yml @@ -0,0 +1,43 @@ +# Configuration for builder found at https://github.com/gbMichelle/wheelman + +# Name of distribution, needed for file copying. +name: reclaimer + +#These get copied into the distribution +include_files: + - "README.MD" + - "LICENSE" + - "CHANGELOG.MD" + +pypi: + # Only uploads on a github release tag. + only_upload_tags: true + # NOTE THE TEST.PYPI + # pypi url to upload to + #target_url: https://test.pypi.org/legacy/ + target_url: https://pypi.org/legacy/ + + +targets: + windows: + # For Python versions available on Appveyor, see + # https://www.appveyor.com/docs/windows-images-software/#python + + - python: "C:\\Python36\\python.exe" + wheel: True + + - python: "C:\\Python36-x64\\python.exe" + wheel: True + + - python: "C:\\Python37\\python.exe" + wheel: True + + - python: "C:\\Python37-x64\\python.exe" + wheel: True + + - python: "C:\\Python38\\python.exe" + wheel: True + + - python: "C:\\Python38-x64\\python.exe" + wheel: True + sdist: True