Skip to content

Commit

Permalink
feat: project version bump, moved from pip to uv
Browse files Browse the repository at this point in the history
- moved from pip to uv for more faster packaging installation
- bump baad version from 1.0.0 to 2.1.0
- remove unnessary files
- updated readme
  • Loading branch information
Deathemonic committed Nov 8, 2024
1 parent 8a42576 commit 1fb1392
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 115 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ update_master.py
# Distribution / packaging
.Python
build/
*.py[oc]
develop-eggs/
dist/
downloads/
Expand Down Expand Up @@ -113,4 +114,8 @@ ruff.toml
jp/
gl/
bin/
output/
jp/
output/

# uv
uv.lock
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,39 @@ It downloads them directly from the **Yostar Servers**.
</details>

## Installation
Download and install [`python`](https://www.python.org/downloads/). After that clone this repository
Download and install [`python`](https://www.python.org/downloads/) and [`uv`](https://docs.astral.sh/uv/getting-started/installation/). After that clone this repository

```
git clone https://github.com/Deathemonic/BA-AD
```

or just download as a zip by clicking `Code` > `Download Zip`. Then open `BA-AD` folder in your `Terminal` or `CMD`

Then install it using pip

Then install using `uv`
```
uv tool install .
```

you can now run it using the `uvx` command

```
uvx --from ba-ad baad
```

or if you don't want to type the `uvx` command all the time, you can your local bin directory to your [`PATH`](https://docs.astral.sh/uv/concepts/tools/#the-bin-directory) environment. Usually it's located at `{User Folder}/.local/bin`. Once you added it to your `PATH` environment you can now run it just by typing `baad` command.


<details>
<summary>Install using pip (Click to expand)</summary>
<br>

```
pip install .
```
</details>

<br>

<details>
<summary>Tutorial with Screenshots (Click to expand)</summary>
Expand Down Expand Up @@ -317,4 +337,4 @@ Don't like my [shitty code](https://shitcode.net/latest/language/python) and wha


### Copyright
**Blue Archive** is a registered trademark of NAT GAMES Co., Ltd., NEXON Korea Corp., and Yostar, Inc. This project is not affiliated with, endorsed by, or connected to NAT GAMES Co., Ltd., NEXON Korea Corp., NEXON GAMES Co., Ltd., Yostar, Inc., or any of their subsidiaries or affiliates. All game assets, content, and materials are copyrighted by their respective owners and are used for informational and educational purposes only.
**Blue Archive** is a registered trademark of NAT GAMES Co., Ltd., NEXON Korea Corp., and Yostar, Inc. This project is not affiliated with, endorsed by, or connected to NAT GAMES Co., Ltd., NEXON Korea Corp., NEXON GAMES Co., Ltd., Yostar, Inc., or any of their subsidiaries or affiliates. All game assets, content, and materials are copyrighted by their respective owners and are used for informational and educational purposes only.
2 changes: 1 addition & 1 deletion baad/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '2.1.0'
1 change: 0 additions & 1 deletion baad/utils/excel/MissionEmergencyCompleteExcel.json

This file was deleted.

1 change: 0 additions & 1 deletion baad/utils/excel/VoiceTimelineExcel.json

This file was deleted.

43 changes: 18 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "BA-AD"
version = "2.1.0"
description = "Blue Archive Asset Downloader"
authors = [{name = "Deathemonic", email = "zinth.others@skiff.com"},]
maintainers = [{name = "Deathemonic", email = "zinth.others@skiff.com"}]
version = "1.0.0"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
keywords = ["unity", "asset", "downloader", "bluearchive"]
classifiers = [
"Environment :: X11 Applications",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10"
]
dependencies = [
'aiohttp>=3.9.5',
'aiofiles>=24.1.0',
'requests>=2.32.3',
'requests-cache>=1.2.1',
'cloudscraper',
'flatbuffers',
'pycryptodome',
'UnityPy',
'rich',
'xxhash'
"aiofiles>=24.1.0",
"aiohttp>=3.10.10",
"cloudscraper>=1.2.71",
"flatbuffers>=24.3.25",
"pycryptodome>=3.21.0",
"requests-cache>=1.2.1",
"requests>=2.32.3",
"rich>=13.9.4",
"unitypy>=1.20.12",
"xxhash>=3.5.0",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["baad"]

[project.scripts]
baad = "baad.__main__:main"
83 changes: 0 additions & 83 deletions ruff.toml

This file was deleted.

0 comments on commit 1fb1392

Please sign in to comment.