forked from lda-project/lda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
175 lines (144 loc) · 4.33 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#
# build configuration for appveyor.com
#
#
# OS versions to build on
#
image:
- Visual Studio 2019
- macOS
- macOS-Mojave
# - Ubuntu
# - Ubuntu2004
#
# Python versions to build on
#
environment:
matrix:
# Pre-installed Python versions, which Appveyor may upgrade to
# a later point release.
# See: http://www.appveyor.com/docs/installed-software#python
- PYTHON_VERSION: "3.6.x"
PYTHON_WIN: "C:\\Python36"
PYTHON_ARCH: "32"
- PYTHON_VERSION: "3.6.x"
PYTHON_WIN: "C:\\Python36-x64"
PYTHON_UNIX: "venv3.6"
PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.7.x"
PYTHON_WIN: "C:\\Python37"
PYTHON_ARCH: "32"
- PYTHON_VERSION: "3.7.x"
PYTHON_WIN: "C:\\Python37-x64"
PYTHON_UNIX: "venv3.7"
PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.8.x"
PYTHON_WIN: "C:\\Python38"
PYTHON_ARCH: "32"
- PYTHON_VERSION: "3.8.x"
PYTHON_WIN: "C:\\Python38-x64"
PYTHON_UNIX: "venv3.8"
PYTHON_ARCH: "64"
matrix:
exclude:
- image: macOS
PYTHON_ARCH: "32" # 32bit only for Windows
- image: macOS-Mojave
PYTHON_ARCH: "32" # 32bit only for Windows
# - image: Ubuntu
# PYTHON_ARCH: "32" # 32bit only for Windows
# - image: Ubuntu2004
# PYTHON_ARCH: "32" # 32bit only for Windows
#
# Windows-specific build steps
#
for:
-
matrix:
only:
- image: Visual Studio 2019
install:
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON_WIN%;%PYTHON_WIN%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Install the build dependencies of the project. If some dependencies contain
# compiled extensions and are not provided as pre-built wheel packages,
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
- "%CMD_IN_ENV% pip install wheel"
- "%CMD_IN_ENV% pip install -r requirements.txt"
- "%CMD_IN_ENV% pip install -r test-requirements.txt"
- "%CMD_IN_ENV% cython lda/_lda.pyx"
# build the wheel and install it
- "%CMD_IN_ENV% python setup.py bdist_wheel bdist_wininst"
- ps: "ls dist"
# Install the generated wheel package to test it
- "pip install --pre --no-index --find-links dist/ ldafork"
#
# MacOS-specific build steps
#
-
matrix:
only:
- image: macOS
- image: macOS-Mojave
# - image: Ubuntu
# - image: Ubuntu2004
install:
- "echo $HOME"
- "source $HOME/$PYTHON_UNIX/bin/activate"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "pip install wheel"
- "pip install -r requirements.txt"
- "pip install -r test-requirements.txt"
- "make cython"
- "python setup.py bdist_wheel"
- "ls dist"
# Install the generated wheel package to test it
- "pip install --pre --no-index --find-links dist/ ldafork"
build: false # building occurs during install above
#
# testing steps
#
test_script:
# Change to a non-source folder to make sure we run the tests on the
# installed library.
- "mkdir empty_folder"
- "cd empty_folder"
- "python -m unittest discover lda"
# Move back to the project folder
- "cd .."
#
# generated downloadable wheels
#
artifacts:
- path: 'dist\*.whl'
deploy:
- provider: GitHub
description: 'ldafork wheel package for version $(APPVEYOR_REPO_TAG_NAME)'
tag: $(APPVEYOR_REPO_TAG_NAME)
release: ldafork-$(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: flEOzMzdOLZZKb5B+n4RAWJumMH20t+IDZYV5gXnykT9IWqO/XqQBdZuGQwkQ49M
artifact: /.*\.whl/
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only
# - provider: GitHub
# description: 'ldafork wheel package for current development version'
# tag: current-develop
# release: ldafork-current-develop
# auth_token:
# secure: flEOzMzdOLZZKb5B+n4RAWJumMH20t+IDZYV5gXnykT9IWqO/XqQBdZuGQwkQ49M
# artifact: /.*\.whl/
# draft: false
# prerelease: true
# on:
# branch: develop