33version : 2.1
44orbs :
55 slack : circleci/slack@4.4.2
6+ python : circleci/python@2.0.3
67
78jobs :
89 build_test :
2122 apt-get -y install curl libgeos-dev
2223 pip install --upgrade pip
2324 pip install poetry
24- poetry install
25+ - python/install-packages :
26+ pkg-manager : poetry
2527 - run :
2628 name : Test Imports (extras need to be guarded!)
2729 command : | # Make sure that importing works without extras installed
@@ -105,6 +107,47 @@ jobs:
105107 exit 1
106108 fi
107109 poetry publish --username=$PYPI_USERNAME --password=$PYPI_PASSWORD
110+ test_poetry_installation :
111+ parameters :
112+ python_version :
113+ type : string
114+ docker :
115+ - image : cimg/python:<<parameters.python_version>>
116+ steps :
117+ - checkout
118+ - run :
119+ command : |
120+ pip install --upgrade pip
121+ name : Upgrade pip
122+ - python/install-packages :
123+ pkg-manager : poetry
124+ - run :
125+ command : |
126+ poetry run python -c 'import nucleus'
127+ name : Test import nucleus
128+ test_client_installation :
129+ parameters :
130+ python_version :
131+ type : string
132+ docker :
133+ - image : cimg/python:<<parameters.python_version>>
134+ steps :
135+ - checkout
136+ - run :
137+ command : |
138+ pip install --upgrade pip
139+ name : Upgrade pip
140+ # - python/install-packages:
141+ # pkg-manager: poetry
142+ - run :
143+ command : |
144+ poetry build
145+ name : Test it
146+ - run :
147+ command : |
148+ export FOUND_PKG=$(find ./dist -name "*.tar.gz")
149+ pip install $FOUND_PKG
150+ name : Test it
108151workflows :
109152 nightly_build_test :
110153 triggers :
@@ -117,6 +160,18 @@ workflows:
117160 jobs :
118161 - build_test :
119162 context : Nucleus
163+ installation_matrix :
164+ jobs :
165+ - test_poetry_installation :
166+ matrix :
167+ parameters :
168+ python_version : ['3.6', '3.7', '3.8', '3.9'] # , '3.10'] Haven't gotten the 3.10 test to work
169+ context : Nucleus
170+ - test_client_installation :
171+ matrix :
172+ parameters :
173+ python_version : ['3.6', '3.7', '3.8', '3.9', '3.10']
174+ context : Nucleus
120175 build_test_publish :
121176 jobs :
122177 - build_test :
0 commit comments