From 83b5bd282774ab6680b3ed90522df098de6daf7b Mon Sep 17 00:00:00 2001 From: Deejuha Date: Tue, 23 Aug 2022 21:55:33 +0200 Subject: [PATCH 1/4] Added description to setup.py --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 956cd13..397b31b 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,13 @@ Wheel packager. """ +from pathlib import Path + from setuptools import setup +root_directory = Path(__file__).parent +readme = (root_directory / "README.md").read_text() + setup( name="secure_hardware_extension", version="0.2.0", @@ -19,4 +24,6 @@ ], description="A set of tools for AUTOSAR Secure Hardware Extension.", url="https://github.com/Deejuha/SecureHardwareExtension", + long_description=readme, + long_description_content_type="text/markdown", ) From 989b4bb67194394363ae220771562bb152fde6ad Mon Sep 17 00:00:00 2001 From: Deejuha Date: Tue, 23 Aug 2022 22:20:04 +0200 Subject: [PATCH 2/4] PyPi bugfixes --- README.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d83fa9f..b94c81c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Available features: With using Python 3.8, 3.9 or 3.10 install package to your environment. ```bash -pip install secure_hardware_extension +pip install SecureHardwareExtension ``` ## Examples diff --git a/setup.py b/setup.py index 397b31b..b36ca6e 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ readme = (root_directory / "README.md").read_text() setup( - name="secure_hardware_extension", + name="SecureHardwareExtension", version="0.2.0", install_requires=[ "pycryptodome", From 558f1c823d42be4bd117370c308a6625f247ec5f Mon Sep 17 00:00:00 2001 From: Deejuha Date: Tue, 23 Aug 2022 22:31:20 +0200 Subject: [PATCH 3/4] Changes in setup.py --- README.md | 1 + setup.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b94c81c..1427093 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Secure Hardware Extension ![CICD](https://github.com/Deejuha/SecureHardwareExtension/workflows/python-test/badge.svg?branch=master) +![Python](https://img.shields.io/pypi/pyversions/Django?style=plastic) A set of tools for AUTOSAR Secure Hardware Extension. diff --git a/setup.py b/setup.py index b36ca6e..37b6baf 100644 --- a/setup.py +++ b/setup.py @@ -15,10 +15,13 @@ install_requires=[ "pycryptodome", ], + python_requires=">=3.8", author="MichaƂ Juszczyk", author_email="michaljuszczyk2@gmail.com", classifiers=[ - "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], From f231384401a2cb375c5fcb4950713f687375beae Mon Sep 17 00:00:00 2001 From: Deejuha Date: Tue, 23 Aug 2022 22:33:14 +0200 Subject: [PATCH 4/4] Minor changes in PyPi build CICD --- .github/workflows/pypi-upload.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi-upload.yml b/.github/workflows/pypi-upload.yml index cabab61..92f3dd0 100644 --- a/.github/workflows/pypi-upload.yml +++ b/.github/workflows/pypi-upload.yml @@ -24,5 +24,5 @@ jobs: "TWINE_USERNAME": "__token__" "TWINE_PASSWORD": ${{ secrets.PYPI_TOKEN }} run: | - python -m build - twine upload dist/* + python -m build --wheel + twine upload --repository pypi dist/*