-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move everything into the src folder * start fixing paths * Remaining paths, hopefully * continue fixing stuff * start fixing some import stuff * Fix get_base_segment_class * Allow extension segments to work again * try to simplify imports * Update mypy stuff * black * forgor * gitignore * update expected test * make it installable * move split.py contents to scripts/split.py * Add split subcommand * capy * move create_config too * mypy & black * Move capy to the bottom * changelog * forgor to remove this * fix ci * Add release CI * yeet authors and maintainers --------- Co-authored-by: Ethan <[email protected]>
- Loading branch information
1 parent
3c1941c
commit 48597c4
Showing
125 changed files
with
1,480 additions
and
741 deletions.
There are no files selected for viewing
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
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,44 @@ | ||
name: Build and upload to PyPI | ||
|
||
# Build on every branch push, tag push, and pull request change: | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_wheel: | ||
name: Build wheel | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install build module | ||
run: pip install build | ||
|
||
- name: Build wheel and source | ||
run: python -m build --sdist --wheel --outdir dist/ . | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: dist/* | ||
|
||
upload_pypi: | ||
name: Upload to PyPI | ||
needs: [build_wheel] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/splat64 | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
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,20 @@ | ||
name: Test splat lib | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test_splat_lib: | ||
name: Test lib | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout reposistory | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install local splat | ||
run: python3 -m pip install . | ||
|
||
- name: Test | ||
run: splat capy |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.idea/ | ||
venv/ | ||
.venv/ | ||
.vscode/ | ||
__pycache__/ | ||
.mypy_cache/ | ||
|
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
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
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[project] | ||
name = "splat" | ||
# Should be synced with src/splat/__init__.py | ||
version = "0.21.0" | ||
description = "A binary splitting tool to assist with decompilation and modding projects" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
dynamic = ["dependencies"] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/ethteck/splat" | ||
Issues = "https://github.com/ethteck/splat/issues" | ||
Changelog = "https://github.com/ethteck/splat/blob/master/CHANGELOG.md" | ||
|
||
[build-system] | ||
requires = ["hatchling", "hatch-requirements-txt"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.metadata.hooks.requirements_txt] | ||
files = ["requirements.txt"] | ||
|
||
[project.scripts] | ||
splat = "splat.__main__:splat_main" |
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.