diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..435632c --- /dev/null +++ b/.github/workflows/publish.yml @@ -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/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..81afbbc --- /dev/null +++ b/README.md @@ -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) diff --git a/setup.cfg b/setup.cfg index 4b552cc..5dab179 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,26 @@ [metadata] name = django-mermaid -version = 0.0.1 +version = attr: django_mermaid.__version__ +author = Artyom Vancyan +author_email = artyom@pysnippet.org +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 = diff --git a/src/django_mermaid/__init__.py b/src/django_mermaid/__init__.py index e69de29..f102a9c 100644 --- a/src/django_mermaid/__init__.py +++ b/src/django_mermaid/__init__.py @@ -0,0 +1 @@ +__version__ = "0.0.1"