Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.10"

- name: Build release distributions
run: |
Expand All @@ -51,7 +51,7 @@ jobs:
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://pypi.org/p/YOURPROJECT
url: https://pypi.org/p/python-flaggle
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "python-flaggle"
name = "python_flaggle"
version = "0.1.0"
description = ""
authors = [
Expand All @@ -12,7 +12,6 @@ dependencies = [
]

[tool.poetry]
packages = [{include = "python_flaggle", from = "src"}]

[tool.poetry.group.dev.dependencies]
ruff = "^0.11.11"
Expand Down
2 changes: 1 addition & 1 deletion flaggle/__init__.py → python_flaggle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flaggle.flag import FlagType, FlagOperation, Flag
from python_flaggle.flag import FlagType, FlagOperation, Flag

__all__ = ['FlagType', 'FlagOperation', 'Flag']
__version__ = "0.1.0"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_flag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flaggle import FlagType, FlagOperation, Flag
from python_flaggle import FlagType, FlagOperation, Flag
from pytest import raises
from unittest.mock import patch

Expand Down Expand Up @@ -309,7 +309,7 @@ def test_from_json_no_flag_name(self):
]
}

with patch("flaggle.flag.logger.warning") as mock_warning:
with patch("python_flaggle.flag.logger.warning") as mock_warning:
flag = Flag.from_json(json_data)
assert flag == {}
mock_warning.assert_called_once_with("Found flag without name, skipping")
Expand Down