Skip to content

Commit

Permalink
fix: discover module from src
Browse files Browse the repository at this point in the history
  • Loading branch information
necusjz committed Dec 15, 2023
1 parent 17dd38d commit d7bb562
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Automate plotting posts in [Splatoon](https://splatoonwiki.org/wiki/Splatoon) ba

The mailbox is a service in the Splatoon hub that allows players to create drawings and share them via social media. The drawings may be viewable by other players and may be displayed as signs or graffiti in the hub and in various stages in multiplayer matches.

[](https://raw.githubusercontent.com/necusjz/p/master/splatbot/mailbox.png)
![](https://raw.githubusercontent.com/necusjz/p/master/splatbot/mailbox.png)

## Installation
[BlueZ](http://www.bluez.org/) is a Bluetooth protocol stack included with the official Linux kernel distributions. If you have a Linux machine with a Bluetooth connection, then things become easier:
Expand Down Expand Up @@ -52,9 +52,10 @@ $ vagrant destroy

## Benchmark
We provide a dataset collected from [ikasumi.art](https://ikasumi.art/) to easier achieve performance test on your pathing algorithm:
[](https://raw.githubusercontent.com/necusjz/p/master/splatbot/dataset.png)

The results will be shown in the pipeline:
![](https://raw.githubusercontent.com/necusjz/p/master/splatbot/dataset.png)

The results will be shown in the pipeline (via _pytest -s -v --color=yes tests/_):
```text
+------------------+-----------+------------+--------------+
| Benchmark | Current | Previous | Result |
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ dependencies = [
"tqdm>=4.64.0",
]

[project.urls]
changelog = "https://github.com/necusjz/splatbot/blob/main/CHANGELOG.md"
repository = "https://github.com/necusjz/splatbot"

[project.optional-dependencies]
dev = [
"build>=1.0.3",
Expand All @@ -40,7 +36,11 @@ dev = [
]

[project.scripts]
splatbot = "splatbot.cli:main"
splatbot = "src.splatbot.cli:main"

[project.urls]
Changelog = "https://github.com/necusjz/splatbot/blob/main/CHANGELOG.md"
Repository = "https://github.com/necusjz/splatbot"

[tool.setuptools.packages.find]
exclude = [
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from datetime import datetime
from pathlib import Path

from splatbot.version import VERSION
from src.splatbot.version import VERSION


def main():
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

TAG=$(python -c 'from splatbot.version import VERSION; print("v" + VERSION)')
TAG=$(python -c 'from src.splatbot.version import VERSION; print("v" + VERSION)')

read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt

Expand Down
4 changes: 2 additions & 2 deletions tests/test_macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from PIL import Image
from tabulate import tabulate

from splatbot.macro import pathing
from src.splatbot.macro import pathing


def test_pathing():
Expand All @@ -26,5 +26,5 @@ def test_pathing():

headers = ["Benchmark", "Current", "Previous", "Result"]

print("\n")
print("")
print(tabulate(data, headers=headers, tablefmt="grid", numalign="left"))

0 comments on commit d7bb562

Please sign in to comment.