Skip to content

Commit

Permalink
kscaleos -> kos
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 10, 2024
1 parent 155b531 commit 34d0982
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

# We don't need to run on all platforms since this package is
# platform-agnostic. The output wheel is something like
# "kscaleos-<version>-py3-none-any.whl".
# "kos-<version>-py3-none-any.whl".
runs-on: ubuntu-latest

steps:
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[workspace]

members = [
"kscaleos/bindings",
"kscaleos/kos",
"kos/bindings",
"kos/kos",
]
resolver = "2"

Expand All @@ -12,7 +12,7 @@ version = "0.1.0"
authors = ["Wesley Maa <[email protected]>", "Pawel Budzianowski <[email protected]>", "Benjamin Bolte <[email protected]>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/kscalelabs/kscaleos"
repository = "https://github.com/kscalelabs/kos"
description = "The K-Scale Operating System"
documentation = "https://docs.kscale.dev/kscaleos/intro"
documentation = "https://docs.kscale.dev/kos/intro"
readme = "README.md"
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
recursive-include kscaleos/ *.py *.txt py.typed MANIFEST.in
recursive-include kos/ *.py *.txt py.typed MANIFEST.in
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions kos/kos/src/bin/run.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use kos::main as kos_main;

fn main() {
kos_main();
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions kscaleos/kos/src/bin/run.rs

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

[tool.ruff.lint.isort]

known-first-party = ["kscaleos", "tests"]
known-first-party = ["kos", "tests"]
combine-as-imports = true

[tool.ruff.lint.pydocstyle]
Expand Down
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
long_description: str = f.read()


with open("kscaleos/requirements.txt", "r", encoding="utf-8") as f:
with open("kos/requirements.txt", "r", encoding="utf-8") as f:
requirements: list[str] = f.read().splitlines()


with open("kscaleos/requirements-dev.txt", "r", encoding="utf-8") as f:
with open("kos/requirements-dev.txt", "r", encoding="utf-8") as f:
requirements_dev: list[str] = f.read().splitlines()


with open("kscaleos/__init__.py", "r", encoding="utf-8") as fh:
with open("kos/__init__.py", "r", encoding="utf-8") as fh:
version_re = re.search(r"^__version__ = \"([^\"]*)\"", fh.read(), re.MULTILINE)
assert version_re is not None, "Could not find version in kscaleos/__init__.py"
assert version_re is not None, "Could not find version in kos/__init__.py"
version: str = version_re.group(1)


Expand All @@ -36,15 +36,15 @@ def run(self) -> None:


setup(
name="kscaleos",
name="pykos",
version=version,
description="The K-Scale Operating System",
author="Benjamin Bolte",
url="https://github.com/kscalelabs/kscaleos",
url="https://github.com/kscalelabs/kos",
rust_extensions=[
RustExtension(
target="kscaleos.bindings",
path="kscaleos/bindings/Cargo.toml",
target="kos.bindings",
path="kos/bindings/Cargo.toml",
binding=Binding.PyO3,
),
],
Expand All @@ -55,6 +55,6 @@ def run(self) -> None:
install_requires=requirements,
tests_require=requirements_dev,
extras_require={"dev": requirements_dev},
packages=find_packages(include=["kscaleos"]),
packages=find_packages(include=["kos"]),
cmdclass={"build_ext": RustBuildExt},
)

0 comments on commit 34d0982

Please sign in to comment.