From 46af09282fb4c34e194cfd6673db6e1f8b47dbd7 Mon Sep 17 00:00:00 2001 From: Diego Garcia Date: Tue, 4 Aug 2020 12:23:30 -0300 Subject: [PATCH] Add release job on CI workflows This job will be triggered on new tags and build and release the package on Pypi --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ pyproject.toml | 13 +++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 LICENSE diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fce4e78 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: release + +on: + push: + tags: + - '*' + +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.5 + + - name: Install Poetry + uses: dschep/install-poetry-action@v1.2 + + - name: build + run: poetry build + + - name: publish + run: poetry publish -n -u "$USERNAME" -p "$PASSWORD" + env: + USERNAME: ${{ secrets.PYPI_USERNAME }} + PASSWORD: ${{ secrets.PYPI_PASSWORD }} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c0ce841 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 LuizaLabs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/pyproject.toml b/pyproject.toml index 0eb1e32..a79187a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,19 @@ name = "shared-memory-dict" version = "0.0.0" description = "A very simple shared memory dict implementation" authors = ["Arquitetura LuizaLabs "] +license = "MIT" +readme = "README.md" +homepage = "https://github.com/luizalabs/shared-memory-dict" +repository = "https://github.com/luizalabs/shared-memory-dict" +keywords = ["django", "aiocache", "shared memory"] +classifiers = [ + "Operating System :: OS Independent", + "License :: OSI Approved :: MIT License", + "Topic :: Software Development :: Libraries :: Python Modules", +] +include = [ + "LICENSE", +] [tool.poetry.dependencies] python = "^3.8"