-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from bellmann/develop
chore(release): version 0.0.5
- Loading branch information
Showing
6 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Package and Upload | ||
env: | ||
PACKAGE_VERSION: ${{ github.event.release.tag_name }} | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Test with tox | ||
run: | | ||
tox -e setup,flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from .permissions import * # noqa | ||
import os | ||
from .permissions import is_demo | ||
from .permissions import SimplePermissions | ||
|
||
|
||
__version__ = '0.0.1' | ||
__version__ = os.environ.get('PACKAGE_VERSION', '0.0.0'), | ||
__all__ = ['SimplePermissions', 'is_demo'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import os | ||
from setuptools import setup | ||
|
||
setup(name='drf-simplepermissions', | ||
version='0.0.4', | ||
version=os.environ.get('PACKAGE_VERSION', '0.0.0'), | ||
description='SimplePermissions checks against a list of permissions', | ||
url='https://git.sensson.net/bellmann/python-drf-simplepermissions', | ||
url='https://github.com/bellmann/python-drf-simplepermissions', | ||
author='Bellmann BV', | ||
author_email='ton@bellmann.nl', | ||
author_email='opensource@bellmann.nl', | ||
packages=['drf_simplepermissions'], | ||
install_requires=[ | ||
'django', | ||
'djangorestframework', | ||
], | ||
python_requires='>=3.4', | ||
zip_safe=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ commands = | |
|
||
[testenv:flake8] | ||
deps = flake8 | ||
commands = flake8 gongchang | ||
commands = flake8 drf_simplepermissions |