Update package name to opensearch-py (#72)

Since opensearch is already taken, update distribution name to opensearch-py.
Update build utils accordingly to fix package name change.

Signed-off-by: Rushi Agrawal <[email protected]>
This commit is contained in:
Rushi Agrawal
2021-09-16 13:51:57 -07:00
committed by GitHub
parent ef0c23c0e4
commit ef88f43a72
2 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -30,10 +30,10 @@ from os.path import abspath, dirname, join
from setuptools import find_packages, setup
package_name = "opensearchpy"
package_name = "opensearch-py"
base_dir = abspath(dirname(__file__))
with open(join(base_dir, package_name, "_version.py")) as f:
with open(join(base_dir, package_name.replace("-", ""), "_version.py")) as f:
package_version = re.search(
r"__versionstr__\s+=\s+[\"\']([^\"\']+)[\"\']", f.read()
).group(1)