Skip to content
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

Fudge version in pyproject.toml for ci #2200

Merged
Merged
Changes from all commits
Commits
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
28 changes: 14 additions & 14 deletions .github/workflows/build-pip-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ on:

jobs:
get_timestamp:
name: Prep VERSION
name: Prep pyproject.toml
runs-on: ubuntu-latest

steps:
- name: Get Arbor
uses: actions/checkout@v3
with:
submodules: recursive
- name: Create unique VERSION
- name: Create unique version in pyproject.toml
if: startsWith(github.ref, 'refs/tags/v') == false
run: python3 -c 'import time;f=open("VERSION","r+");content = f.readlines();f.seek(0);f.write(content[0].strip()+time.strftime("%Y%m%d%H%I%S"))'
run: python3 -c 'import time;f=open("pyproject.toml","r+");c = f.readlines();d=[i.split("#")[0].strip()[:-1]+time.strftime("%Y%m%d%H%I%S")+"\"\n" if i.startswith("version") else i for i in c];f.seek(0);f.writelines(d);f.truncate()'
- uses: actions/upload-artifact@v3
with:
name: arbver
path: ${{ github.workspace }}/VERSION
path: ${{ github.workspace }}/pyproject.toml

build_binary_wheels:
name: Build wheels on ${{ matrix.os }}
Expand All @@ -41,14 +41,14 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Delete VERSION
run: rm -f VERSION
- name: Get VERSION
- name: Delete pyproject.toml
run: rm -f pyproject.toml
- name: Get pyproject.toml
uses: actions/download-artifact@v3
with:
name: arbver
- name: Check VERSION
run: cat VERSION
- name: Check pyproject.toml
run: cat pyproject.toml
- name: Install cibuildwheel
run: python3 -m pip install cibuildwheel
- name: Build wheels
Expand All @@ -72,14 +72,14 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Delete VERSION
run: rm -f VERSION
- name: Get VERSION
- name: Delete pyproject.toml
run: rm -f pyproject.toml
- name: Get pyproject.toml
uses: actions/download-artifact@v3
with:
name: arbver
- name: Check VERSION
run: cat VERSION
- name: Check pyproject.toml
run: cat pyproject.toml
- name: Make sdist
run: python3 -m build -s
- name: Install sdist
Expand Down
Loading