Compare commits
13 Commits
1.0
...
1.0.1-gite
| Author | SHA1 | Date | |
|---|---|---|---|
| e53af9bb26 | |||
|
|
f5abc6f0f4 | ||
|
|
14b48e7f41 | ||
|
|
930927b489 | ||
|
|
9c468adf7d | ||
|
|
465064f412 | ||
|
|
069caaf2d1 | ||
|
|
73f21ac6cd | ||
|
|
23a617ef62 | ||
|
|
cfd6c2acb9 | ||
|
|
3645ecc257 | ||
|
|
d7dbbda2f9 | ||
|
|
5f0556c5c9 |
@@ -10,7 +10,7 @@ jobs:
|
|||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
- name: Building the package
|
- name: Building the package
|
||||||
run: |
|
run: |
|
||||||
mv ${{ gitea.workspace }}\AirwatchAPI.py ${{ gitea.workspace }}\build\src\AirwatchAPI\
|
powershell mv ${{ gitea.workspace }}\AirwatchAPI.py build\src\AirwatchAPI\
|
||||||
cd ${{ gitea.workspace }}\build
|
cd ${{ gitea.workspace }}\build
|
||||||
python -m build
|
python -m build
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
|
|||||||
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
image: python:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
TWINE_USERNAME: gitlab-ci-token
|
||||||
|
TWINE_PASSWORD: $CI_JOB_TOKEN
|
||||||
|
|
||||||
|
build: # This job runs in the build stage, which runs first.
|
||||||
|
script:
|
||||||
|
- pip install build twine
|
||||||
|
- mv AirwatchAPI.py build/src/AirwatchAPI/
|
||||||
|
- cd build/
|
||||||
|
- python -m build
|
||||||
|
- python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "AirwatchAPI"
|
name = "AirwatchAPI"
|
||||||
version = "1.0.0"
|
version = "1.0.1"
|
||||||
description = "A module python to make it easier to use Workspace One API"
|
description = "A module python to make it easier to use Workspace One API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.7"
|
||||||
|
|||||||
1
build/src/AirwatchAPI/__init__.py
Normal file
1
build/src/AirwatchAPI/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
__all__ = ["AirwatchAPI"]
|
||||||
Reference in New Issue
Block a user