Skip to content

Commit

Permalink
feat: add semantic-release-pypi plugin
Browse files Browse the repository at this point in the history
Signed-off-by: yyellowsun <coder328@163.com>
  • Loading branch information
yyellowsun committed Dec 4, 2020
1 parent 5b3542e commit e53d842
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 46 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,18 @@ jobs:
uses: actions/setup-node@v1

- name: Setup
run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/npm @semantic-release/git @semantic-release/release-notes-generator

run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator semantic-release-pypi

- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install setuptools
run: python -m pip install --upgrade setuptools wheel twine

- name: Rlease
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: npx semantic-release
8 changes: 4 additions & 4 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"branch": "master",
"branches": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/release-notes-generator",
"semantic-release-pypi",
"@semantic-release/github",
[
"@semantic-release/changelog",
{
Expand All @@ -15,8 +15,8 @@
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
"assets": ["CHANGELOG.md", "setup.py", "setup.cfg"],
}
]
]
Expand Down
1 change: 1 addition & 0 deletions casbin/core_enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class CoreEnforcer:

def __init__(self, model=None, adapter=None, enable_log=False):
self.enable_log(enable_log)

if isinstance(model, str):
if isinstance(adapter, str):
self.init_with_file(model, adapter)
Expand Down
36 changes: 0 additions & 36 deletions package.json

This file was deleted.

3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

setuptools.setup(
name="casbin",
version="0.10.0",
author="TechLee",
author_email="techlee@qq.com",
description="An authorization library that supports access control models like ACL, RBAC, ABAC in Python",
Expand All @@ -30,4 +29,4 @@
"Operating System :: OS Independent",
],
data_files=[desc_file],
)
)

0 comments on commit e53d842

Please sign in to comment.