Skip to content

Commit 3f48446

Browse files
committed
poetry conversion code_gen_lib
1 parent a67b3cc commit 3f48446

File tree

8 files changed

+726
-128
lines changed

8 files changed

+726
-128
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
test:
1414
strategy:
1515
matrix:
16-
python-version: ['3.8', '3.9', '3.10']
16+
python-version: ['3,7','3.8']
1717
runs-on: ubuntu-latest
1818

1919
steps:
@@ -24,15 +24,15 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
27-
python -m pip install --upgrade pip setuptools wheel
28-
pip install --no-cache-dir ".[test]"
27+
python -m pip install --upgrade pip poetry
28+
poetry install --no-root
2929
pip list
3030
- name: Lint with Flake8
3131
run: |
32-
flake8
32+
poetry run flake8
3333
- name: Test with pytest
3434
run: |
35-
python -m coverage run -m pytest -r sx
35+
poetry run python -m coverage run -m pytest -r sx
3636
- name: Report coverage with Codecov
3737
if: github.event_name == 'push'
3838
run: |

.github/workflows/pypi.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ jobs:
1616
python-version: 3.8
1717
- name: Install dependencies
1818
run: |
19-
python -m pip install --upgrade pip build
20-
- name: Build the servicex wheel
21-
env:
22-
servicex_version: ${{ github.ref }}
19+
python -m pip install --upgrade pip poetry
20+
poetry install --no-root
21+
- name: Build Library
2322
run: |
24-
python -m build --sdist --wheel
25-
- name: Publish servicex to PyPI
26-
uses: pypa/gh-action-pypi-publish@v1.3.1
27-
with:
28-
user: __token__
29-
password: ${{ secrets.pypi_password_servicex }}
23+
poetry build
24+
- name: Publish to PyPI
25+
run: |
26+
poetry config pypi-token.pypi ${{ secrets.pypi_password_servicex }}
27+
poetry publish
3028

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
<!-- @format -->
2+
13
# ServiceX Code Generator Library
2-
This library provides common code for creating Code Generator services for
3-
ServiceX.
44

5+
This library provides common code for creating Code Generator services for
6+
ServiceX.

0 commit comments

Comments
 (0)