Skip to content

Commit

Permalink
Setup for release 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomVancyan committed Mar 12, 2023
1 parent 6dce7d7 commit f52478c
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
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/*
22 changes: 22 additions & 0 deletions README.md
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)
22 changes: 21 additions & 1 deletion setup.cfg
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 =
Expand Down
1 change: 1 addition & 0 deletions src/django_mermaid/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.1"

0 comments on commit f52478c

Please sign in to comment.