Skip to content

Commit

Permalink
Kick off
Browse files Browse the repository at this point in the history
This is the initial version, ready for first practical trials.
  • Loading branch information
mristin committed Nov 3, 2024
1 parent 77c6f6d commit 0bd4181
Show file tree
Hide file tree
Showing 2,615 changed files with 81,398 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-test-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build-test docs

on:
push:
branches: [ master, main ]
tags: [ "**" ]
pull_request:
branches: [ "**" ]

jobs:
Execute:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']

steps:
- uses: actions/checkout@master

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -e .
pip3 install -r docs/requirements.txt
- name: Build the docs
run: |
sphinx-build docs/source docs/build
- name: Test the docs
run: |
sphinx-build docs/source docs/build -b doctest
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: [ master, main ]
tags: [ "**" ]
pull_request:
branches: [ "**" ]

jobs:
Check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@master

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install --upgrade coveralls
pip3 install -e .[dev]
- name: Run precommit
run: |
python3 continuous_integration/precommit.py
- name: Upload Coverage
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

Finish-Coveralls:
name: Finish Coveralls
needs: [Check]
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finish Coveralls
run: |
pip3 install --upgrade coveralls
coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Based on https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
name: Publish to Pypi

on:
release:
types: [created]

push:
branches:
- '*/fixed-publishing-to-pypi'

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
17 changes: 17 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements.txt
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Marko Ristin ([email protected], [email protected], [email protected]) for Zurich University of Applied Sciences (ZHAW)
4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 aas-core-works
Copyright (c) 2023 aas-core3.0-python-protobuf AUTHORS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -19,3 +19,5 @@ 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.

Please see the file AUTHORS for the full list of the authors of aas-core3.0-python-protobuf.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# aas-core3.0-python-protobuf
Convert AAS instances between Python and Python ProtoBuf objects.
Convert Asset Administration Shells V3.0 between Python and ProtoBuf objects.

This is a library to convert Asset Administration Shells V3.0 between Python and ProtoBuf objects.

The documentation is available on: https://aas-core30-python-protobuf.readthedocs.io/en/latest/.

The majority of the code has been automatically generated by [aas-core-codegen].

The definitions of the Protocol Buffers are given in [aas-core-protobuf] repository.

If you want to contribute, see our [contributing guide].

[aas-core-codegen]: https://github.com/aas-core-works/aas-core-codegen

[aas-core-protobuf]: https://github.com/aas-core-works/aas-core-protobuf

[contributing guide]: https://aas-core30-python-protobuf.readthedocs.io/en/latest/contributing.html
7 changes: 7 additions & 0 deletions aas_core3_protobuf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""Convert AAS instances between Python and Python ProtoBuf objects."""

__version__ = "0.0.1"
__author__ = "Marko Ristin"
__copyright__ = "2024 Contributors to aas-core3.0-python-protobuf"
__license__ = "License :: OSI Approved :: MIT License"
__status__ = "Production/Stable"
Loading

0 comments on commit 0bd4181

Please sign in to comment.