Skip to content

Commit

Permalink
release 4.605.24115
Browse files Browse the repository at this point in the history
  • Loading branch information
klahnakoski committed Apr 24, 2024
2 parents e41447a + 9d695fd commit f9b5f59
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 21 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# This workflow will install Python dependencies, run tests, and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: build
Expand All @@ -7,7 +7,7 @@ on:
push:
branches: [ "master", "dev" ]
tags:
- '[0-9]*'
- '[0-9]+'

jobs:
test:
Expand All @@ -20,10 +20,12 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
uses: actions/cache@v2
with:
Expand All @@ -32,29 +34,30 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install Dependencies with Retry
run: |
cp packaging/setup.py .
max_attempts=5
sleep_seconds=10
attempt_num=1
until timeout $sleep_seconds pip install . || [[ $attempt_num -eq $max_attempts ]]
do
until pip install .; do
echo "Attempt $attempt_num of $max_attempts failed! Trying again in $sleep_seconds seconds..."
sleep $sleep_seconds
((attempt_num++))
if [[ $attempt_num -eq $max_attempts ]]; then
echo "All $max_attempts attempts have failed!"
exit 1
fi
done
if [[ $attempt_num -eq $max_attempts ]]; then
echo "All $max_attempts attempts have failed!"
exit 1
fi
- name: Install Test Dependencies
run: |
python tests/smoke_test.py
python -m pip install --upgrade pip
pip install --no-deps -r tests/requirements.lock
pip install .
- name: Run Tests
env:
CI: true
Expand All @@ -65,16 +68,17 @@ jobs:
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
uses: actions/cache@v2
with:
Expand All @@ -83,6 +87,23 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install Dependencies with Retry
run: |
cp packaging/setup.py .
max_attempts=5
sleep_seconds=10
attempt_num=1
until pip install .; do
echo "Attempt $attempt_num of $max_attempts failed! Trying again in $sleep_seconds seconds..."
sleep $sleep_seconds
((attempt_num++))
if [[ $attempt_num -eq $max_attempts ]]; then
echo "All $max_attempts attempts have failed!"
exit 1
fi
done
- name: Coverage
env:
COVERAGE: true
Expand All @@ -91,7 +112,6 @@ jobs:
python -m pip install --upgrade pip
pip install --no-deps -r tests/requirements.lock
pip install coverage coveralls
cp packaging/setup.py .
pip install .
coverage run --rcfile=packaging/coverage.ini -m unittest discover tests
coverage report --rcfile=packaging/coverage.ini
Expand Down
10 changes: 10 additions & 0 deletions packaging/coverage.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
source =
./mo_sql

[report]
exclude_lines =
pragma: no cover
except Exception as
except BaseException as
if DEBUG
4 changes: 2 additions & 2 deletions packaging/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
description='More SQL! For safely assembling SQL',
extras_require={"tests":["mo-testing>=8.591.24112"]},
include_package_data=True,
install_requires=["mo-dots==9.603.24115","mo-future==7.584.24095","mo-json==6.603.24115","mo-logs==8.603.24115"],
install_requires=["mo-dots==9.605.24115","mo-future==7.584.24095","mo-json==6.605.24115","mo-logs==8.605.24115"],
license='MPL 2.0',
long_description='# More SQL!\n\nA number of generator functions for type-safe SQL composition.\n\n\n[![PyPI Latest Release](https://img.shields.io/pypi/v/jx-sqlite.svg)](https://pypi.org/project/mo-sql/)\n[![Build Status](https://app.travis-ci.com/klahnakoski/mo-sql.svg?branch=master)](https://travis-ci.com/github/klahnakoski/mo-sql)\n\n## Summary',
long_description_content_type='text/markdown',
name='mo-sql',
packages=["mo_sql"],
url='https://github.com/klahnakoski/mo-sql',
version='4.603.24115'
version='4.605.24115'
)
6 changes: 3 additions & 3 deletions packaging/setuptools.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"extras_require": {"tests": ["mo-testing>=8.591.24112"]},
"include_package_data": true,
"install_requires": [
"mo-dots==9.603.24115", "mo-future==7.584.24095", "mo-json==6.603.24115",
"mo-logs==8.603.24115"
"mo-dots==9.605.24115", "mo-future==7.584.24095", "mo-json==6.605.24115",
"mo-logs==8.605.24115"
],
"license": "MPL 2.0",
"long_description": {
Expand All @@ -41,5 +41,5 @@
"name": "mo-sql",
"packages": ["mo_sql"],
"url": "https://github.com/klahnakoski/mo-sql",
"version": "4.603.24115"
"version": "4.605.24115"
}
12 changes: 6 additions & 6 deletions tests/requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# pip install --no-deps -r tests/requirements.lock
hjson==3.1.0
mo-collections==5.584.24095
mo-dots==9.603.24115
mo-dots==9.605.24115
mo-future==7.584.24095
mo-imports==7.584.24095
mo-json==6.603.24115
mo-kwargs==7.603.24115
mo-logs==8.603.24115
mo-math==7.603.24115
mo-json==6.605.24115
mo-kwargs==7.605.24115
mo-logs==8.605.24115
mo-math==7.605.24115
mo-testing==8.591.24112
mo-threads==6.589.24111
mo-times==5.603.24115
mo-times==5.605.24115
1 change: 1 addition & 0 deletions tests/smoke_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import mo_sql

0 comments on commit f9b5f59

Please sign in to comment.