Skip to content

Commit

Permalink
Merge pull request #1827 from doccano/enhancement/pypiWorkflow
Browse files Browse the repository at this point in the history
[Enhancement] pypi workflow
  • Loading branch information
Hironsan committed May 19, 2022
2 parents 997a9bd + f52b89d commit 50318b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion backend/config/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from celery import Celery

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.development")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")

app = Celery("config")

Expand Down
18 changes: 9 additions & 9 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <hiroki.nakayama.py@gmail.com>"]
license = "MIT"
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 50318b3

Please sign in to comment.