From 071236fff97bc84289768c0b735b6c8b4fb6dff3 Mon Sep 17 00:00:00 2001 From: Asaph Diniz Date: Fri, 23 May 2025 17:55:45 -0300 Subject: [PATCH 1/4] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor=20project=20s?= =?UTF-8?q?tructure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 3 +-- {flaggle => python_flaggle}/__init__.py | 0 {flaggle => python_flaggle}/flag.py | 0 3 files changed, 1 insertion(+), 2 deletions(-) rename {flaggle => python_flaggle}/__init__.py (100%) rename {flaggle => python_flaggle}/flag.py (100%) 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 100% rename from flaggle/__init__.py rename to python_flaggle/__init__.py 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 From 259a0e3d16ec081aba1fbf719cf6fd533b3bce15 Mon Sep 17 00:00:00 2001 From: Asaph Diniz Date: Fri, 23 May 2025 17:56:08 -0300 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=94=A7=20Update=20Python=20version=20?= =?UTF-8?q?and=20PyPI=20URL=20in=20publish=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: From ea46daea647fb593d1f9be380e48abf5931ce753 Mon Sep 17 00:00:00 2001 From: Asaph Diniz Date: Fri, 23 May 2025 17:59:05 -0300 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=90=9B=20Fix=20import=20paths=20for?= =?UTF-8?q?=20FlagType=20and=20FlagOperation=20in=20=5F=5Finit=5F=5F.py=20?= =?UTF-8?q?and=20test=5Fflag.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python_flaggle/__init__.py | 2 +- tests/test_flag.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_flaggle/__init__.py b/python_flaggle/__init__.py index 6063f10..9ec8898 100644 --- a/python_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/tests/test_flag.py b/tests/test_flag.py index 8c54e39..2c0ee4e 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 From 0f1bb9a993d8e66181db33f940b1f1cabaa884c9 Mon Sep 17 00:00:00 2001 From: Asaph Diniz Date: Fri, 23 May 2025 18:00:17 -0300 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=90=9B=20Fix=20import=20path=20for=20?= =?UTF-8?q?logger=20in=20test=5Fflag.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_flag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_flag.py b/tests/test_flag.py index 2c0ee4e..10a1a89 100644 --- a/tests/test_flag.py +++ b/tests/test_flag.py @@ -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")