From 13fe0ea7bf855e121a05eed0935b32db6c477ac8 Mon Sep 17 00:00:00 2001 From: Scott W Harden Date: Wed, 6 Jul 2022 08:14:59 -0400 Subject: [PATCH] dev: delete obsolete deployment scripts --- .../versionIncrease.py => bumpVersion.py} | 4 +- dev/scripts/PYPI_UPLOAD.bat | 26 ------------ dev/scripts/PYPI_UPLOAD_TEST.bat | 42 ------------------- dev/scripts/run-windows-3.6.cmd | 2 - dev/scripts/test-windows-3.6.cmd | 2 - 5 files changed, 2 insertions(+), 74 deletions(-) rename dev/{scripts/versionIncrease.py => bumpVersion.py} (88%) delete mode 100644 dev/scripts/PYPI_UPLOAD.bat delete mode 100644 dev/scripts/PYPI_UPLOAD_TEST.bat delete mode 100644 dev/scripts/run-windows-3.6.cmd delete mode 100644 dev/scripts/test-windows-3.6.cmd diff --git a/dev/scripts/versionIncrease.py b/dev/bumpVersion.py similarity index 88% rename from dev/scripts/versionIncrease.py rename to dev/bumpVersion.py index b84a826..c431aa4 100644 --- a/dev/scripts/versionIncrease.py +++ b/dev/bumpVersion.py @@ -32,6 +32,6 @@ def increaseVersion(fname): if __name__ == "__main__": PATH_HERE = os.path.abspath(os.path.dirname(__file__)) - setupVersion = increaseVersion(PATH_HERE+"/../../src/setup.py") - pyAbfVersion = increaseVersion(PATH_HERE+"/../../src/pyabf/__init__.py") + setupVersion = increaseVersion(PATH_HERE+"/../src/setup.py") + pyAbfVersion = increaseVersion(PATH_HERE+"/../src/pyabf/__init__.py") assert setupVersion == pyAbfVersion diff --git a/dev/scripts/PYPI_UPLOAD.bat b/dev/scripts/PYPI_UPLOAD.bat deleted file mode 100644 index b59152f..0000000 --- a/dev/scripts/PYPI_UPLOAD.bat +++ /dev/null @@ -1,26 +0,0 @@ -:: To use this script: pip install twine -@echo off - -python versionIncrease.py - -:: navigate to the source folder and delete old builds -cd ../../src/ -rmdir /S /q _build 2>nul -rmdir /S /q build 2>nul -rmdir /S /q dist 2>nul -rmdir /S /q pyabf.egg-info 2>nul - -:: create the distribution -echo ### building distribution with setuptools... -python setup.py --quiet sdist - -echo ### press ENTER 3 times to upload... -pause -pause -pause - -twine upload --username swharden --repository-url https://upload.pypi.org/legacy/ dist/* -explorer https://pypi.org/project/pyabf/ - -echo COMPLETE -pause \ No newline at end of file diff --git a/dev/scripts/PYPI_UPLOAD_TEST.bat b/dev/scripts/PYPI_UPLOAD_TEST.bat deleted file mode 100644 index 73b63c9..0000000 --- a/dev/scripts/PYPI_UPLOAD_TEST.bat +++ /dev/null @@ -1,42 +0,0 @@ -:: this upload script when Anaconda is installed in the user folder. - -:: to use twine I had to first set it up -:: conda install twine -:: conda update pip setuptools twine - -:: make commands silent -@echo off - -:: perform a version increase -python versionIncrease.py - -:: navigate to the source folder -cd ../../src/ - -:: delete old builds -rmdir /S /q _build 2>nul -rmdir /S /q build 2>nul -rmdir /S /q dist 2>nul -rmdir /S /q pyabf.egg-info 2>nul - -:: create your distribution -echo building distribution with setuptools... -python setup.py --quiet sdist - -:: upload to the test server -twine upload --username swharden --repository-url https://test.pypi.org/legacy/ dist/* -explorer https://test.pypi.org/project/pyabf/ - -:: upload to real server -::echo CONTINUE TO UPLOAD TO REAL PYPI -::twine upload --username swharden --repository-url https://upload.pypi.org/legacy/ dist/* -::explorer https://pypi.org/project/pyabf/ - -:: delete old builds -rmdir /S /q _build 2>nul -rmdir /S /q build 2>nul -rmdir /S /q dist 2>nul -rmdir /S /q pyabf.egg-info 2>nul - -echo COMPLETE -pause \ No newline at end of file diff --git a/dev/scripts/run-windows-3.6.cmd b/dev/scripts/run-windows-3.6.cmd deleted file mode 100644 index de08316..0000000 --- a/dev/scripts/run-windows-3.6.cmd +++ /dev/null @@ -1,2 +0,0 @@ -::%LOCALAPPDATA%\Programs\Python\Python36\python.exe -m pip install matplotlib pytest -%LOCALAPPDATA%\Programs\Python\Python36\python.exe "dev\python\2021-06-27 all abfs.py" \ No newline at end of file diff --git a/dev/scripts/test-windows-3.6.cmd b/dev/scripts/test-windows-3.6.cmd deleted file mode 100644 index 487be4b..0000000 --- a/dev/scripts/test-windows-3.6.cmd +++ /dev/null @@ -1,2 +0,0 @@ -::%LOCALAPPDATA%\Programs\Python\Python36\python.exe -m pip install matplotlib pytest -%LOCALAPPDATA%\Programs\Python\Python36\python.exe -m pytest \ No newline at end of file