diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 82f8dbd..8e7cb4b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.x" + python-version: "3.10" - name: Build release distributions run: | @@ -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: diff --git a/pyproject.toml b/pyproject.toml index e6a4659..3d471e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "python-flaggle" +name = "python_flaggle" version = "0.1.0" description = "" authors = [ @@ -12,7 +12,6 @@ dependencies = [ ] [tool.poetry] -packages = [{include = "python_flaggle", from = "src"}] [tool.poetry.group.dev.dependencies] ruff = "^0.11.11" diff --git a/flaggle/__init__.py b/python_flaggle/__init__.py similarity index 68% rename from flaggle/__init__.py rename to python_flaggle/__init__.py index 6063f10..9ec8898 100644 --- a/flaggle/__init__.py +++ b/python_flaggle/__init__.py @@ -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" diff --git a/flaggle/flag.py b/python_flaggle/flag.py similarity index 100% rename from flaggle/flag.py rename to python_flaggle/flag.py diff --git a/tests/test_flag.py b/tests/test_flag.py index 8c54e39..10a1a89 100644 --- a/tests/test_flag.py +++ b/tests/test_flag.py @@ -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 @@ -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")