pyeasyphd 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyeasyphd might be problematic. Click here for more details.

Files changed (43) hide show
  1. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/PKG-INFO +1 -1
  2. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/generate/generate_links.py +9 -13
  3. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyproject.toml +1 -1
  4. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/README.md +0 -0
  5. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/.python-version +0 -0
  6. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/Main.sublime-menu +0 -0
  7. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/__init__.py +0 -0
  8. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/CSL/apa-no-ampersand.csl +0 -0
  9. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/CSL/apa.csl +0 -0
  10. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/CSL/ieee.csl +0 -0
  11. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/Article.tex +0 -0
  12. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/Article_Header.tex +0 -0
  13. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/Article_Tail.tex +0 -0
  14. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/Beamer_Header.tex +0 -0
  15. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/Beamer_Tail.tex +0 -0
  16. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/Style.tex +0 -0
  17. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/TEVC_Header.tex +0 -0
  18. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/TEVC_Tail.tex +0 -0
  19. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/eisvogel.beamer +0 -0
  20. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/eisvogel.latex +0 -0
  21. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/eisvogel.tex +0 -0
  22. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/math.tex +0 -0
  23. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/data/Templates/TEX/math_commands.tex +0 -0
  24. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/main/__init__.py +0 -0
  25. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/main/basic_input.py +0 -0
  26. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/main/pandoc_md_to.py +0 -0
  27. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/main/python_run_md.py +0 -0
  28. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/main/python_run_tex.py +0 -0
  29. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/pyeasyphd.py +0 -0
  30. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/pyeasyphd.sublime-settings +0 -0
  31. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/pyeasyphd.sublime-syntax +0 -0
  32. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/__init__.py +0 -0
  33. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/generate/generate_from_bibs.py +0 -0
  34. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/generate/generate_html.py +0 -0
  35. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/generate/generate_library.py +0 -0
  36. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/py_run_bib_md_tex.py +0 -0
  37. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/search/data.py +0 -0
  38. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/search/search_base.py +0 -0
  39. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/search/search_core.py +0 -0
  40. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/search/search_keywords.py +0 -0
  41. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/search/search_writers.py +0 -0
  42. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/tools/search/utils.py +0 -0
  43. {pyeasyphd-0.2.1 → pyeasyphd-0.2.2}/pyeasyphd/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyeasyphd
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: pyeasyphd
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: Python,Markdown,LaTex
@@ -299,12 +299,15 @@ class PaperLinksGenerator(object):
299
299
 
300
300
  for publisher in keyword_publisher_abbr[keyword]:
301
301
  for abbr in keyword_publisher_abbr[keyword][publisher]:
302
- lines = [
303
- f"[Link]({os.path.join(folder_name, cj.title(), ff, publisher.lower(), abbr, f'{abbr}.html')})"
304
- for ff in folder_flags
305
- ]
306
-
307
- if any(self._check_file_exists(ff, folder_name, cj, publisher, abbr) for ff in folder_flags):
302
+ lines = []
303
+ for ff in folder_flags:
304
+ ll = os.path.join(folder_name, cj.title(), ff, publisher.lower(), abbr, f'{abbr}.html')
305
+ if os.path.exists(os.path.join(self.data_base_path, ll)):
306
+ lines.append(f"[Link]({ll})")
307
+ else:
308
+ lines.append("")
309
+
310
+ if any(lines):
308
311
  data_list.append(f"|{publisher}|{abbr}|" + "|".join(lines) + "|\n")
309
312
 
310
313
  if len(data_list) == 3:
@@ -339,13 +342,6 @@ class PaperLinksGenerator(object):
339
342
  # default
340
343
  return sorted(keywords)
341
344
 
342
- def _check_file_exists(self, folder, folder_name, cj, publisher, abbr):
343
- """Check if HTML file exists for given parameters."""
344
- file_path = os.path.join(
345
- self.data_base_path, folder_name, cj.title(), folder, publisher.lower(), abbr, f"{abbr}.html"
346
- )
347
- return os.path.exists(file_path)
348
-
349
345
  def _convert_md_to_html_keyword(self, folder_name, cj, keyword):
350
346
  """Convert markdown file to HTML using pandoc."""
351
347
  base_path = os.path.join(self.data_base_path, folder_name, f"{cj.title()}_Keywords")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyeasyphd"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "pyeasyphd"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["NextAI <nextartifintell@gmail.com>"]
File without changes