Browse Source
Merge pull request #1827 from doccano/enhancement/pypiWorkflow
[Enhancement] pypi workflow
pull/1830/head
v1.7.0
Hiroki Nakayama
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
12 deletions
-
.github/workflows/pypi-publish.yml
-
backend/config/celery.py
-
backend/pyproject.toml
|
@ -43,11 +43,11 @@ jobs: |
|
|
working-directory: ./backend |
|
|
working-directory: ./backend |
|
|
- name: Build a binary wheel and a source tarball |
|
|
- name: Build a binary wheel and a source tarball |
|
|
run: | |
|
|
run: | |
|
|
|
|
|
sed -e "s/, from = \"..\"//g" backend/pyproject.toml > pyproject.toml |
|
|
poetry build |
|
|
poetry build |
|
|
working-directory: ./backend |
|
|
|
|
|
- name: Publish a Python distribution to PyPI |
|
|
- name: Publish a Python distribution to PyPI |
|
|
uses: pypa/gh-action-pypi-publish@master |
|
|
uses: pypa/gh-action-pypi-publish@master |
|
|
with: |
|
|
with: |
|
|
user: ${{ secrets.PYPI_USERNAME }} |
|
|
user: ${{ secrets.PYPI_USERNAME }} |
|
|
password: ${{ secrets.PYPI_PASSWORD }} |
|
|
password: ${{ secrets.PYPI_PASSWORD }} |
|
|
packages_dir: ./backend/dist/ |
|
|
|
|
|
|
|
|
packages_dir: ./dist/ |
|
@ -2,7 +2,7 @@ import os |
|
|
|
|
|
|
|
|
from celery import Celery |
|
|
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") |
|
|
app = Celery("config") |
|
|
|
|
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
[tool.poetry] |
|
|
[tool.poetry] |
|
|
name = "doccano" |
|
|
name = "doccano" |
|
|
version = "0.0.0" |
|
|
|
|
|
|
|
|
version = "1.7.0" |
|
|
description = "doccano, text annotation tool for machine learning practitioners" |
|
|
description = "doccano, text annotation tool for machine learning practitioners" |
|
|
authors = ["Hironsan <hiroki.nakayama.py@gmail.com>"] |
|
|
authors = ["Hironsan <hiroki.nakayama.py@gmail.com>"] |
|
|
license = "MIT" |
|
|
license = "MIT" |
|
@ -16,14 +16,14 @@ packages = [ |
|
|
{ include = "backend", from = ".." }, |
|
|
{ include = "backend", from = ".." }, |
|
|
] |
|
|
] |
|
|
include = [ |
|
|
include = [ |
|
|
"client/dist/**/*", |
|
|
|
|
|
"staticfiles/**/*" |
|
|
|
|
|
|
|
|
"backend/client/dist/**/*", |
|
|
|
|
|
"backend/staticfiles/**/*" |
|
|
] |
|
|
] |
|
|
exclude = [ |
|
|
exclude = [ |
|
|
"filepond-temp-uploads", |
|
|
|
|
|
"media", |
|
|
|
|
|
"db.sqlite3*", |
|
|
|
|
|
"poetry.lock" |
|
|
|
|
|
|
|
|
"backend/filepond-temp-uploads", |
|
|
|
|
|
"backend/media", |
|
|
|
|
|
"backend/db.sqlite3*", |
|
|
|
|
|
"backend/poetry.lock" |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
[tool.poetry.extras] |
|
|
[tool.poetry.extras] |
|
@ -82,11 +82,11 @@ taskipy = "^1.10.1" |
|
|
unittest-xml-reporting = "^3.2.0" |
|
|
unittest-xml-reporting = "^3.2.0" |
|
|
|
|
|
|
|
|
[build-system] |
|
|
[build-system] |
|
|
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] |
|
|
|
|
|
|
|
|
requires = ["poetry-core>=1.0.0"] |
|
|
build-backend = "poetry.core.masonry.api" |
|
|
build-backend = "poetry.core.masonry.api" |
|
|
|
|
|
|
|
|
[tool.poetry-dynamic-versioning] |
|
|
[tool.poetry-dynamic-versioning] |
|
|
enable = true |
|
|
|
|
|
|
|
|
enable = false |
|
|
|
|
|
|
|
|
[tool.black] |
|
|
[tool.black] |
|
|
line-length = 120 |
|
|
line-length = 120 |
|
|