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

Reorganized python code into package structure #9

Merged
merged 7 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Currently, most needed is:
- Documentation of backgammon metrics / neural net inputs: https://github.com/carsten-wenderdel/wildbg/issues/4
- Implementation of a bearoff database: https://github.com/carsten-wenderdel/wildbg/issues/1

### Installation of python environment

Make an editable install by targeting the training directory:
``` pip install -e "training/[dev]"```

## License

Licensed under either of
Expand Down
26 changes: 26 additions & 0 deletions training/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[project]
name = "wildbg"
requires-python = ">=3.11"
dynamic = ["dependencies", "optional-dependencies", "version"]


[project.urls]
Repository = "https://github.com/carsten-wenderdel/wildbg/"

[tool.setuptools.packages.find]
where = ["src"]
exclude = ["test"]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[tool.setuptools.dynamic.optional-dependencies]
dev = { file = ["requirements-dev.txt"] }

[tool.ruff]
line-length = 100
target-version = "py311"

[tool.black]
line-length = 100
target-version = ['py311']
4 changes: 4 additions & 0 deletions training/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
black
docformatter
mypy
ruff
2 changes: 2 additions & 0 deletions training/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pandas
torch