-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up shop with SetupShop #200
Conversation
This pull request introduces 1 alert when merging 07d6078 into f274bc4 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 4ded992 into f274bc4 - view on LGTM.com new alerts:
|
I tried specifying the version of
D'oh! |
setup.py
Outdated
shop = SetupShop( | ||
"lta", | ||
os.path.abspath(os.path.dirname(__file__)), | ||
((3, 6), (3, 10)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how the GH Action will act with grabbing 3.10. But I see there's an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running the bash lines locally, I get 3.6,3.7,3.8,3.9,3.10
so I'm inclined to think that this is happening because 3.10 has not been released. Or there's a bug in the tool I use (https://github.com/actions/setup-python).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relevant: actions/setup-python#177
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh I found the issue...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's a tricky one:
There's a way to hack around this, but that's the last resort, especially for something stable like LTA. I recommend bumping the minimum up to 3.7, since this probably isn't something that numpy will resolve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
name: Try Setup Install | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
gather-py3-versions: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.py3_versions.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Python Versions | ||
id: py3_versions | ||
run: | | ||
minmin_maxmax=$(grep -P "\(\(\d+, ?\d+\), ?\(\d+, ?\d+\)\)" -oh setup.py | sed 's/[^0-9]/ /g') | ||
IFS=', ' read -r -a array <<< "$minmin_maxmax" | ||
min_thru_max_series=$(for i in `seq ${array[1]} ${array[3]}`; do printf "3.$i,"; done | rev | cut -c 2- | rev) | ||
echo ::set-output name=matrix::{\"py3_versions\":[$(echo $min_thru_max_series)]}\" | ||
|
||
setup-py-install: | ||
needs: gather-py3-versions | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 4 | ||
fail-fast: false | ||
matrix: ${{ fromJSON(needs.gather-py3-versions.outputs.matrix) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.py3_versions }} | ||
- run: | | ||
echo ${{ matrix.py3_versions }} | ||
python setup.py install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: Try Setup Install | |
on: [push] | |
jobs: | |
gather-py3-versions: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.py3_versions.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Python Versions | |
id: py3_versions | |
run: | | |
minmin_maxmax=$(grep -P "\(\(\d+, ?\d+\), ?\(\d+, ?\d+\)\)" -oh setup.py | sed 's/[^0-9]/ /g') | |
IFS=', ' read -r -a array <<< "$minmin_maxmax" | |
min_thru_max_series=$(for i in `seq ${array[1]} ${array[3]}`; do printf "3.$i,"; done | rev | cut -c 2- | rev) | |
echo ::set-output name=matrix::{\"py3_versions\":[$(echo $min_thru_max_series)]}\" | |
setup-py-install: | |
needs: gather-py3-versions | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: ${{ fromJSON(needs.gather-py3-versions.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.py3_versions }} | |
- run: | | |
echo ${{ matrix.py3_versions }} | |
python setup.py install | |
name: Try Setup Install | |
on: [push] | |
jobs: | |
gather-py3-versions: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.py3_versions.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Python Versions | |
id: py3_versions | |
run: | | |
minmin_maxmax=$(grep -P "\(\(\d+, ?\d+\), ?\(\d+, ?\d+\)\)" -oh setup.py | sed 's/[^0-9]/ /g') | |
IFS=', ' read -r -a array <<< "$minmin_maxmax" | |
min_thru_max_series=$(for i in `seq ${array[1]} ${array[3]}`; do printf "'3.$i',"; done | rev | cut -c 2- | rev) | |
echo ::set-output name=matrix::{\"py3_versions\":[$(echo $min_thru_max_series)]}\" | |
echo $min_thru_max_series | |
pip-install: | |
needs: gather-py3-versions | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: ${{ fromJSON(needs.gather-py3-versions.outputs.matrix) }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.py3_versions }} | |
- run: | | |
pip install --upgrade pip wheel setuptools | |
pip install --editable . | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what's up with the diff here, but it's a copy of https://github.com/WIPACrepo/rest-tools/blob/master/.github/workflows/try-setup-install.yml
Improving LTA infrastructure by using the wipac-dev-tools created by @ric-evans