Procházet zdrojové kódy

added first try of setup script for pypi
moved all code into its own package
added setup.py file
moved the tests out of the way for now

prozessorkern před 4 roky
rodič
revize
6e564969b1
62 změnil soubory, kde provedl 39 přidání a 1 odebrání
  1. 1 1
      metrix++.py
  2. 0 0
      metrixpp/__init__.py
  3. 0 0
      metrixpp/ext/__init__.py
  4. 0 0
      metrixpp/ext/std/__init__.py
  5. 0 0
      metrixpp/ext/std/code/__init__.py
  6. 0 0
      metrixpp/ext/std/code/complexity.ini
  7. 0 0
      metrixpp/ext/std/code/complexity.py
  8. 0 0
      metrixpp/ext/std/code/cpp.ini
  9. 0 0
      metrixpp/ext/std/code/cpp.py
  10. 0 0
      metrixpp/ext/std/code/cs.ini
  11. 0 0
      metrixpp/ext/std/code/cs.py
  12. 0 0
      metrixpp/ext/std/code/debug.ini
  13. 0 0
      metrixpp/ext/std/code/debug.py
  14. 0 0
      metrixpp/ext/std/code/filelines.ini
  15. 0 0
      metrixpp/ext/std/code/filelines.py
  16. 0 0
      metrixpp/ext/std/code/java.ini
  17. 0 0
      metrixpp/ext/std/code/java.py
  18. 0 0
      metrixpp/ext/std/code/length.ini
  19. 0 0
      metrixpp/ext/std/code/length.py
  20. 0 0
      metrixpp/ext/std/code/lines.ini
  21. 0 0
      metrixpp/ext/std/code/lines.py
  22. 0 0
      metrixpp/ext/std/code/magic.ini
  23. 0 0
      metrixpp/ext/std/code/magic.py
  24. 0 0
      metrixpp/ext/std/code/member.ini
  25. 0 0
      metrixpp/ext/std/code/member.py
  26. 0 0
      metrixpp/ext/std/code/mi.ini
  27. 0 0
      metrixpp/ext/std/code/mi.py
  28. 0 0
      metrixpp/ext/std/code/test.ini
  29. 0 0
      metrixpp/ext/std/code/test.py
  30. 0 0
      metrixpp/ext/std/code/todo.ini
  31. 0 0
      metrixpp/ext/std/code/todo.py
  32. 0 0
      metrixpp/ext/std/suppress.ini
  33. 0 0
      metrixpp/ext/std/suppress.py
  34. 0 0
      metrixpp/ext/std/tools/__init__.py
  35. 0 0
      metrixpp/ext/std/tools/collect.ini
  36. 0 0
      metrixpp/ext/std/tools/collect.py
  37. 0 0
      metrixpp/ext/std/tools/export.ini
  38. 0 0
      metrixpp/ext/std/tools/export.py
  39. 0 0
      metrixpp/ext/std/tools/info.ini
  40. 0 0
      metrixpp/ext/std/tools/info.py
  41. 0 0
      metrixpp/ext/std/tools/limit.ini
  42. 0 0
      metrixpp/ext/std/tools/limit.py
  43. 0 0
      metrixpp/ext/std/tools/view.ini
  44. 0 0
      metrixpp/ext/std/tools/view.py
  45. 0 0
      metrixpp/metrixpp.py
  46. 0 0
      metrixpp/mpp/__init__.py
  47. 0 0
      metrixpp/mpp/api.py
  48. 0 0
      metrixpp/mpp/cout.py
  49. 0 0
      metrixpp/mpp/dbf.ini
  50. 0 0
      metrixpp/mpp/dbf.py
  51. 0 0
      metrixpp/mpp/internal/__init__.py
  52. 0 0
      metrixpp/mpp/internal/api_impl.py
  53. 0 0
      metrixpp/mpp/internal/dbwrap.py
  54. 0 0
      metrixpp/mpp/internal/loader.py
  55. 0 0
      metrixpp/mpp/internal/py2txt.py
  56. 0 0
      metrixpp/mpp/internal/py2xml.py
  57. 0 0
      metrixpp/mpp/log.ini
  58. 0 0
      metrixpp/mpp/log.py
  59. 0 0
      metrixpp/mpp/utils.py
  60. 38 0
      setup.py
  61. 0 0
      tests/test.ini
  62. 0 0
      tests/test.py

+ 1 - 1
metrix++.py

@@ -6,5 +6,5 @@
 #    
 
 if __name__ == '__main__':
-    import metrixpp
+    from metrixpp import metrixpp
     metrixpp.start()

+ 0 - 0
metrixpp/__init__.py


+ 0 - 0
metrixpp/ext/__init__.py


ext/std/__init__.py → metrixpp/ext/std/__init__.py


ext/std/code/__init__.py → metrixpp/ext/std/code/__init__.py


ext/std/code/complexity.ini → metrixpp/ext/std/code/complexity.ini


ext/std/code/complexity.py → metrixpp/ext/std/code/complexity.py


ext/std/code/cpp.ini → metrixpp/ext/std/code/cpp.ini


ext/std/code/cpp.py → metrixpp/ext/std/code/cpp.py


ext/std/code/cs.ini → metrixpp/ext/std/code/cs.ini


ext/std/code/cs.py → metrixpp/ext/std/code/cs.py


ext/std/code/debug.ini → metrixpp/ext/std/code/debug.ini


ext/std/code/debug.py → metrixpp/ext/std/code/debug.py


ext/std/code/filelines.ini → metrixpp/ext/std/code/filelines.ini


ext/std/code/filelines.py → metrixpp/ext/std/code/filelines.py


ext/std/code/java.ini → metrixpp/ext/std/code/java.ini


ext/std/code/java.py → metrixpp/ext/std/code/java.py


ext/std/code/length.ini → metrixpp/ext/std/code/length.ini


ext/std/code/length.py → metrixpp/ext/std/code/length.py


ext/std/code/lines.ini → metrixpp/ext/std/code/lines.ini


ext/std/code/lines.py → metrixpp/ext/std/code/lines.py


ext/std/code/magic.ini → metrixpp/ext/std/code/magic.ini


ext/std/code/magic.py → metrixpp/ext/std/code/magic.py


ext/std/code/member.ini → metrixpp/ext/std/code/member.ini


ext/std/code/member.py → metrixpp/ext/std/code/member.py


ext/std/code/mi.ini → metrixpp/ext/std/code/mi.ini


ext/std/code/mi.py → metrixpp/ext/std/code/mi.py


ext/std/code/test.ini → metrixpp/ext/std/code/test.ini


ext/std/code/test.py → metrixpp/ext/std/code/test.py


ext/std/code/todo.ini → metrixpp/ext/std/code/todo.ini


ext/std/code/todo.py → metrixpp/ext/std/code/todo.py


ext/std/suppress.ini → metrixpp/ext/std/suppress.ini


ext/std/suppress.py → metrixpp/ext/std/suppress.py


ext/std/tools/__init__.py → metrixpp/ext/std/tools/__init__.py


ext/std/tools/collect.ini → metrixpp/ext/std/tools/collect.ini


ext/std/tools/collect.py → metrixpp/ext/std/tools/collect.py


ext/std/tools/export.ini → metrixpp/ext/std/tools/export.ini


ext/std/tools/export.py → metrixpp/ext/std/tools/export.py


ext/std/tools/info.ini → metrixpp/ext/std/tools/info.ini


ext/std/tools/info.py → metrixpp/ext/std/tools/info.py


ext/std/tools/limit.ini → metrixpp/ext/std/tools/limit.ini


ext/std/tools/limit.py → metrixpp/ext/std/tools/limit.py


ext/std/tools/view.ini → metrixpp/ext/std/tools/view.ini


ext/std/tools/view.py → metrixpp/ext/std/tools/view.py


metrixpp.py → metrixpp/metrixpp.py


mpp/__init__.py → metrixpp/mpp/__init__.py


mpp/api.py → metrixpp/mpp/api.py


mpp/cout.py → metrixpp/mpp/cout.py


mpp/dbf.ini → metrixpp/mpp/dbf.ini


mpp/dbf.py → metrixpp/mpp/dbf.py


mpp/internal/__init__.py → metrixpp/mpp/internal/__init__.py


mpp/internal/api_impl.py → metrixpp/mpp/internal/api_impl.py


mpp/internal/dbwrap.py → metrixpp/mpp/internal/dbwrap.py


mpp/internal/loader.py → metrixpp/mpp/internal/loader.py


mpp/internal/py2txt.py → metrixpp/mpp/internal/py2txt.py


mpp/internal/py2xml.py → metrixpp/mpp/internal/py2xml.py


mpp/log.ini → metrixpp/mpp/log.ini


mpp/log.py → metrixpp/mpp/log.py


mpp/utils.py → metrixpp/mpp/utils.py


+ 38 - 0
setup.py

@@ -0,0 +1,38 @@
+import setuptools
+
+with open("README.md", "r") as fh:
+    long_description = fh.read()
+
+setuptools.setup(
+    name="metrixpp-prozessorkern", # Replace with your own username
+    version="0.0.3",
+    author="Stefan Strobel",
+    author_email="stefan.strobel@shimatta.net",
+    description="Metrix++ is an extendable tool for code metrics collection and analysis.",
+    long_description=long_description,
+    long_description_content_type="text/markdown",
+    url="https://github.com/metrixplusplus/metrixplusplus",
+    packages=setuptools.find_packages(exclude=["tests"]),
+    package_data={
+        'metrixpp.mpp': ['*.ini'],
+        'metrixpp.ext.std': ['*.ini'],
+        'metrixpp.ext.std.tools': ['*.ini'],
+        'metrixpp.ext.std.code': ['*.ini']
+    },
+    classifiers=[
+        "Programming Language :: Python :: 3",
+        "License :: OSI Approved :: MIT License",
+        "Operating System :: OS Independent",
+    ],
+    project_urls={
+        'Documentation': 'https://metrixplusplus.github.io/',
+        'Source': 'https://github.com/metrixplusplus/metrixplusplus',
+        'Tracker': 'https://github.com/metrixplusplus/metrixplusplus/issues',
+    },
+    entry_points={
+        'console_scripts': [
+            'metrix++ = metrixpp:main'
+        ]
+    },
+    python_requires='>=3.5',
+)

ext/std/tools/test.ini → tests/test.ini


ext/std/tools/test.py → tests/test.py