From 54d2b561bffaa6e5873f83170879e1a3f4a7313d Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Wed, 6 Sep 2023 16:29:07 +0200 Subject: [PATCH 1/4] add workflow for pypi upload --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6be83c7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: pypi upload + +on: + push: + branches: ["main"] + +jobs: + wheel_build_full: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: build wheels and sdist + run: pipx run build + + - uses: actions/upload-artifact@v3 + with: + path: ./dist/* + + upload_pypi: + needs: [wheel_build_full] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + with: + name: artifact + path: dist + + - uses: pypa/gh-action-pypi-publish@v1.6.1 + with: + skip_existing: true + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} From 6191f24e2a4a534cb4672f5f4d1868a5fe947bb3 Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Wed, 6 Sep 2023 16:40:52 +0200 Subject: [PATCH 2/4] update readme --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9ac5cf..d27cf31 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# feigen - python interactive front end for iganet. +# feigen - python interactive Front End for IGA ENgines. +feigen is a python library for interactive spline plotting. +It focues on supporting isogeometric analysis tools, such as `iganet`, `splinepy`, and `pygismo`. + +## Install guide +you can install feigen using `pip`: +``` +pip install feigen +``` +For the latest develop version: +``` +pip install git+https://github.com/tataratat/feigen.git@main +``` From db74789b5083d24351fb56e032c95726c1ee6221 Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Wed, 6 Sep 2023 16:41:09 +0200 Subject: [PATCH 3/4] update minimum python version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a577c3f..e5ba61e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ authors = [ {name = 'Matthias Möller', email = 'mmoelle1@gmail.com'}, ] readme = 'README.md' -requires-python = '>=3.6' +requires-python = '>=3.7' keywords = ['iganet', 'interactive'] license = {text = 'MPL 2.0'} classifiers = [ From 5ab3f9f2a350f2b57fbe8312d95740395ab1d541 Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Wed, 6 Sep 2023 16:48:45 +0200 Subject: [PATCH 4/4] add an example --- README.md | 7 +++++++ examples/iganet_bspline2d.py | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 examples/iganet_bspline2d.py diff --git a/README.md b/README.md index d27cf31..f9ee182 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,10 @@ For the latest develop version: ``` pip install git+https://github.com/tataratat/feigen.git@main ``` + +## Quick start +Current version supports iganet's BSplineSurface. +Assuming that you have a server running, +``` +python3 -c "import feigen; feigen.BSpline2D('ws://localhost:9001').start()" +``` diff --git a/examples/iganet_bspline2d.py b/examples/iganet_bspline2d.py new file mode 100644 index 0000000..1f71ba6 --- /dev/null +++ b/examples/iganet_bspline2d.py @@ -0,0 +1,7 @@ +import feigen + +if __name__ == "__main__": + # feigen.log.configure(debug=True) + + b = feigen.BSpline2D("ws://localhost:9001") + b.start()