-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
streamlined working with this project
- Loading branch information
1 parent
1d98cdf
commit d000b60
Showing
6 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,36 @@ name = "ranlibx" | |
version = "0.0.25" | ||
description = "Global interface for RAN" | ||
authors = [{ name = "Ameer Arsala", email = "[email protected]" }] | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
dependencies = [ | ||
"fastapi>=0.112.2,<0.113", | ||
"typer>=0.12.5,<0.13", | ||
"httpx>=0.27.2,<0.28", | ||
"pydantic>2.0", | ||
"uvicorn[standard]>=0.30.6,<0.31", | ||
"email-validator>=2.2.0,<3", | ||
"email-validator>=2.2.0,<3", | ||
"rich>=13.8.1,<14", | ||
] | ||
requires-python = ">= 3.9" | ||
|
||
[project.urls] | ||
Repository = "https://github.com/anemo-ai/ranlibx" | ||
Changelog = "https://github.com/anemo-ai/ranlibx/blob/main/CHANGELOG.md" | ||
Homepage = "https://ran.so/docs" | ||
Source = "https://github.com/anemo-ai/ranlibx" | ||
Tracker = "https://github.com/anemo-ai/ranlibx/issues" | ||
Twitter = "https://twitter.com/AnemoDotAI" | ||
|
||
[project.scripts] | ||
ranx = "ranlibx.cli.main:app" | ||
|
||
[project.optional-dependencies] | ||
fdev = ["hatch>=1.12.0,<2"] | ||
fdev = [ | ||
"hatch>=1.12.0,<2", | ||
"pytest", | ||
"tomli" | ||
] | ||
|
||
[build-system] | ||
build-backend = "hatchling.build" | ||
|
@@ -33,7 +47,6 @@ ranlibx = { path = ".", editable = true } | |
|
||
[tool.pixi.feature.fdev.dependencies] | ||
ruff = ">=0.6.8,<0.7" | ||
pytest = ">=8.3.3,<9" | ||
|
||
# [tool.pixi.tasks] | ||
## ranx = "python3 ranlibx/cli/main.py" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import sys | ||
import tomli | ||
from ranlibx.constants import RANLIBX_PROJECT_ROOT | ||
|
||
|
||
if __name__ == "__main__": | ||
# Read the new version | ||
with open(f"{RANLIBX_PROJECT_ROOT}/pyproject.toml", 'rb') as pyproject_dot_toml_file: | ||
pyproject_dot_toml: dict = tomli.load(pyproject_dot_toml_file) | ||
|
||
version: str = pyproject_dot_toml["project"]["version"] | ||
|
||
sys.stdout(version) | ||
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters