Skip to content

Commit

Permalink
version:0.1.2 --> pathlib has been added. you should not use relative…
Browse files Browse the repository at this point in the history
… path in python packages
  • Loading branch information
mmohajer9 committed Nov 3, 2022
1 parent 477bda6 commit aaa3e7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include src/pyccmetrics/lib/my-languages.so
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyccmetrics"
version = "0.1.1"
version = "0.1.2"
authors = [
{ name="Mohammad Mahdi Mohajer", email="mmohajer9@hotmail.com" },
]
Expand All @@ -15,7 +15,6 @@ dependencies = [
"tree-sitter>=0.20.1",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down
2 changes: 1 addition & 1 deletion src/pyccmetrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

__version__ = "0.1.0"
__version__ = "0.1.2"
__author__ = "Mohammad Mahdi Mohajer"

# __credits__ = ""
Expand Down
3 changes: 2 additions & 1 deletion src/pyccmetrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
initial_metrics_dict,
remove_comments_and_blanks,
)
from pathlib import Path


class Metrics:
def __init__(self, file_path):

self.java_lang = Language("lib/my-languages.so", "java")
self.java_lang = Language(Path(__file__).parent / "lib/my-languages.so", "java")
self.parser = Parser()

self.parser.set_language(self.java_lang)
Expand Down

0 comments on commit aaa3e7f

Please sign in to comment.