From 0168ca42727356d9c75c506581577cce7b456b6b Mon Sep 17 00:00:00 2001 From: Peter Krull Date: Thu, 12 Oct 2023 08:48:07 -0600 Subject: [PATCH 1/2] Allow for protobuf v4 --- ansys/api/additive/VERSION | 2 +- setup.py | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index 9a89f5c..aafd1a5 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -1.5.0-dev0 \ No newline at end of file +1.5.dev1 \ No newline at end of file diff --git a/setup.py b/setup.py index 268589b..b867e69 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,9 @@ product = "additive" library = "" package_info = ["ansys", "api", product, library, "v0"] -with open(os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8") as f: +with open( + os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8" +) as f: version = f.read().strip() package_name = "ansys-api-additive" @@ -28,17 +30,19 @@ name=package_name, version=version, author="ANSYS, Inc.", - author_email='pyansys.core@ansys.com', + author_email="pyansys.core@ansys.com", maintainer="ANSYS, Inc.", - maintainer_email='pyansys.core@ansys.com', + maintainer_email="pyansys.core@ansys.com", description=description, long_description=long_description, long_description_content_type="text/markdown", url=f"https://github.com/ansys/{package_name}", license="MIT", python_requires=">=3.8,<4", - install_requires=["grpcio~=1.47", "protobuf~=3.19"], - packages=setuptools.find_namespace_packages(".", include=("ansys.*","google.*")), + install_requires=["grpcio~=1.47", "protobuf>=3.19,<5"], + packages=setuptools.find_namespace_packages( + ".", include=("ansys.*", "google.*") + ), package_data={ "": ["*.proto", "*.pyi", "py.typed", "VERSION"], }, @@ -49,8 +53,8 @@ }, cmdclass=CMDCLASS_OVERRIDE, project_urls={ - 'Documentation': 'https://github.com/ansys/ansys-api-additive/#readme', - 'Source': 'https://github.com/ansys/ansys-api-additive/', - 'Tracker': 'https://github.com/ansys/ansys-api-additive/issues/', + "Documentation": "https://github.com/ansys/ansys-api-additive/#readme", + "Source": "https://github.com/ansys/ansys-api-additive/", + "Tracker": "https://github.com/ansys/ansys-api-additive/issues/", }, ) From ca83499f2ad081ae75d34c26ac5793322f9b3de5 Mon Sep 17 00:00:00 2001 From: Peter Krull Date: Thu, 12 Oct 2023 08:55:37 -0600 Subject: [PATCH 2/2] Change version for nuget compatibility --- ansys/api/additive/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index aafd1a5..d8c5efc 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -1.5.dev1 \ No newline at end of file +1.5.0-dev1 \ No newline at end of file