packaging, readme

This commit is contained in:
Michael Pilosov 2022-11-26 21:54:50 -07:00
parent 2d1cd57ef9
commit 24a197f760
3 changed files with 44 additions and 1 deletions

8
Makefile Normal file
View 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

View File

@ -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 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/*
```

View File

@ -9,9 +9,10 @@ with open(BASEDIR.joinpath("README.md"), "r") as fp:
setup(
name="pyroulette",
version="0.0.1rc0",
version="0.0.1rc1",
description="A package for exploring roulette strategies.",
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
author="Mathematical Michael",
author_email="consistentbayes@gmail.com",
url="https://github.com/mathematicalmichael/pyroulette",