-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.appveyor.yml
46 lines (36 loc) · 1.12 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
image: ubuntu2004
skip_branch_with_pr: true
skip_commits:
files:
- "*.md"
environment:
TWINE_USERNAME: __token__
TWINE_PASSWORD:
secure: 174ncAbF5IjSIkmioPt62jeSnzmTlRNchUkE4QdjDWH8xK1olYtySXLJpo2q95HcP7lWJky1hv4APESiRRHnBWoY0XRFafzM/mbCDMzG1tZXiXZmpP1qzHAtRP2QSCIg18xh1TMktraUdTi7sbJnjjRhqzgbW1k0kLBxKw79MPFBhYQ/TiGcmaYWZbWVZNY3HCUCb6Dt7bG1OE2Ul9rD1gvs55xwO9Oq9FOVA1VnMYw=
TWINE_NON_INTERACTIVE: true
stack:
- python 3.10
install:
- ps: |
if ($env:APPVEYOR_REPO_TAG_NAME) {
$env:PYPI_VER = $env:APPVEYOR_REPO_TAG_NAME.replace("v", "")
} else {
$env:PYPI_VER = "$($env:APPVEYOR_BUILD_VERSION).dev0"
}
Update-AppveyorBuild -Version $PYPI_VER
- python --version
- pip install --upgrade setuptools wheel twine poetry tomlkit virtualenv
- poetry install
build_script:
# patch version
- python3 .ci/patch_toml.py pyproject.toml $PYPI_VER
# build package
- poetry build
# publish package
- sh: |
if [[ ("$APPVEYOR_REPO_BRANCH" == "main" || "$APPVEYOR_REPO_TAG_NAME" != "") && "$APPVEYOR_PULL_REQUEST_NUMBER" == "" ]]; then
twine upload dist/*
fi
artifacts:
- path: dist/*
test: off