markdown-img-icexmoon 0.4.0__tar.gz → 1.0.0__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.
Files changed (50) hide show
  1. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/PKG-INFO +9 -2
  2. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/setup.cfg +1 -1
  3. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/main.py +2 -1
  4. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/smms_img.py +4 -0
  5. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/PKG-INFO +9 -2
  6. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/SOURCES.txt +2 -1
  7. markdown_img_icexmoon-1.0.0/tests/test.py +12 -0
  8. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/LICENSE +0 -0
  9. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/README.md +0 -0
  10. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/pyproject.toml +0 -0
  11. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/setup.py +0 -0
  12. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/__init__.py +0 -0
  13. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/__main__.py +0 -0
  14. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/__init__.py +0 -0
  15. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress.py +0 -0
  16. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress_manager.py +0 -0
  17. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/compress_service.py +0 -0
  18. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/none_compress_service.py +0 -0
  19. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/pillow_compress_service.py +0 -0
  20. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/compress/tinypng_compress_service.py +0 -0
  21. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/config.py +0 -0
  22. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/config_backup.py +0 -0
  23. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/download_help.py +0 -0
  24. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/globalization.py +0 -0
  25. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/help.info +0 -0
  26. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/help_en.info +0 -0
  27. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/Upyun_img_service.py +0 -0
  28. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/__init__.py +0 -0
  29. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/bilibili_img_service.py +0 -0
  30. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/fz_img_service.py +0 -0
  31. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/img_service.py +0 -0
  32. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/none_img_service.py +0 -0
  33. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/qcloud_img_service.py +0 -0
  34. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/qiniu_img_service.py +0 -0
  35. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/smms_img_service.py +0 -0
  36. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/vimcn_img_service.py +0 -0
  37. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service/yujian_img_service.py +0 -0
  38. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/img_service_manager.py +0 -0
  39. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/qcloud_client.py +0 -0
  40. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/qiniu_client.py +0 -0
  41. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/time_helper.py +0 -0
  42. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/__init__.py +0 -0
  43. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/debug.py +0 -0
  44. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/file_tools.py +0 -0
  45. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/tools/my_time.py +0 -0
  46. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img/user_exception.py +0 -0
  47. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/dependency_links.txt +0 -0
  48. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/entry_points.txt +0 -0
  49. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/requires.txt +0 -0
  50. {markdown-img-icexmoon-0.4.0 → markdown_img_icexmoon-1.0.0}/src/markdown_img_icexmoon.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: markdown-img-icexmoon
3
- Version: 0.4.0
3
+ Version: 1.0.0
4
4
  Summary: A program for find and upload images in markdown file and will replace them.
5
5
  Home-page: https://github.com/icexmoon/markdown-img
6
6
  Author: icexmoon
@@ -12,6 +12,13 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.6
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
+ Requires-Dist: requests
16
+ Requires-Dist: cos-python-sdk-v5
17
+ Requires-Dist: qiniu
18
+ Requires-Dist: upyun
19
+ Requires-Dist: Pillow
20
+ Requires-Dist: tinify
21
+ Dynamic: license-file
15
22
 
16
23
  # Markdown-img User's Guide
17
24
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = markdown-img-icexmoon
3
- version = 0.4.0
3
+ version = 1.0.0
4
4
  author = icexmoon
5
5
  author_email = icexmoon@qq.com
6
6
  description = A program for find and upload images in markdown file and will replace them.
@@ -152,7 +152,8 @@ class Main():
152
152
  shutil.copyfile(localImg, relativeLocalImage)
153
153
  # 替换图片路径为相对路径
154
154
  line = line.replace(
155
- localImg, "."+sysConfig.getPathSplit()+"images"+sysConfig.getPathSplit()+imgName)
155
+ # 改为使用/而非\
156
+ localImg, "."+"/"+"images"+"/"+imgName)
156
157
  copyFileOpen.write(line)
157
158
  copyFileOpen.close()
158
159
  # 保存原始文件备份
@@ -39,6 +39,10 @@ class SmmsImg():
39
39
  images[MAX_SAME_TIME_DEAL:len(images)], results)
40
40
 
41
41
  def uploadOne(self, localImg):
42
+ # 如果是 gif 而非静态图片,不压缩
43
+ if (localImg.endswith(".gif")):
44
+ imgService = ImgServiceManager.getImgService()
45
+ return imgService.upload(localImg)
42
46
  # 如果设置了压缩选项,进行压缩
43
47
  info = self.sysConfig.getCompressInfo()
44
48
  if(info[Config.COMPRESS_INFO_STATUS] == "on"):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: markdown-img-icexmoon
3
- Version: 0.4.0
3
+ Version: 1.0.0
4
4
  Summary: A program for find and upload images in markdown file and will replace them.
5
5
  Home-page: https://github.com/icexmoon/markdown-img
6
6
  Author: icexmoon
@@ -12,6 +12,13 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.6
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
+ Requires-Dist: requests
16
+ Requires-Dist: cos-python-sdk-v5
17
+ Requires-Dist: qiniu
18
+ Requires-Dist: upyun
19
+ Requires-Dist: Pillow
20
+ Requires-Dist: tinify
21
+ Dynamic: license-file
15
22
 
16
23
  # Markdown-img User's Guide
17
24
 
@@ -45,4 +45,5 @@ src/markdown_img_icexmoon.egg-info/SOURCES.txt
45
45
  src/markdown_img_icexmoon.egg-info/dependency_links.txt
46
46
  src/markdown_img_icexmoon.egg-info/entry_points.txt
47
47
  src/markdown_img_icexmoon.egg-info/requires.txt
48
- src/markdown_img_icexmoon.egg-info/top_level.txt
48
+ src/markdown_img_icexmoon.egg-info/top_level.txt
49
+ tests/test.py
@@ -0,0 +1,12 @@
1
+ import sys
2
+ sys.path.insert(-2, "D:\\workspace\\markdown-img2\\src")
3
+ print(sys.path)
4
+ from markdown_img.main import Main
5
+ import os
6
+ testFile = '.\\markdown_img\\test_image.md'
7
+ if os.path.exists(testFile):
8
+ os.remove(testFile)
9
+ main = Main()
10
+ main.changeImgService("upyun")
11
+ main.changeMainPrams({"compress_engine": "tinyPNG"})
12
+ main.main(True)