From 882070c7836d4cc0bccdffe04de0b4b50e840fc2 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 23 Jun 2023 06:59:28 +0800 Subject: Initial commit --- .github/workflows/python-publish.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 4 ++++ LICENSE | 21 +++++++++++++++++++++ README.md | 23 +++++++++++++++++++++++ pyproject.toml | 6 ++++++ retro_pkg_test/__init__.py | 1 + retro_pkg_test/hello.py | 2 ++ setup.cfg | 17 +++++++++++++++++ 8 files changed, 105 insertions(+) create mode 100644 .github/workflows/python-publish.yml create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 pyproject.toml create mode 100644 retro_pkg_test/__init__.py create mode 100644 retro_pkg_test/hello.py create mode 100644 setup.cfg diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 00000000..ba5bf1c7 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + - name: Install dependencies + run: | + python3 -m pip install --upgrade build + python3 -m pip install --user --upgrade twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python3 -m build + python3 -m twine upload dist/* diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..16405450 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build +dist +py_pkg/__pycache__ +py_pkg.egg-info diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..42ccda78 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 CatchZeng + +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/README.md b/README.md new file mode 100644 index 00000000..27ce38ab --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +

+ Cross-platform robot framework, mainly used for ML. +
+
+
+
+
+
