Skip to content

Commit

Permalink
Merge branch 'release/0.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed Jun 21, 2019
2 parents 5406020 + c4c6ed6 commit ef78956
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 171 deletions.
11 changes: 6 additions & 5 deletions WargPackage.py
@@ -1,13 +1,14 @@
import os
import pathlib
import re

from setuptools import find_packages


with open(pathlib.Path.joinpath(pathlib.Path(os.path.dirname(__file__)) / "warg" / "version.py"), "r") as f:
with open(pathlib.Path(__file__).parent / "warg" / "version.py", "r") as f:
content = f.read()
# get version string from module
version = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)
version = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", content, re.M).group(1)

project_name = re.search(r"PROJECT_NAME = ['\"]([^'\"]*)['\"]", content, re.M).group(1)


class WargPackage:
Expand All @@ -21,7 +22,7 @@ def setup_dependencies(self) -> list:

@property
def package_name(self) -> str:
return "Warg"
return project_name

@property
def url(self) -> str:
Expand Down

0 comments on commit ef78956

Please sign in to comment.