Skip to content

Commit

Permalink
Include automatic build system files
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyHerself committed Feb 7, 2020
1 parent ed7934f commit 5b5c870
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -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
43 changes: 43 additions & 0 deletions .wheelman.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5b5c870

Please sign in to comment.