Added build files
All checks were successful
Build python package / Build (push) Successful in 15s

This commit is contained in:
2026-02-11 21:12:07 +01:00
parent c0a34e4c98
commit 04a8fe6cdc
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
name: Build python package
run-name: building python package AirwatchAPI
on: [push]
jobs:
Build:
runs-on: windows
steps:
- name: Check out repository code
uses: actions/checkout@main
- name: Building the package
run: |
mv ${{ gitea.workspace }}\AirwatchAPI.py ${{ gitea.workspace }}\build\src\AirwatchAPI\
cd ${{ gitea.workspace }}\build
python -m build
- name: Publish package
run: |
python -m twine upload -u ${{ secrets.repo_user }} -p ${{ secrets.repo_pass }} --repository-url ${{ secrets.repo_url }} ${{ gitea.workspace }}\build\dist\*
if: github.ref_type == 'tag'

16
build/pyproject.toml Normal file
View File

@@ -0,0 +1,16 @@
[build-system]
requires = [
"setuptools >= 77.0.3",
"requests >= 2.32.5"
]
build-backend = "setuptools.build_meta"
[project]
name = "AirwatchAPI"
version = "1.0.0"
description = "A module python to make it easier to use Workspace One API"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3"
]

0
build/src/__init__.py Normal file
View File