Skip to content

Commit

Permalink
Merge pull request #108 from AresSC2/refactor/migrate-to-cython-exten…
Browse files Browse the repository at this point in the history
…sions

refactor: migrate to cython extensions
  • Loading branch information
raspersc2 authored Feb 8, 2024
2 parents ad64ad9 + c7f3cb6 commit 56e16b6
Show file tree
Hide file tree
Showing 59 changed files with 1,515 additions and 6,822 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ per-file-ignores =
exclude =
MapAnalyzer
sc2_helper
cython_extensions
tests/generate_pickle_data.py.py
tests/test_run.py
tests/conftest.py
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
#*.py[cod]
#*$py.class

# C extensions
*.so
# *.so

# Distribution / packaging
.Python
Expand Down Expand Up @@ -130,6 +130,3 @@ dmypy.json

# PyCharm
.idea

# cython compiled c code
src/ares/*/*.c
60 changes: 0 additions & 60 deletions build.py

This file was deleted.

4 changes: 0 additions & 4 deletions docs/api_reference/cython_extensions/combat_utils.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/cython_extensions/general_utils.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/cython_extensions/geometry.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/cython_extensions/index.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/api_reference/cython_extensions/placement_solver.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/cython_extensions/units_utils.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/api_reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Utilize the menu to delve into the available functionalities, currently organize

- `Behaviors` - Discover the art of crafting personalized combat maneuvers or macro plans.
Each Behavior can be executed individually, tailored to your specific requirements.
- `Cython Extensions` - Acquaint yourself with optimized functions that harness the power of cython.
Many of these functions exhibit multiple-fold speed enhancements compared to their Python counterparts,
many of which serve as alternatives to `python-sc2` functions.
- `Manager mediator` - Seamlessly orchestrating numerous managers in the background, the mediator serves
as the recommended approach to access data and functions within these managers.

Expand Down
7 changes: 0 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ nav:
- Individual Combat Behaviors: api_reference/behaviors/combat_behaviors.md
- Group Combat Behaviors: api_reference/behaviors/group_combat_behaviors.md
- Macro Behaviors: api_reference/behaviors/macro_behaviors.md
- Cython Extensions:
- api_reference/cython_extensions/index.md
- Combat Utils: api_reference/cython_extensions/combat_utils.md
- General Utils: api_reference/cython_extensions/general_utils.md
- Geometry: api_reference/cython_extensions/geometry.md
- Placement Solver: api_reference/cython_extensions/placement_solver.md
- Units Utils: api_reference/cython_extensions/units_utils.md
- api_reference/manager_mediator.md

- Contributing:
Expand Down
Loading

0 comments on commit 56e16b6

Please sign in to comment.