Skip to content

Commit

Permalink
Merge pull request #13 from karlosss/try-remove-setup-py
Browse files Browse the repository at this point in the history
try remove setup py
  • Loading branch information
karlosss authored Oct 21, 2024
2 parents 55cae3b + 9b79706 commit 0636bf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 159 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,24 @@ You can also use `swisspair` through a dockerized HTTP API. Refer to https://git

## Usage

The basic interface is as follows:
For the details of the algorithm, refer to https://github.com/karlosss/swisspair.

A sample usage below. For all available parameters, please refer to [the interface file](https://github.com/karlosss/swisspair-python/blob/a6cc5011aea4942c7b5296947bbf64d317a3f75a/src/swisspair/interface.py).

```python
from swisspair import Player, create_matches

players = [Player(id="P1", points=3, rank=1), Player(id="P2", points=0, rank=2)]
p1 = Player(id="P2", points=3, rank=1, can_get_bye=True, cannot_be_paired_against_ids={"P3"})
p2 = Player(id="P1", points=3, rank=2, can_get_bye=False, cannot_be_paired_against_ids=set())
p3 = Player(id="P3", points=0, rank=3, can_get_bye=True, cannot_be_paired_against_ids={"P3"})

players = [p1, p2, p3]

matches = create_matches(players)

print(matches)
```

For all available parameters, please refer to [the interface file](https://github.com/karlosss/swisspair-python/blob/a6cc5011aea4942c7b5296947bbf64d317a3f75a/src/swisspair/interface.py).

## License

MIT, whatever it means. If you like this project, I would be happy for a star :)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ author = "Karel Jilek"
author_email = "[email protected]"
description = "Python bindings for Swiss pairing algorithm for (not only) Magic: The Gathering."
readme = "README.md"
python_requires = ">=3.9"
requires-python = ">=3.9"
requires=[]

[tool.cibuildwheel.linux]
Expand Down
154 changes: 0 additions & 154 deletions setup.py

This file was deleted.

0 comments on commit 0636bf4

Please sign in to comment.