Metadata-Version: 2.1
Name: drools-jpy
Version: 0.3.9
Summary: A Python package to directly call Drools Java classes from python
Home-page: https://github.com/ansible/drools_jpy
Author: Madhu Kanoor
Author-email: mkanoor@redhat.com
License: Apache-2.0
Project-URL: Source Code, https://github.com/ansible/drools_jpy
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jpy

# Drools JPY Package

This python package allows you to directly call Drools classes (implemented in Java) using JPY from your Python code.
Needs
   * Java 17+
   * Maven 3.8.1+
   * Environment variable **JAVA_HOME** should be set appropriately

# Setup and Testing

```
  python3 -m venv venv
  source venv/bin/activate
  python3 -m pip install --upgrade pip
  python3 -m pip install --upgrade build
  python3 -m pip install -e '.[dev]'
  tox
  python3 -m build
```

# Check code coverage

```
   coverage run -m pytest
   coverage html
   open htmlcov/index.html
```

# Format and lint the code before creating a PR

```
   black .
   flake8 .
   isort .		
```

# To publish the package to PyPi

```
python3 -m pip install --upgrade build
rm -rf dist
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*

```


