diff --git a/README.md b/README.md index 993f830..8489a8a 100644 --- a/README.md +++ b/README.md @@ -373,3 +373,27 @@ $ ruff . $ black . ``` + + +#### Poetry version management +``` +# View current version +poetry version + +# Bump version +poetry version patch # 0.1.0 -> 0.1.1 +poetry version minor # 0.1.0 -> 0.2.0 +poetry version major # 0.1.0 -> 1.0.0 + +# Set specific version +poetry version 2.0.0 + +# Set pre-release versions +poetry version prepatch # 0.1.0 -> 0.1.1-alpha.0 +poetry version preminor # 0.1.0 -> 0.2.0-alpha.0 +poetry version premajor # 0.1.0 -> 1.0.0-alpha.0 + +# Specify pre-release identifier +poetry version prerelease # 0.1.0 -> 0.1.0-alpha.0 +poetry version prerelease beta # 0.1.0-alpha.0 -> 0.1.0-beta.0 +``` diff --git a/nhlpy/_version.py b/nhlpy/_version.py deleted file mode 100644 index 4ef2169..0000000 --- a/nhlpy/_version.py +++ /dev/null @@ -1,3 +0,0 @@ -# Should this be driven by the main pyproject.toml file? yes, is it super convoluted? yes, can it wait? sure - -__version__ = "2.11.0" diff --git a/nhlpy/api/stats.py b/nhlpy/api/stats.py index 92fb8a7..421d0bd 100644 --- a/nhlpy/api/stats.py +++ b/nhlpy/api/stats.py @@ -245,7 +245,7 @@ def skater_stats_with_query_context( penaltykill, penaltyShots, powerplay, puckPossessions, summaryshooting, percentages, scoringRates, scoringpergame, shootout, shottype, timeonice :param query_context: - :param aggregate: bool - If doing multiple years, you can choose to aggreate the date per player, + :param aggregate: bool - If doing multiple years, you can choose to aggregate the date per player, or have separate entries for each one. :param sort_expr: A list of key/value pairs for sort criteria. As used in skater_stats_summary(), this is in the format: @@ -269,7 +269,7 @@ def skater_stats_with_query_context( if not sort_expr: sort_expr = SortingOptions.get_default_sorting_for_report(report_type) - q_params["sort"] = urllib.parse.quote(json.dumps(sort_expr)) + q_params["sort"] = json.dumps(sort_expr) q_params["cayenneExp"] = query_context.query_str return self.client.get_by_url( f"https://api.nhle.com/stats/rest/en/skater/{report_type}", query_params=q_params diff --git a/pyproject.toml b/pyproject.toml index e4a0ee5..1260017 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "nhl-api-py" -version = "2.11.0" +version = "2.11.1" description = "NHL API (Updated for 2024/2025) and EDGE Stats. For standings, team stats, outcomes, player information. Contains each individual API endpoint as well as convience methods as well as pythonic query builder for more indepth EDGE stats." authors = ["Corey Schaf "] readme = "README.md"