Skip to content

Commit

Permalink
fix: change wheel name to conform to PEP440
Browse files Browse the repository at this point in the history
  • Loading branch information
Latios96 committed Jul 2, 2024
1 parent 20a0d79 commit 2543bea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
with:
name: wheel-linux
path: |
./dist/cato-server*.whl
./dist/cato-client*.whl
./dist/catoserver*.whl
./dist/catoclient*.whl
build_windows:
runs-on: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main():

print("Copy wheel..")
wheel_path = os.path.join(
os.path.dirname(__file__), "dist", f"cato-server-{version}-py3-none-any.whl"
os.path.dirname(__file__), "dist", f"catoserver-{version}-py3-none-any.whl"
)
shutil.copy(
wheel_path, os.path.join(r"M:\cato\wheels", os.path.basename(wheel_path))
Expand Down
8 changes: 4 additions & 4 deletions scripts/generate_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def find_wheel(name) -> Path:
if __name__ == "__main__":
create_new_wheel(
find_current_wheel(),
new_name="cato-client",
new_name="catoclient",
modules_to_keep=["cato", "cato_api_client", "cato_common"],
entry_points_to_keep=["cato"],
requirements_to_keep=[
Expand Down Expand Up @@ -183,7 +183,7 @@ def find_wheel(name) -> Path:

create_new_wheel(
find_current_wheel(),
new_name="cato-server",
new_name="catoserver",
modules_to_keep=["cato_server", "cato_common"],
entry_points_to_keep=[
"cato_worker",
Expand Down Expand Up @@ -242,11 +242,11 @@ def find_wheel(name) -> Path:
],
include_files=[
(
find_wheel("cato-client"),
find_wheel("catoclient"),
Path("cato_server")
/ "static"
/ "static"
/ "cato-client-0.0.0-py3-none-any.whl",
/ "catoclient-0.0.0-py3-none-any.whl",
)
],
)
4 changes: 2 additions & 2 deletions scripts/install_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def create_virtual_env(folder: Path) -> Venv:
def check_cato_server_wheel():
with tempfile.TemporaryDirectory() as tmpdirname:
venv = create_virtual_env(Path(tmpdirname))
venv.run_pip(["install", str(find_wheel("cato-server"))])
venv.run_pip(["install", str(find_wheel("catoserver"))])
venv.run_executable("python", ["-m", "cato_server", "-h"])
venv.run_executable("cato_beat", ["-h"])
venv.run_executable("cato_worker", ["-h"])
Expand All @@ -55,7 +55,7 @@ def check_cato_server_wheel():
def check_cato_client_wheel():
with tempfile.TemporaryDirectory() as tmpdirname:
venv = create_virtual_env(Path(tmpdirname))
venv.run_pip(["install", str(find_wheel("cato-client"))])
venv.run_pip(["install", str(find_wheel("catoclient"))])
venv.run_executable("cato", ["-h"])


Expand Down

0 comments on commit 2543bea

Please sign in to comment.