-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Critical Bug fix: Reversing edges on negated Morse complex built for Morse-Smale construction. * Making things compatible with the uncertain branch of NGLPy * Adding requirements file with pinned dependencies * Removing 2.7 build and adding more modern pythons. * Closes #27 and uses requirements file to generate prerequisite installations * Bumping version number * Updating to point to new NGL API and bumping major version of topopy since it will have a breaking API change as well * Fixing deprecation warning * Fixing tests * Adding requirements.txt to the Manifest file * Cleaning documentation * Pinning to working version of nglpy installation. * Documenting all public functions using numpy style docstrings. * Adding linker arg for MacOS builds * Disabling 3.5 due to use of f-strings * Testing staging deploy script. * Enabling flake and mypy checks on CI
- Loading branch information
Showing
24 changed files
with
924 additions
and
590 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,8 @@ topopy.egg-info/* | |
*.txt | ||
*tar.gz | ||
*.json | ||
.coverage | ||
.coverage | ||
|
||
.ipynb_checkpoints | ||
docs/_build | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
|
||
# Append the version number with this git commit hash, but hashes contain | ||
# letters which are not allowed in pypi versions. We can hack this to replace | ||
# all letters with numbers, this should still be unique enough to not collide | ||
# before the version number increases. | ||
GIT_HASH=$(git rev-parse --short HEAD | tr 'abcdefghijklmnopqrstuvwxyz' '12345678901234567890123456') | ||
awk -v hash=$GIT_HASH '/^__version__ = \"/{ sub(/"$/,".dev"hash"&") }1' topopy/__init__.py > tmp && mv tmp topopy/__init__.py | ||
TEMP_VERSION=$(grep '__version__ = ' topopy/__init__.py | cut -d = -f 2 | sed "s/\"//g" | sed 's/^[ \t]*//;s/[ \t]*$//') | ||
TEMP_VERSION=$(expr $TEMP_VERSION) | ||
echo $TEMP_VERSION | ||
|
||
# Build the project | ||
make | ||
python setup.py sdist | ||
|
||
# Test the upload# Test the upload, temporarily disable exit on error, since there is a race | ||
# condition for which build will get this out first, also, re-triggered builds | ||
# would never succeed in this step. | ||
set +e | ||
twine upload --repository-url https://test.pypi.org/legacy/ -u __token__ -p ${PYPI_TOKEN} --non-interactive dist/topopy-${TEMP_VERSION}.tar.gz | ||
set -e | ||
|
||
#Give it some time to register internally before trying to install it | ||
sleep 60 | ||
|
||
# Now install and run it | ||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple topopy==${TEMP_VERSION} | ||
python -c "import topopy" |
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 @@ | ||
================================================================================ | ||
API Documentation | ||
================================================================================ | ||
|
||
.. automodule:: topopy | ||
:members: |
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ Welcome to topopy's documentation! | |
|
||
install.rst | ||
usage.rst | ||
api.rst | ||
license.rst | ||
|
||
Indices and tables | ||
|
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 |
---|---|---|
@@ -1,2 +1,25 @@ | ||
[metadata] | ||
description-file = README.md | ||
description-file = README.md | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
exclude = topology.py | ||
max-complexity = 15 | ||
|
||
[mypy-topopy.topology] | ||
ignore_errors = True | ||
|
||
[mypy-networkx.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-nglpy.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-numpy.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-scipy.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-sklearn.*] | ||
ignore_missing_imports = True |
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
Oops, something went wrong.