瀏覽代碼

Merge branch 'main' into binding

Falko Schindler 4 年之前
父節點
當前提交
6ed3f85538
共有 2 個文件被更改,包括 12 次插入5 次删除
  1. 8 4
      .github/workflows/python-publish.yml
  2. 4 1
      pyproject.toml

+ 8 - 4
.github/workflows/python-publish.yml

@@ -13,16 +13,20 @@ jobs:
 
 
     steps:
     steps:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
-      - name: Set up Python
+      - name: set up Python
         uses: actions/setup-python@v2
         uses: actions/setup-python@v2
         with:
         with:
           python-version: "3.x"
           python-version: "3.x"
-      - name: Run image
+      - name: set up Poetry
         uses: abatilo/actions-poetry@v2.0.0
         uses: abatilo/actions-poetry@v2.0.0
         with:
         with:
           poetry-version: "1.1.6"
           poetry-version: "1.1.6"
+      - name: get version
+        id: get_version
+        run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
+      - name: set version
+        run: poetry version ${{ steps.get_version.outputs.VERSION }}
       - name: publish
       - name: publish
         env:
         env:
-          TWINE_USERNAME: __token__
-          TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
+          POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
         run: poetry publish --build
         run: poetry publish --build

+ 4 - 1
pyproject.toml

@@ -4,15 +4,18 @@ version = "0.1.0"
 description = "High-Level Abstraction Web-GUI Using Just Python"
 description = "High-Level Abstraction Web-GUI Using Just Python"
 authors = ["Zauberzeug GmbH"]
 authors = ["Zauberzeug GmbH"]
 license = "MIT"
 license = "MIT"
+readme = "README.md"
+repository = "https://github.com/zauberzeug/nicegui"
+keywords = ["gui", "ui", "web", "interface", "live"]
 
 
 [tool.poetry.dependencies]
 [tool.poetry.dependencies]
 python = "^3.7"
 python = "^3.7"
 justpy = "0.1.5"
 justpy = "0.1.5"
-icecream = "^2.1.0"
 matplotlib = "^3.4.1"
 matplotlib = "^3.4.1"
 typing-extensions = "^3.10.0"
 typing-extensions = "^3.10.0"
 
 
 [tool.poetry.dev-dependencies]
 [tool.poetry.dev-dependencies]
+icecream = "^2.1.0"
 autopep8 = "^1.5.7"
 autopep8 = "^1.5.7"
 debugpy = "^1.3.0"
 debugpy = "^1.3.0"