Skip to content

Commit 161cdb9

Browse files
author
Éric Araujo
committed
update packaging & publishing for fork
1 parent 679c86d commit 161cdb9

8 files changed

Lines changed: 49 additions & 43 deletions

File tree

.github/FUNDING.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/build_js.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: build_js
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build_js:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- run: sudo apt install -y gettext
11+
- uses: actions/setup-node@v3.4.1
12+
- uses: actions/checkout@v3
13+
- name: Install Javascript dependencies
14+
working-directory: ./django_ckeditor_5
15+
run: npm install
16+
- name: Build ck-editor
17+
working-directory: ./django_ckeditor_5
18+
run: npm run prod
19+
- name: Upload built files
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: bundle-js
23+
path: django_ckeditor_5/static/django_ckeditor_5/dist

.github/workflows/lint_python.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: lint_python
22

33
on:
4-
pull_request:
54
push:
65

76
jobs:

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
types: [published]
66

77
jobs:
8-
PyPI:
8+
pypi-publish:
99
runs-on: ubuntu-latest
10+
environment: pypi
11+
permissions:
12+
id-token: write
1013
steps:
1114
- run: sudo apt install -y gettext
1215
- uses: actions/setup-python@v4.2.0
@@ -20,10 +23,7 @@ jobs:
2023
run: npm run prod
2124
- name: Install Python dependencies
2225
run: python -m pip install --upgrade pip build wheel twine packaging
23-
- name: Build dist packages
26+
- name: Build distributions
2427
run: python -m build --sdist --wheel
25-
- name: Upload packages
26-
run: python -m twine upload dist/*
27-
env:
28-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
29-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28+
- name: Upload distributions
29+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/testpypi.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ name: testpypi
33
on: [ workflow_dispatch ]
44

55
jobs:
6-
TestPyPI:
6+
test-pypi-publish:
77
runs-on: ubuntu-latest
8+
environment: testpypi
9+
permissions:
10+
id-token: write
811
steps:
912
- run: sudo apt install -y gettext
1013
- uses: actions/setup-python@v4.2.0
@@ -18,10 +21,9 @@ jobs:
1821
run: npm run prod
1922
- name: Install Python dependencies
2023
run: python -m pip install --upgrade pip build wheel twine packaging
21-
- name: Build dist packages
24+
- name: Build distributions
2225
run: python -m build --sdist --wheel
23-
- name: Upload packages
24-
run: python -m twine upload --repository testpypi dist/*
25-
env:
26-
TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }}
27-
TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }}
26+
- name: Upload distributions
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
repository-url: https://test.pypi.org/legacy/

MANIFEST.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include LICENSE
22
include README.rst
33
recursive-include django_ckeditor_5/static *
44
recursive-include django_ckeditor_5/templates *
5-
include package.json
6-
include package-lock.json
7-
include webpack.config.js
8-
include .gitignore
5+
include django_ckeditor_5/package.json
6+
include django_ckeditor_5/package-lock.json
7+
include django_ckeditor_5/webpack.config.js
8+
include .gitignore

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "django-ckeditor-5"
6+
name = "django-ckeditor-5-caravan"
77
description = "CKEditor 5 for Django."
88
keywords = ["CKEditor", "CKEditor5", "Django"]
99
license = {text = "BSD-3-Clause"}
@@ -14,6 +14,9 @@ version = "0.2.18"
1414
authors = [
1515
{"name" = "Vladislav Khoboko", "email" = "vladislah@gmail.com"},
1616
]
17+
maintainers = [
18+
{"name" = "Caravan Coop", "email" = "hi@caravan.coop"},
19+
]
1720

1821
classifiers = [
1922
"Environment :: Web Environment",
@@ -43,8 +46,8 @@ dependencies = [
4346
]
4447

4548
[project.urls]
46-
homepage = "https://pypi.org/project/django-ckeditor-5/"
47-
repository = "https://github.com/hvlads/django-ckeditor-5"
49+
homepage = "https://pypi.org/project/django-ckeditor-5-caravan/"
50+
repository = "https://github.com/caravancoop/django-ckeditor-5"
4851

4952
[project.optional-dependencies]
5053
dev = [

setup.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)