Skip to content

Commit f455b32

Browse files
authored
First working version integrated with Github Actions (makecodes#1)
* Working!
1 parent 2dcfd47 commit f455b32

File tree

4 files changed

+64
-6
lines changed

4 files changed

+64
-6
lines changed

.github/workflows/production.yml

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

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# django-dbml
1+
# Django DBML generator
22

33
This app can generate a DBML output for all installed models.
44

@@ -23,3 +23,7 @@ pip install django-dbml
2323
```bash
2424
$ python manage.py dbml
2525
```
26+
27+
# Thanks
28+
29+
The initial code was based on https://github.com/hamedsj/DbmlForDjango project

setup.cfg

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
[metadata]
22
name = django-dbml
3-
version = 0.3.3
4-
description = This app can generate a DBML output for all installed models.
3+
version = 0.3.5
4+
description = Django extension aimed to generate DBML from all models
55
long_description_content_type = text/markdown
66
long_description = file: README.md
7-
url = https://makecodes.dev/
7+
url = https://github.com/makecodesdev/django-dbml
88
author = Michel Wilhelm
99
author_email = [email protected]
10-
license = unlicense
10+
license = MIT
11+
install_requires =
12+
django>=2.0
13+
1114
classifiers =
1215
Environment :: Web Environment
1316
Framework :: Django
1417
Framework :: Django :: 2.0
1518
Intended Audience :: Developers
16-
License :: OSI Approved :: BSD License
1719
Operating System :: OS Independent
1820
Programming Language :: Python
1921
Programming Language :: Python :: 3

0 commit comments

Comments
 (0)