Skip to content

Commit

Permalink
V2.0.0a3 (pnxenopoulos#332)
Browse files Browse the repository at this point in the history
* fixing workflows

* doc stuff
  • Loading branch information
pnxenopoulos authored and rorybush committed Jul 15, 2024
1 parent 495dfed commit 931a7d1
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 56 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
name: build

on:
<<<<<<< HEAD
push:
branches: [main, dev]
paths:
- 'awpy/**'
- 'tests/**'
- 'pyproject.toml'
=======
>>>>>>> f764488 (V2.0.0a3 (#332))
pull_request:
branches: [main]
paths:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Build and commit
uses: sphinx-notes/pages@v2
- name: Build Sphinx docs
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
poetry config repositories.testpypi https://test.pypi.org/simple/
poetry config repositories.testpypi https://test.pypi.org/legacy/
- name: Install awpy
run: |
Expand Down
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@
version = ""
# The full version, including alpha/beta/rc tags
<<<<<<< HEAD
<<<<<<< HEAD
release = "2.0.0rc1"
=======
release = "2.0.0b2"
>>>>>>> upstream/main
=======
release = "2.0.0a3"
>>>>>>> f764488 (V2.0.0a3 (#332))


# -- General configuration ---------------------------------------------------
Expand Down
45 changes: 21 additions & 24 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,44 @@ awpy
.. |Build| image:: https://github.com/pnxenopoulos/awpy/actions/workflows/build.yml/badge.svg
:target: https://github.com/pnxenopoulos/awpy/actions/workflows/build.yml

.. |Licence| image:: https://img.shields.io/badge/license-MIT-lightgrey
.. |License| image:: https://img.shields.io/badge/license-MIT-lightgrey
:target: https://github.com/pnxenopoulos/awpy/blob/main/LICENSE

`awpy` allows a user to parse, analyze and visualize Counter-Strike demo files. You can visit the repository_ to view the source code, examples and data. Please join the Discord_ server if you would like to join our esports analytics community or to receive help with the library. To install the library, run ``pip install awpy`` (Python >= 3.11).
`awpy` allows a user to parse, analyze and visualize Counter-Strike 2 demo files. You can visit the repository_ to view the source code, examples and data. Please join the Discord_ server if you would like to join our esports analytics community or to receive help. To install the library, run ``pip install awpy`` (Python >= 3.9).

.. _repository: https://github.com/pnxenopoulos/awpy
.. _Discord: https://discord.gg/W34XjsSs2H

Using Awpy to parse Counter-Strike demos is as easy as the few lines of code shown below. To see what output looks like, check out :doc:`parser_output`.
Using Awpy to parse Counter-Strike 2 demos is as easy as the few lines of code shown below. To see what output looks like, check out :doc:`parser_output`.

.. code-block:: python
from awpy import parse_demo
from awpy import Demo
# Parse a demo file in one line!
demo = parse_demo(file="og-vs-natus-vincere-m1-dust2.dem")
# Simply call `Demo(path="...")` to parse a demo
dem = Demo("natus-vincere-vs-virtus-pro-m1-overpass.dem")
# The `demo` object contains a variety of keys
demo.header # Header information like the map, tick rate, etc.
demo.rounds # A list of rounds and their start/end ticks
demo.kills # Kills and their details
demo.damages # Damage dealt by each player
demo.grenades # Grenade throws and their trajectories
demo.effects # Smokes & mollies
demo.flashes # When a player is flashed
demo.weapon_fires # Shots fired by each player
demo.bomb_events # Include plants, defuses, plant_start, defuse_start, etc.
demo.ticks # A list of each player's info at each tick
# Access various dictionaries & dataframes
dem.header
dem.rounds
dem.grenades
dem.kills
dem.damages
dem.bomb
dem.smokes
dem.infernos
dem.weapon_fires
dem.ticks
Using awpy
Using Awpy
----------
:doc:`installation`
How to install `awpy`.

:doc:`examples`
Examples code and Jupyter notebooks to help get you started.

:doc:`projects`
Projects that use `awpy`.

:doc:`faq`
Need help? Check the FAQs first.

Expand All @@ -68,13 +65,13 @@ awpy Modules
:doc:`data`
Data module.

:doc:`parser`
Parsing module.
:doc:`parsing`
Parsing modules.

:doc:`stats`
Stats module.

:doc:`visualization`
:doc:`vis`
Visualization module.

.. Hidden TOCs
Expand Down
28 changes: 0 additions & 28 deletions docs/projects.rst

This file was deleted.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ build-backend = "setuptools.build_meta"
name = "awpy"
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
version = "2.0.0rc1"
=======
version = "2.0.0b2"
=======
version = "2.0.0a2"
>>>>>>> 9afdcf2 (v2.0.0a2 (#331))
=======
version = "2.0.0a3"
>>>>>>> f764488 (V2.0.0a3 (#332))
description = "Counter-Strike 2 demo parsing, analysis and visualization"
readme = "README.md"
>>>>>>> upstream/main
Expand All @@ -27,7 +31,6 @@ license = { text = "MIT License" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down

0 comments on commit 931a7d1

Please sign in to comment.