-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dce7d7
commit f52478c
Showing
4 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Django Mermaid | ||
|
||
Django template tag for showing mermaid diagrams. | ||
|
||
[![PyPI](https://img.shields.io/pypi/v/django-mermaid.svg)](https://pypi.org/project/django-mermaid/) | ||
[![License](https://img.shields.io/pypi/l/django-mermaid.svg)](https://github.com/ArtyomVancyan/django-mermaid/blob/master/LICENSE) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com) | ||
|
||
## Install | ||
|
||
```shell | ||
python -m pip install django-mermaid | ||
``` | ||
|
||
## Contribute | ||
|
||
Any contribution is welcome. If you have any ideas or suggestions, feel free to open an issue or a pull request. And | ||
don't forget to add tests for your changes. | ||
|
||
## License | ||
|
||
Copyright (C) 2023 Artyom Vancyan. [MIT](https://github.com/ArtyomVancyan/django-mermaid/blob/master/LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
[metadata] | ||
name = django-mermaid | ||
version = 0.0.1 | ||
version = attr: django_mermaid.__version__ | ||
author = Artyom Vancyan | ||
author_email = [email protected] | ||
description = Django template tag for showing mermaid diagrams | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/ArtyomVancyan/django-mermaid | ||
keywords = | ||
python | ||
django | ||
mermaid | ||
mermaid-diagrams | ||
django-templatetag | ||
license = MIT | ||
license_file = LICENSE | ||
platforms = unix, linux, osx, win32 | ||
classifiers = | ||
Framework :: Django | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
License :: OSI Approved :: MIT License | ||
|
||
[options] | ||
packages = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "0.0.1" |