From e3143c790bb56d4936d7a07388a11f3be4ef93b6 Mon Sep 17 00:00:00 2001 From: Connor Ferster Date: Wed, 27 Aug 2025 12:11:57 -0700 Subject: [PATCH] Update publish workflow and readme.md --- .github/workflows/python-publish.yml | 32 ++++++++++++---------------- README.md | 5 +++++ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 68a8acb..4cb1b42 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,21 +21,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install flit - flit install - - name: Build package - run: | - flit build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Build Project + run: | + uv sync + uv build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/README.md b/README.md index e69de29..c3df6d1 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,5 @@ +# load_distribution + +A Python package for projecting abritrary, piecewise-linear polygons into a line. + +Useful for converting arbitrary polygons within a tributary area onto a beam or other linear element (in structural engineering). \ No newline at end of file