Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
be4869c
first pass for circleci manual config
altendky May 19, 2020
ca8864b
:
altendky May 19, 2020
f3db149
hmm
altendky May 19, 2020
3f467dc
-:
altendky May 19, 2020
487da2f
-:
altendky May 19, 2020
5ccc882
executor
altendky May 19, 2020
0ef318c
2.1
altendky May 19, 2020
d30a1c6
windows
altendky May 19, 2020
90e0dd4
root
altendky May 19, 2020
164c05f
at
altendky May 19, 2020
a706974
checkout first
altendky May 19, 2020
64703c1
pyenv for macos
altendky May 19, 2020
e17e27f
various
altendky May 19, 2020
d870aff
blue
altendky May 19, 2020
9cb7a0b
maybe
altendky May 19, 2020
1445658
\
altendky May 19, 2020
f2c555c
again
altendky May 19, 2020
a38b724
install after
altendky May 19, 2020
6b486b5
diagnostics
altendky May 19, 2020
1a3731e
configure then install pyenv
altendky May 19, 2020
79835c8
${HOME}
altendky May 19, 2020
20ec6cb
seriously...?
altendky May 19, 2020
77b2de1
diagnostics
altendky May 19, 2020
10e796d
bleh
altendky May 20, 2020
311fbdb
bleh
altendky May 20, 2020
ecf9aa5
blue
altendky May 20, 2020
196c725
red
altendky May 20, 2020
50ba98e
cyan
altendky May 20, 2020
15ee6f2
no pyenv init
altendky May 20, 2020
4d71bd6
lkaflkjasdlkjf
altendky May 20, 2020
3c918d8
alkj
altendky May 20, 2020
d303497
lasfjaljlkrqwjoijrwq
altendky May 20, 2020
37a5ead
lkjrqq313rr442
altendky May 20, 2020
6982279
lkja
altendky May 20, 2020
978f9f7
wr31lklkj3321
altendky May 20, 2020
508c843
alkfdsjlwk3
altendky May 20, 2020
a76e719
just shim it
altendky May 20, 2020
4e30f27
lkr31
altendky May 20, 2020
ae8f19b
eval again
altendky May 20, 2020
fe54307
"
altendky May 20, 2020
b203169
alkjf
altendky May 20, 2020
a221cdc
3lrjlk3j34
altendky May 20, 2020
56f9145
cache it?
altendky May 20, 2020
9e48ceb
paths
altendky May 20, 2020
19792c4
kick ci
altendky May 20, 2020
a686582
pwd
altendky May 20, 2020
56cdf5a
kick ci
altendky May 20, 2020
934a5f0
red
altendky May 20, 2020
ac92b12
kick ci
altendky May 20, 2020
62e6db5
woo
altendky May 20, 2020
890d114
aslkjfd
altendky May 20, 2020
e505475
maybe
altendky May 24, 2020
640e25a
tidy
altendky May 24, 2020
2000b42
maybe
altendky May 24, 2020
10508c1
most recent via pyenv
altendky May 24, 2020
3450f7d
there
altendky May 24, 2020
f30c893
-vx
altendky May 24, 2020
37cedd7
...
altendky May 24, 2020
bbd6d39
again
altendky May 24, 2020
8d04212
cleanup
altendky May 25, 2020
9261be3
fixup some types
altendky May 25, 2020
f4ad655
dedicated pyenv steps
altendky May 26, 2020
a84e346
filler step for windows
altendky May 26, 2020
4658c50
Revert "filler step for windows"
altendky May 26, 2020
ab379e6
filler step for windows
altendky May 26, 2020
c121343
path
altendky May 26, 2020
e6b095f
maybe pyenv-win
altendky May 26, 2020
7c3487f
-'
altendky May 26, 2020
605d966
-'
altendky May 26, 2020
6660302
diagnostics
altendky May 26, 2020
ca2d246
mv
altendky May 26, 2020
7c8049f
diagnostics
altendky May 26, 2020
5b79926
mkdir
altendky May 26, 2020
d5b5819
dirname
altendky May 26, 2020
48692bf
bump to cache v3
altendky May 26, 2020
82f5627
maybe no spaces
altendky May 27, 2020
26bcf97
hmm
altendky May 27, 2020
5ed8f4f
eh
altendky May 27, 2020
8f6b58d
lkfdsaj
altendky May 27, 2020
9138f6b
sort
altendky May 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
268 changes: 268 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
version: 2.1
orbs:
windows: circleci/[email protected]
jobs:
sdist:
docker:
- image: python:3.8
steps:
- checkout
- run:
name: Build
command: |-
python -m pip install --quiet --upgrade pip
python -m pip install --quiet --upgrade pep517
python -m pep517.build --source --out-dir dist/ .
- store_artifacts:
path: dist
- persist_to_workspace:
root: .
paths:
- dist
bdist:
docker:
- image: python:3.8
steps:
- checkout
- run:
name: Build
command: |-
python -m pip install --quiet --upgrade pip
python -m pip install --quiet --upgrade pep517
python -m pep517.build --binary --out-dir dist/ .
- store_artifacts:
path: dist
- persist_to_workspace:
root: .
paths:
- dist
pyenv_macos_cpython_3_8:
macos:
xcode: 10.0.0
steps:
- run:
name: Install pyenv support libraries
command: |-
# brew update
brew list readline &>/dev/null || brew install readline
brew list xz &>/dev/null || brew install xz
- run:
name: Configure pyenv
command: echo 'export PYENV_ROOT=${PWD}/.ciborg/pyenv' >> $BASH_ENV
- restore_cache:
key: pyenv_macos_cpython_3_8-v3
- run:
name: Install pyenv
command: |-
if [ ! -e .ciborg/pyenv ]; then curl https://pyenv.run | bash; fi
echo 'export PATH=${PYENV_ROOT}/bin:${PATH}' >> $BASH_ENV
echo 'export PATH=${PYENV_ROOT}/shims:${PATH}' >> $BASH_ENV
# echo 'eval '$(pyenv init -)"' >> $BASH_ENV
# echo 'export CFLAGS=-I$(brew --prefix openssl)/include' >> $BASH_ENV
# echo 'export LDFLAGS=-L$(brew --prefix openssl)/lib' >> $BASH_ENV
echo ----
cat $BASH_ENV
echo ----
- run:
name: Install CPython 3.8
command: |-
echo $PATH
ls ${PYENV_ROOT} || true
ls ${PYENV_ROOT}/bin || true
ls ${PYENV_ROOT}/shims || true
pyenv --help
pyenv install --list
set -vx
export CIBORG_PYTHON_VERSION=$(pyenv install --list | sort | sed -n 's/^ *\(3.8[^ ]*\)/\1/p' | grep -v 'dev' | tail -n 1)
echo ${CIBORG_PYTHON_VERSION}
pyenv install --skip-existing ${CIBORG_PYTHON_VERSION}
pyenv global ${CIBORG_PYTHON_VERSION}
- save_cache:
key: pyenv_macos_cpython_3_8-v3
paths:
- .ciborg/pyenv
pyenv_windows_cpython_3_8:
executor:
name: windows/default
shell: bash
steps:
- run:
name: Configure pyenv
command: echo 'export PYENV_ROOT=${PWD}/.ciborg/pyenv' >> $BASH_ENV
- restore_cache:
key: pyenv_windows_cpython_3_8-v6
- run:
name: Install pyenv
command: |-
if [ ! -e ${PYENV_ROOT} ]; then git clone https://github.com/pyenv-win/pyenv-win pyenv-win; mkdir -p $(dirname ${PYENV_ROOT}); mv pyenv-win/pyenv-win ${PYENV_ROOT}; fi
echo 'export PATH=${PYENV_ROOT}/bin:${PATH}' >> $BASH_ENV
echo 'export PATH=${PYENV_ROOT}/shims:${PATH}' >> $BASH_ENV
echo ----
cat $BASH_ENV
echo ----
- run:
name: Install CPython 3.8
command: |-
echo $PATH
ls ${PYENV_ROOT} || true
ls ${PYENV_ROOT}/bin || true
ls ${PYENV_ROOT}/shims || true
pyenv --help
pyenv install --list
set -vx
export CIBORG_PYTHON_VERSION=$(pyenv install --list | sort | sed -n 's/^ *\(3.8[^ ]*\)/\1/p' | grep -v 'dev' | tail -n 1)
echo ${CIBORG_PYTHON_VERSION}
pyenv install --skip-existing ${CIBORG_PYTHON_VERSION}
pyenv global ${CIBORG_PYTHON_VERSION}
- save_cache:
key: pyenv_windows_cpython_3_8-v6
paths:
- .ciborg/pyenv
tox_typehints_linux_cpython_3_8:
docker:
- image: python:3.8
environment:
TOXENV: typehints
steps:
- checkout
- run:
name: Tox
command: |-
python -m pip install --quiet --upgrade pip setuptools wheel
python -m pip install tox
python -m tox
tox_linux_cpython_3_6_bdist:
docker:
- image: python:3.6
environment:
TOXENV: py36
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Select distribution file
command: |-
ls ${PWD}/dist/*
echo "export DIST_FILE_PATH=$(ls ${PWD}/dist/*.whl)" >> $BASH_ENV
- run:
name: Tox
command: |-
python -m pip install --quiet --upgrade pip setuptools wheel
python -m pip install tox
python -m tox --installpkg="${DIST_FILE_PATH}"
tox_linux_cpython_3_8_sdist:
docker:
- image: python:3.8
environment:
TOXENV: py38
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Select distribution file
command: |-
ls ${PWD}/dist/*
echo "export DIST_FILE_PATH=$(ls ${PWD}/dist/*.tar.gz)" >> $BASH_ENV
- run:
name: Tox
command: |-
python -m pip install --quiet --upgrade pip setuptools wheel
python -m pip install tox
python -m tox --installpkg="${DIST_FILE_PATH}"
tox_linux_cpython_3_8_bdist:
docker:
- image: python:3.8
environment:
TOXENV: py38
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Select distribution file
command: |-
ls ${PWD}/dist/*
echo "export DIST_FILE_PATH=$(ls ${PWD}/dist/*.whl)" >> $BASH_ENV
- run:
name: Tox
command: |-
python -m pip install --quiet --upgrade pip setuptools wheel
python -m pip install tox
python -m tox --installpkg="${DIST_FILE_PATH}"
tox_macos_cpython_3_8_bdist:
macos:
xcode: 10.0.0
environment:
TOXENV: py38
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Select distribution file
command: |-
ls ${PWD}/dist/*
echo "export DIST_FILE_PATH=$(ls ${PWD}/dist/*.whl)" >> $BASH_ENV
- run:
name: Configure pyenv
command: |-
echo 'export PYENV_ROOT=${PWD}/.ciborg/pyenv' >> $BASH_ENV
echo 'export PATH=${PYENV_ROOT}/bin:${PATH}' >> $BASH_ENV
echo 'export PATH=${PYENV_ROOT}/shims:${PATH}' >> $BASH_ENV
- restore_cache:
key: pyenv_macos_cpython_3_8-v3
- run:
name: Tox
command: |-
python -m pip install --quiet --upgrade pip setuptools wheel
python -m pip install tox
python -m tox --installpkg="${DIST_FILE_PATH}"
tox_windows_cpython_3_8_bdist:
executor:
name: windows/default
shell: bash
environment:
TOXENV: py38
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Select distribution file
command: |-
ls ${PWD}/dist/*
echo "export DIST_FILE_PATH=$(ls ${PWD}/dist/*.whl)" >> $BASH_ENV
- run:
name: Tox
command: |-
python -m pip install --quiet --upgrade pip setuptools wheel
python -m pip install tox
python -m tox --installpkg="${DIST_FILE_PATH}"
workflows:
version: 2
all:
jobs:
- sdist
- bdist
- pyenv_macos_cpython_3_8
- pyenv_windows_cpython_3_8
- tox_typehints_linux_cpython_3_8
- tox_linux_cpython_3_6_bdist:
requires:
- bdist
- tox_linux_cpython_3_8_sdist:
requires:
- sdist
- tox_linux_cpython_3_8_bdist:
requires:
- bdist
- tox_macos_cpython_3_8_bdist:
requires:
- pyenv_macos_cpython_3_8
- bdist
- tox_windows_cpython_3_8_bdist:
requires:
- pyenv_windows_cpython_3_8
- bdist
5 changes: 0 additions & 5 deletions src/ciborg/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,11 +647,6 @@ class Trigger:
paths = attr.ib(factory=IncludeExcludePVectors)


class OrderedDictField(marshmallow.fields.Mapping):
# https://github.com/marshmallow-code/marshmallow/pull/1098
mapping_type = collections.OrderedDict


class UsePythonVersionTaskStepSchema(marshmallow.Schema):
class Meta:
ordered = True
Expand Down
Loading