From f52b89d0c1cead0c07f41054bf10fe12ef40bf5b Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 19 May 2022 15:57:26 +0900 Subject: [PATCH] Update pypi workflow --- .github/workflows/pypi-publish.yml | 4 ++-- backend/pyproject.toml | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index c008caf8..c67f2e95 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -43,11 +43,11 @@ jobs: working-directory: ./backend - name: Build a binary wheel and a source tarball run: | + sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml poetry build - working-directory: ./backend - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@master with: user: ${{ secrets.PYPI_USERNAME }} password: ${{ secrets.PYPI_PASSWORD }} - packages_dir: ./backend/dist/ + packages_dir: ./dist/ diff --git a/backend/pyproject.toml b/backend/pyproject.toml index b0cca052..6fbf0680 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "doccano" -version = "0.0.0" +version = "1.7.0" description = "doccano, text annotation tool for machine learning practitioners" authors = ["Hironsan "] license = "MIT" @@ -16,14 +16,14 @@ packages = [ { include = "backend", from = ".." }, ] include = [ - "client/dist/**/*", - "staticfiles/**/*" + "backend/client/dist/**/*", + "backend/staticfiles/**/*" ] exclude = [ - "filepond-temp-uploads", - "media", - "db.sqlite3*", - "poetry.lock" + "backend/filepond-temp-uploads", + "backend/media", + "backend/db.sqlite3*", + "backend/poetry.lock" ] [tool.poetry.extras] @@ -82,11 +82,11 @@ taskipy = "^1.10.1" unittest-xml-reporting = "^3.2.0" [build-system] -requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] +requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry-dynamic-versioning] -enable = true +enable = false [tool.black] line-length = 120