Repository: VTimofeenko/confluence_poster (language: python)

Issue:
Test against pyxdg 0.27



Discussion / hints:

Fix patch:
diff --git a/scratch.py b/scratch.py
new file mode 100644
index 0000000..547c63a
--- /dev/null
+++ b/scratch.py
@@ -0,0 +1,39 @@
+from atlassian import Confluence
+
+from confluence_poster.main_helpers import PostedPage
+from confluence_poster.poster_config import Config
+from confluence_poster.convert_utils import (
+    post_to_wiki_convert_api,
+    post_to_convert_api,
+)
+
+c = Config("local_config.toml")
+api_version = "latest"
+conf = Confluence(
+    url=c.auth.url,
+    username=c.auth.username,
+    password=c.auth.password,
+    api_version=api_version,
+)
+
+# page_id = conf.get_page_id(space="LOC", title="TEST")
+# p = PostedPage("TEST", "page1.confluencewiki", "LOC", page_id=page_id)
+
+# path = Path("page1.confluencewiki")
+# conf.attach_file(str(path), name=path.name, page_id=page_id)
+# print("attached")
+# conf.delete_attachment(page_id, path.name)
+#
+# state = StateConfig()
+# state.confluence_instance = conf
+# attach_files_to_page(page=p, files=[path], state=state)
+# conf.delete_attachment(page_id, path.name)
+
+text = "[Text^attachment.ext]"
+
+try:
+    print(post_to_wiki_convert_api(confluence=conf, text=text))
+except:
+    pass
+print("TEST")
+print(post_to_convert_api(confluence=conf, text=text))
diff --git a/setup.py b/setup.py
index fb58661..24519f0 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@
         "typer>=0.3.2",
         "toml",
         "requests",
-        "pyxdg==0.26",
+        "pyxdg>=0.26",
         "tomlkit==0.7.2",
         "click>=7.1.1, <7.2.0",
         "markdown==3.3.4",


Test patch:
diff --git a/run_tests.sh b/run_tests.sh
old mode 100644
new mode 100755