Skip to content

Commit

Permalink
Migrate dependencies to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
N3rdL0rd committed Nov 29, 2024
1 parent cf6912c commit f0173d8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest mypy types-tqdm
python -m pip install -e .[dev]
- name: Set up Haxe
uses: krdlab/setup-haxe@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Pure Python HashLink bytecode parser/disassembler/decompiler/modding tool
## Installation

```bash
# TODO: pip package
pip install crashlink # TODO: publish to PyPI
```

Optionally, install `tqdm` for progress bars when parsing large files:

```bash
pip install <TODO> tqdm
pip install crashlink[tqdm]
```

You also need to have Graphviz installed to generate control flow graphs. On most *nix systems, on Windows (with Chocolatey or Scoop), and on MacOS (with Homebrew), you can install it with your package manager under `graphviz`.
Expand Down Expand Up @@ -71,7 +71,7 @@ For development purposes, you can clone the repo, install development dependenci
```bash
git clone https://github.com/N3rdL0rd/crashlink
cd crashlink
pip install -r requirements.txt
pip install -e .[dev]
pytest
```

Expand Down
0 build → build.sh
100755 → 100644
File renamed without changes.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,29 @@ classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Disassemblers",
]
license = {file = "LICENSE"}
dependencies = []

[project.optional-dependencies]
dev = [
"pdoc3",
"black",
"build",
"twine",
"isort",
"mypy",
"radon",
"no_implicit_optional",
"pytest",
"tqdm",
"snakeviz",
"typeguard",
"types-tqdm",
]
tqdm = ["tqdm"]

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
Expand Down
13 changes: 0 additions & 13 deletions requirements.txt

This file was deleted.

0 comments on commit f0173d8

Please sign in to comment.