Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the dependency on Python.NET #72

Merged
merged 124 commits into from
Aug 13, 2024
Merged

Remove the dependency on Python.NET #72

merged 124 commits into from
Aug 13, 2024

Conversation

tonybaloney
Copy link
Owner

@tonybaloney tonybaloney commented Aug 6, 2024

This pull request includes multiple changes to enhance the testing and runtime capabilities of the project. The most significant changes involve the addition of new tests for various data type conversions, updates to the CI configuration, and the introduction of new functionality in the runtime code.

Testing Enhancements:

  • Added new test files for various data type conversions including BoolConverterTest, DoubleConverterTest, DictionaryConverterTest, ListConverterTest, LongConverterTest, TupleConverterTests, and UnicodeConverterTest in the src/CSnakes.Runtime.Tests/Converter directory. These tests ensure that conversions between C# types and Python objects are accurate and bidirectional. [1] [2] [3] [4] [5] [6] [7]
  • Introduced a ConverterTestBase class to provide a common setup for the converter tests, including initializing the Python environment and configuring services.

CI Configuration:

  • Updated the .github/workflows/dotnet-ci.yml file to include macos-13 in the OS matrix and set fail-fast to false to improve the robustness of the CI pipeline.

Runtime Enhancements:

  • Added new methods in the CPythonAPI class to handle Python boolean and callable objects, including PyBool_FromLong, IsPyBool, IsPyTrue, and various PyObject_Call methods for different argument scenarios. [1] [2]

Project Setup:

  • Created a new CSnakes.Runtime.Tests.csproj file to define the test project setup, including package references and project dependencies.
  • Added a launchSettings.json file to the test project to enable native debugging.

Load Testing:

  • Added a new loadtest.jmx file to the samples/WebApp directory to define a JMeter test plan for load testing the web application.

Implements #70
Implements #3

tonybaloney and others added 30 commits August 6, 2024 11:30
…Implement a managed string interop with Python Unicode objects
@tonybaloney tonybaloney marked this pull request as ready for review August 12, 2024 09:35
Copy link
Collaborator

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tonybaloney tonybaloney merged commit b3afc46 into main Aug 13, 2024
5 checks passed
@tonybaloney tonybaloney deleted the libraryimport branch August 13, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants