Skip to content

Commit f52478c

Browse files
committed
Setup for release 0.0.1
1 parent 6dce7d7 commit f52478c

File tree

4 files changed

+72
-1
lines changed

4 files changed

+72
-1
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
25+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
run: |
27+
python setup.py sdist bdist_wheel
28+
twine upload dist/*

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Django Mermaid
2+
3+
Django template tag for showing mermaid diagrams.
4+
5+
[![PyPI](https://img.shields.io/pypi/v/django-mermaid.svg)](https://pypi.org/project/django-mermaid/)
6+
[![License](https://img.shields.io/pypi/l/django-mermaid.svg)](https://github.com/ArtyomVancyan/django-mermaid/blob/master/LICENSE)
7+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)
8+
9+
## Install
10+
11+
```shell
12+
python -m pip install django-mermaid
13+
```
14+
15+
## Contribute
16+
17+
Any contribution is welcome. If you have any ideas or suggestions, feel free to open an issue or a pull request. And
18+
don't forget to add tests for your changes.
19+
20+
## License
21+
22+
Copyright (C) 2023 Artyom Vancyan. [MIT](https://github.com/ArtyomVancyan/django-mermaid/blob/master/LICENSE)

setup.cfg

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
[metadata]
22
name = django-mermaid
3-
version = 0.0.1
3+
version = attr: django_mermaid.__version__
4+
author = Artyom Vancyan
5+
author_email = [email protected]
6+
description = Django template tag for showing mermaid diagrams
7+
long_description = file: README.md
8+
long_description_content_type = text/markdown
9+
url = https://github.com/ArtyomVancyan/django-mermaid
10+
keywords =
11+
python
12+
django
13+
mermaid
14+
mermaid-diagrams
15+
django-templatetag
16+
license = MIT
17+
license_file = LICENSE
18+
platforms = unix, linux, osx, win32
19+
classifiers =
20+
Framework :: Django
21+
Operating System :: OS Independent
22+
Programming Language :: Python :: 3
23+
License :: OSI Approved :: MIT License
424

525
[options]
626
packages =

src/django_mermaid/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.1"

0 commit comments

Comments
 (0)