Skip to content

Commit e3143c7

Browse files
committed
Update publish workflow and readme.md
1 parent 5b88708 commit e3143c7

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/python-publish.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,17 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
25-
- name: Set up Python
26-
uses: actions/setup-python@v3
27-
with:
28-
python-version: '3.x'
29-
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
python -m pip install flit
33-
flit install
34-
- name: Build package
35-
run: |
36-
flit build
37-
- name: Publish package
38-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
39-
with:
40-
user: __token__
41-
password: ${{ secrets.PYPI_API_TOKEN }}
24+
- uses: actions/checkout@v4
25+
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v6
28+
29+
- name: Build Project
30+
run: |
31+
uv sync
32+
uv build
33+
- name: Publish package
34+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
35+
with:
36+
user: __token__
37+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# load_distribution
2+
3+
A Python package for projecting abritrary, piecewise-linear polygons into a line.
4+
5+
Useful for converting arbitrary polygons within a tributary area onto a beam or other linear element (in structural engineering).

0 commit comments

Comments
 (0)