packaging, readme
This commit is contained in:
parent
2d1cd57ef9
commit
24a197f760
8
Makefile
Normal file
8
Makefile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
build:
|
||||||
|
rm -rf build/ dist/ *.egg-info/
|
||||||
|
python -m build --sdist --wheel -n
|
||||||
|
|
||||||
|
publish: build
|
||||||
|
twine upload dist/*
|
||||||
|
|
||||||
|
.PHONY: build publish
|
34
README.md
34
README.md
@ -11,3 +11,37 @@
|
|||||||
- When players cannot play their strategy anymore, they leave the game, meaning they can end the simulation with some remaining money (e.g. $100 to play a $40 strategy that you lose twice in a row will leave you with $20 remaining).
|
- When players cannot play their strategy anymore, they leave the game, meaning they can end the simulation with some remaining money (e.g. $100 to play a $40 strategy that you lose twice in a row will leave you with $20 remaining).
|
||||||
|
|
||||||
- When using `generate_players`, all players will have the same number of minimum games and budget.
|
- When using `generate_players`, all players will have the same number of minimum games and budget.
|
||||||
|
|
||||||
|
|
||||||
|
# how to use
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install pyroulette
|
||||||
|
```
|
||||||
|
|
||||||
|
```python
|
||||||
|
from pyroulette import generate_players, play_roulette
|
||||||
|
|
||||||
|
players = generate_players(
|
||||||
|
number_of_players=10,
|
||||||
|
minimum_number_of_games=10,
|
||||||
|
budget=100,
|
||||||
|
)
|
||||||
|
|
||||||
|
results = play_roulette(
|
||||||
|
players=players,
|
||||||
|
number_of_games=1000,
|
||||||
|
)
|
||||||
|
|
||||||
|
for player in results:
|
||||||
|
print(player)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
# uploading to pypi
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install build
|
||||||
|
python -m build --sdist --wheel -n
|
||||||
|
twine upload dist/*
|
||||||
|
```
|
||||||
|
3
setup.py
3
setup.py
@ -9,9 +9,10 @@ with open(BASEDIR.joinpath("README.md"), "r") as fp:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyroulette",
|
name="pyroulette",
|
||||||
version="0.0.1rc0",
|
version="0.0.1rc1",
|
||||||
description="A package for exploring roulette strategies.",
|
description="A package for exploring roulette strategies.",
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
|
long_description_content_type='text/markdown',
|
||||||
author="Mathematical Michael",
|
author="Mathematical Michael",
|
||||||
author_email="consistentbayes@gmail.com",
|
author_email="consistentbayes@gmail.com",
|
||||||
url="https://github.com/mathematicalmichael/pyroulette",
|
url="https://github.com/mathematicalmichael/pyroulette",
|
||||||
|
Loading…
Reference in New Issue
Block a user