diff options
| author | 2023-06-23 06:59:28 +0800 | |
|---|---|---|
| committer | 2023-06-23 06:59:28 +0800 | |
| commit | 882070c7836d4cc0bccdffe04de0b4b50e840fc2 (patch) | |
| tree | 18226755d09c619a2eebf194cd7132602d5696d6 | |
| download | infini-882070c7836d4cc0bccdffe04de0b4b50e840fc2.tar.gz infini-882070c7836d4cc0bccdffe04de0b4b50e840fc2.zip | |
Initial commit
| -rw-r--r-- | .github/workflows/python-publish.yml | 31 | ||||
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | LICENSE | 21 | ||||
| -rw-r--r-- | README.md | 23 | ||||
| -rw-r--r-- | pyproject.toml | 6 | ||||
| -rw-r--r-- | retro_pkg_test/__init__.py | 1 | ||||
| -rw-r--r-- | retro_pkg_test/hello.py | 2 | ||||
| -rw-r--r-- | setup.cfg | 17 |
8 files changed, 105 insertions, 0 deletions
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 @@ +<p align="center"><img width="128" src="https://iamai.retrofor.space/retro.png"></p> +<h1 align="center"> + retro docs +</h1> +<p align="center"> + Cross-platform robot framework, mainly used for ML. +</p> +<p align="center"> + <a style="text-decoration:none" href="https://github.com/retrofor/retro_pkg_test/releases" target="_blank"> + <img src="https://img.shields.io/github/release/retrofor/retro_pkg_test.svg" alt="Latest version" /> + </a> +</p> +<p align="center"><img width="512" src="https://raw.githubusercontent.com/retrofor/retrofor.github.io/master/static/img/logo.png"></p> + +## 👀 See the docs +> choices below. + +- <https://doc.retrofor.space> _(recommend)_ +- <https://retrofor.netlify.app> +- ~~<https://retrofor.github.io>~~ + +## 📄 License +[GNU GPLv3.0](https://github.com/retrofor/retro_pkg_test/blob/master/LICENSE) © 2023-PRESENT [简律纯](https://github.com/HsiangNianian) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..b5a3c468 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta"
\ No newline at end of file diff --git a/retro_pkg_test/__init__.py b/retro_pkg_test/__init__.py new file mode 100644 index 00000000..2db7619e --- /dev/null +++ b/retro_pkg_test/__init__.py @@ -0,0 +1 @@ +name = "retro_pkg_test" diff --git a/retro_pkg_test/hello.py b/retro_pkg_test/hello.py new file mode 100644 index 00000000..dd9b9d4d --- /dev/null +++ b/retro_pkg_test/hello.py @@ -0,0 +1,2 @@ +def hello(): + print("hello") diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..82d033b2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,17 @@ +[metadata] +name = retro_pkg_test +version = 3.1415 +author = 简律纯 +author_email = HsiangNianian@outlook.com +description = A test pkg for retro. +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/retrofor/retro_pkg_test +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +packages = find: +python_requires = >=3.6 |
