-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update setup.py to resolve PyPI publication failure (#177)
* Update package name to `neon-chatbot-core` to resolve PyPI name conflict Fix relative path refs in setup.py * Update package name in license tests --------- Co-authored-by: Daniel McKnight <[email protected]>
- Loading branch information
1 parent
bf2508c
commit b760d92
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,11 @@ | |
|
||
from os import path, getenv | ||
|
||
BASE_PATH = path.abspath(path.dirname(__file__)) | ||
|
||
|
||
def get_requirements(requirements_filename: str): | ||
requirements_file = path.join(path.abspath(path.dirname(__file__)), "requirements", requirements_filename) | ||
requirements_file = path.join(BASE_PATH, "requirements", requirements_filename) | ||
with open(requirements_file, 'r', encoding='utf-8') as r: | ||
requirements = r.readlines() | ||
requirements = [r.strip() for r in requirements if r.strip() and not r.strip().startswith("#")] | ||
|
@@ -40,10 +42,10 @@ def get_requirements(requirements_filename: str): | |
return requirements | ||
|
||
|
||
with open("README.md", "r") as f: | ||
with open(path.join(BASE_PATH, "README.md"), "r") as f: | ||
long_description = f.read() | ||
|
||
with open("./version.py", "r", encoding="utf-8") as v: | ||
with open(path.join(BASE_PATH, "version.py"), "r", encoding="utf-8") as v: | ||
for line in v.readlines(): | ||
if line.startswith("__version__"): | ||
if '"' in line: | ||
|
@@ -52,7 +54,7 @@ def get_requirements(requirements_filename: str): | |
version = line.split("'")[1] | ||
|
||
setuptools.setup( | ||
name="chatbot-core", | ||
name="neon-chatbot-core", | ||
version=version, | ||
author="Neongecko", | ||
author_email="[email protected]", | ||
|