diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
new file mode 100644
index 00000000..50807e79
--- /dev/null
+++ b/.github/workflows/python-publish.yml
@@ -0,0 +1,39 @@
+# This workflow will upload a Python Package using Twine when a release is created
+# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
+
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+name: Upload Python Package
+
+on:
+ release:
+ types: [published]
+
+permissions:
+ contents: read
+
+jobs:
+ deploy:
+
+ runs-on: ubuntu-18.04
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python
+ uses: actions/setup-python@v3
+ with:
+ python-version: '3.x'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install build
+ - name: Build package
+ run: python -m build
+ - name: Publish package
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
+ with:
+ user: __token__
+ password: ${{ secrets.PYPI_API_TOKEN }}
diff --git a/Examples/CantileverQt/Main.py b/Examples/CantileverQt/Main.py
index 08180f2f..3e4c8b35 100644
--- a/Examples/CantileverQt/Main.py
+++ b/Examples/CantileverQt/Main.py
@@ -76,8 +76,7 @@ def onOK(self):
LoadCase(1, 'Eigengewicht',[True, 0.0, 0.0, 1.0])
- NodalLoad(
- 1, 1, '2', LoadDirectionType.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W, f*1000)
+ NodalLoad(1, 1, '2', LoadDirectionType.LOAD_DIRECTION_GLOBAL_Z_OR_USER_DEFINED_W, f*1000)
Calculate_all()
diff --git a/Examples/CantileverQt/Main.ui b/Examples/CantileverQt/Main.ui
index b992c339..9f7a8168 100644
--- a/Examples/CantileverQt/Main.ui
+++ b/Examples/CantileverQt/Main.ui
@@ -42,7 +42,7 @@
- Abbrechen
+ Cancel
@@ -55,7 +55,7 @@
- Strukture
+ Structure
diff --git a/package/setup.py b/package/setup.py
index 7642a58e..f2416be6 100644
--- a/package/setup.py
+++ b/package/setup.py
@@ -7,7 +7,7 @@
setup(
name='RFEM',
- version='1.4.0',
+ version='1.2.0',
description='Web Service&API project for RFEM',
long_description=readme,
long_description_content_type = "text/markdown",
@@ -22,6 +22,6 @@
],
packages=find_packages(),
include_package_data=True,
- install_requires=["suds", "requests", "suds_requests", "xmltodict", "setuptools==58.0.0"],
+ install_requires=["suds", "requests", "suds_requests", "xmltodict", "setuptools"],
zip_safe = False
)
diff --git a/setup.py b/setup.py
new file mode 100644
index 00000000..4c49879e
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,27 @@
+from setuptools import find_packages
+from setuptools import setup
+import pathlib
+
+here = pathlib.Path(__file__).parent
+readme = (here/"README.md").read_text()
+
+setup(
+ name='RFEM',
+ version='1.3.0',
+ description='Web Service&API project for RFEM',
+ long_description=readme,
+ long_description_content_type = "text/markdown",
+ url="https://github.com/Dlubal-Software/RFEM_Python_Client",
+ author="Dlubal Software",
+ author_email="info@dlubal.com",
+ license="MIT",
+ classifiers=[
+ "License :: OSI Approved :: MIT License",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.9"
+ ],
+ packages=find_packages(),
+ include_package_data=True,
+ install_requires=["suds", "requests", "suds_requests", "xmltodict", "setuptools==58.0.0"],
+ zip_safe = False
+)