-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename codebase to use hetnetpy from hetio
Merges #42 Closes #40 `pip install hetnetpy` now installs two packages: hetnetpy and hetio. `import hetio` will trigger a warning. The source code uses a symbolic link. Behavior on windows unknown.
- Loading branch information
Showing
26 changed files
with
147 additions
and
123 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
hetnetpy |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
__version__ = "0.3.0" | ||
|
||
if __name__ == "hetio": | ||
# https://github.com/hetio/hetnetpy/issues/40 | ||
import warnings | ||
message = ( | ||
"The 'hetio' package has been renamed to 'hetnetpy'. " | ||
"Future versions will remove the ability to 'import hetio'. " | ||
"Switch to 'import hetnetpy'." | ||
) | ||
warnings.warn(message, FutureWarning) |
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
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
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
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
hetio/hetnetpy v0.3.0 | ||
===================== | ||
|
||
This release is the first with the new package name `hetnetpy`. | ||
Users should now use `pip install hetnetpy` and `import hetnetpy`. | ||
`import hetio` will still work but will trigger a FutureWarning. |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
directory = pathlib.Path(__file__).parent.absolute() | ||
|
||
# version | ||
init_path = directory.joinpath('hetio', '__init__.py') | ||
init_path = directory.joinpath('hetnetpy', '__init__.py') | ||
with init_path.open() as read_file: | ||
text = read_file.read() | ||
pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE) | ||
|
@@ -30,9 +30,9 @@ | |
|
||
setuptools.setup( | ||
# Package details | ||
name='hetio', | ||
name='hetnetpy', | ||
version=version, | ||
url='https://github.com/hetio/hetio', | ||
url='https://github.com/hetio/hetnetpy', | ||
description='Hetnets in Python', | ||
long_description_content_type='text/markdown', | ||
long_description=long_description, | ||
|
@@ -43,7 +43,7 @@ | |
author_email='[email protected]', | ||
|
||
# Package topics | ||
keywords='hetnet graph heterogeneous network neo4j hetio', | ||
keywords='hetnet graph heterogeneous network neo4j hetio hetnetpy', | ||
classifiers=[ | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
|
@@ -56,7 +56,7 @@ | |
'Programming Language :: Python :: 3.6', | ||
], | ||
|
||
packages=['hetio'], | ||
packages=['hetnetpy', 'hetio'], | ||
|
||
# Specify python version | ||
python_requires='>=3.4', | ||
|
Oops, something went wrong.