File tree Expand file tree Collapse file tree 4 files changed +32
-3
lines changed
Expand file tree Collapse file tree 4 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ on :
4+ release :
5+ types : [released]
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python 3.8
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : 3.8
16+ - name : Install Tools
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools wheel twine
20+ - name : Package and Upload
21+ env :
22+ PACKAGE_VERSION : ${{ github.event.release.tag_name }}
23+ TWINE_USERNAME : __token__
24+ TWINE_PASSWORD : ${{ secrets.PYPI }}
25+ run : |
26+ python setup.py sdist bdist_wheel
27+ twine upload dist/*
Original file line number Diff line number Diff line change 1- name : drf-simplepermissions
1+ name : test
22
33on :
44 push :
Original file line number Diff line number Diff line change 1+ import os
12from .permissions import is_demo
23from .permissions import SimplePermissions
34
45
5- __version__ = ' 0.0.4'
6+ __version__ = os . environ . get ( 'PACKAGE_VERSION' , ' 0.0.0' ),
67__all__ = ['SimplePermissions' , 'is_demo' ]
Original file line number Diff line number Diff line change 1+ import os
12from setuptools import setup
23
34setup (name = 'drf-simplepermissions' ,
4- version = ' 0.0.4' ,
5+ version = os . environ . get ( 'PACKAGE_VERSION' , ' 0.0.0' ) ,
56 description = 'SimplePermissions checks against a list of permissions' ,
67 url = 'https://github.com/bellmann/python-drf-simplepermissions' ,
78 author = 'Bellmann BV' ,
You can’t perform that action at this time.
0 commit comments