diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml deleted file mode 100644 index da24d13..0000000 --- a/.github/workflows/publish-to-pypi.yml +++ /dev/null @@ -1,36 +0,0 @@ -# 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/* diff --git a/aas_core3/__init__.py b/aas_core3/__init__.py index a439713..5c9976a 100644 --- a/aas_core3/__init__.py +++ b/aas_core3/__init__.py @@ -1,6 +1,6 @@ """Manipulate and de/serialize Asset Administration Shells in Micropython.""" -# Synchronize with __init__.py and changelog.rst! +# Synchronize with __init__.py, package.json and changelog.rst! __version__ = "1.0.3" __author__ = "Marko Ristin" __copyright__ = "2024 Contributors to aas-core3.0-python" diff --git a/package.json b/package.json new file mode 100644 index 0000000..2bf76bc --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "urls": [ + ["aas_core3/__init__.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/__init__.py"], + ["aas_core3/common.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/common.py"], + ["aas_core3/constants.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/constants.py"], + ["aas_core3/enum.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/enum.py"], + ["aas_core3/jsonization.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/jsonization.py"], + ["aas_core3/stringification.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/stringification.py"], + ["aas_core3/types.py", "github:aas-core-works/aas-core3.0-micropython/aas_core3/types.py"] + ], + "deps": [], + "version": "1.0.3" +} diff --git a/setup.py b/setup.py deleted file mode 100644 index e63e3a3..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -"""A setuptools based setup module. - -See: -https://packaging.python.org/en/latest/distributing.html -https://github.com/pypa/sampleproject -""" - -import os -import sys - -from setuptools import setup, find_packages - -# pylint: disable=redefined-builtin - -here = os.path.abspath(os.path.dirname(__file__)) - -with open(os.path.join(here, "README.rst"), encoding="utf-8") as fid: - long_description = fid.read() - -setup( - name="aas-core3.0-micropython", - # Synchronize with __init__.py and changelog.rst! - version="1.0.3", - description="Manipulate and de/serialize Asset Administration Shells in Micropython.", - long_description=long_description, - url="https://github.com/aas-core-works/aas-core3.0-micropython", - author="Marko Ristin", - author_email="marko@ristin.ch", - classifiers=[ - "Programming Language :: Python :: Implementation :: MicroPython", - "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: MIT License", - ], - license="License :: OSI Approved :: MIT License", - keywords="asset administration shell sdk industry 4.0 industrie i4.0 industry iot iiot", - packages=find_packages(exclude=["tests", "continuous_integration", "dev_scripts"]), - install_requires=[] if sys.version_info >= (3, 8) else ["typing_extensions"], - py_modules=["aas_core3"], - package_data={"aas_core3": ["py.typed"]}, -)