dioptic.profileparser 0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ name: Build & publish PyPI packages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ tags:
8
+ - v[0-9]+.**
9
+
10
+ jobs:
11
+ build-sdist:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - name: Build sdist package
16
+ run: |
17
+ python -m pip install pip build --upgrade
18
+ python -m build --sdist
19
+ - uses: actions/upload-artifact@v3
20
+ with:
21
+ name: packages
22
+ path: "dist/*.tar.gz"
23
+
24
+ build-win64-wheels:
25
+ runs-on: windows-latest
26
+ strategy:
27
+ matrix:
28
+ python-version: ["3.9", "3.10", "3.11"]
29
+ steps:
30
+ - uses: actions/checkout@v3
31
+ - uses: ilammy/msvc-dev-cmd@v1
32
+ - uses: actions/setup-python@v4
33
+ with:
34
+ python-version: ${{ matrix.python-version }}
35
+ - name: Build wheel for py${{ matrix.python-version }}
36
+ run: |
37
+ python -m pip install pip build --upgrade
38
+ python -m build --wheel
39
+ - uses: actions/upload-artifact@v3
40
+ with:
41
+ name: packages
42
+ path: "dist/*.whl"
43
+
44
+ pypi-publish:
45
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
46
+ needs: [build-sdist, build-win64-wheels]
47
+ runs-on: ubuntu-latest
48
+ permissions:
49
+ # IMPORTANT: this permission is mandatory for trusted publishing
50
+ id-token: write
51
+ steps:
52
+ - uses: actions/download-artifact@v3
53
+ with:
54
+ name: packages
55
+ path: dist
56
+ - name: Test PyPI publish
57
+ uses: pypa/gh-action-pypi-publish@release/v1
58
+ with:
59
+ repository-url: https://test.pypi.org/legacy/
60
+ skip-existing: true
61
+ - name: PyPI publish
62
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,3 @@
1
+ build
2
+ .vscode
3
+ *.user
@@ -0,0 +1,76 @@
1
+ default:
2
+ tags: ["argos", "docker"]
3
+
4
+ stages:
5
+ - build
6
+ - deploy
7
+
8
+ workflow:
9
+ rules:
10
+ - if: '$CI_PIPELINE_SOURCE == "web"'
11
+ when: always
12
+ - when: never
13
+
14
+ build-windows:
15
+ image: argos-buildenv
16
+ tags: ["windows"]
17
+ stage: build
18
+
19
+ variables:
20
+ CIBW_BUILD: cp3{9,10}-win_amd64
21
+ script:
22
+ - pip install cibuildwheel
23
+ - python -m cibuildwheel
24
+ artifacts:
25
+ paths:
26
+ - wheelhouse/*.whl
27
+
28
+
29
+
30
+ deploy-windows:
31
+ image: argos-buildenv
32
+ tags: ["windows"]
33
+ stage: deploy
34
+ needs: ["build-windows"]
35
+ script:
36
+ - python -m pip install twine
37
+ - $env:TWINE_PASSWORD=${CI_JOB_TOKEN}
38
+ - $env:TWINE_USERNAME="gitlab-ci-token"
39
+ - python -m twine upload --skip-existing --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi wheelhouse/*.whl
40
+
41
+ # This would need to run docker inside docker which is apparently a thing (https://www.docker.com/blog/docker-can-now-run-within-docker/)
42
+ # But the smarter option is probably to define a linux vm-executor...
43
+ #build-linux:
44
+ # image: argos-python-linux
45
+ # tags: ["linux"]
46
+ # stage: build
47
+
48
+ # variables:
49
+ # CIBW_BUILD: cp3{9,10}-manylinux_x86_64
50
+ # script:
51
+ # - pip install cibuildwheel
52
+ # - python -m cibuildwheel
53
+
54
+ build-linux:
55
+ image: argos-python-linux
56
+ tags: ["linux"]
57
+ stage: build
58
+
59
+ variables:
60
+ CIBW_BUILD: cp3{9,10}-manylinux_x86_64
61
+ script:
62
+ - pip wheel --verbose .
63
+ artifacts:
64
+ paths:
65
+ - "*.whl"
66
+
67
+ deploy-linux:
68
+ image: argos-python-linux
69
+ tags: ["linux"]
70
+ stage: deploy
71
+ needs: ["build-linux"]
72
+ script:
73
+ - python -m pip install twine
74
+ - export TWINE_PASSWORD=${CI_JOB_TOKEN}
75
+ - export TWINE_USERNAME="gitlab-ci-token"
76
+ - python -m twine upload --skip-existing --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi *.whl
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Peter Würtz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.1
2
+ Name: dioptic.profileparser
3
+ Version: 0.1
4
+ Summary: Parser library for ARGOS declarative profiles.
5
+ Home-page: https://github.com/dioptic/profileparser
6
+ Author: Peter Würtz
7
+ Author-email: pwuertz@gmail.com
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+
11
+ # Dioptic declarative profile parser
@@ -0,0 +1 @@
1
+ # Dioptic declarative profile parser