Skip to content

Commit

Permalink
refactor(examples): Do not include examples in distribution.
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Ungricht <ch.ungricht@scewo.ch>
  • Loading branch information
ungrichtepfl committed Apr 12, 2024
1 parent ea2c73d commit 57868e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![build status](https://github.com/Scewo/python-dotnetinteropt/actions/workflows/format-lint.yml/badge.svg)](https://github.com/Scewo/python-dotnetinteropt/actions/workflows/format-lint.yml)
[![build status](https://github.com/Scewo/python-dotnetinteropt/actions/workflows/generate-doc.yml/badge.svg)](https://github.com/Scewo/python-dotnetinteropt/actions/workflows/generate-doc.yml)
[![build status](https://github.com/Scewo/python-dotnetinteropt/actions/workflows/release.yml/badge.svg)](https://github.com/Scewo/python-dotnetinteropt/actions/workflows/release.yml)

This package is a tool to easily install NuGet packages and load the compiled
.NET DLL's into python. It uses [Pythonnet](https://pythonnet.github.io/) in the
Expand Down Expand Up @@ -90,6 +91,15 @@ To generate the examples run:
make examples
```

Then run the examples with:

```shell
python3 src/dotnetinteropt_examples/hello_dotnet.py
python3 src/dotnetinteropt_examples/json_dotnet.py
```

Also, check the `pyproject.toml` file for the example configuration.

## Development

Check out the [DEVELOPMENT](DEVELOPMENT.md) file for more information on how
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ dynamic = ["version"]


[tool.setuptools.packages]
find = { where = ["src"] }
find = { where = ["src"], exclude = ["dotnetinteropt_examples"] }

[project.scripts]
hello_dotnet = "dotnetinteropt_examples.hello_dotnet:main"
json_dotnet = "dotnetinteropt_examples.json_dotnet:main"

[project.optional-dependencies]
dev = [
Expand Down

0 comments on commit 57868e6

Please sign in to comment.