Skip to content

Commit

Permalink
fix install; version; github actions; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Dean committed Mar 24, 2021
1 parent aa7b0b0 commit 3b3de2c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish Python 🐍 Package 📦 to TestPyPI
name: Publish Package to TestPyPI

on: push

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish Python 🐍 Package 📦 to PyPI
name: Publish Package to PyPI

on:
release:
types: [created]

workflow_dispatch:

jobs:
deploy:

Expand All @@ -24,7 +26,6 @@ jobs:
pip install setuptools wheel twine
- name: Build and publish
env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
Expand Down
14 changes: 7 additions & 7 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ mkdir -p ~/.config/saspy/
cp ./binder/sascfg_personal.py ~/.config/saspy/

#set -ex
# jupyter kernelspec list
# jupyter nbextension list
jupyter kernelspec list
jupyter nbextension list


# jupyter nbextension install --py sas_kernel.showSASLog --user
# jupyter nbextension enable sas_kernel.showSASLog --py
jupyter nbextension install --py sas_kernel.showSASLog --user
jupyter nbextension enable sas_kernel.showSASLog --py

# jupyter nbextension install --py sas_kernel.theme --user
# jupyter nbextension enable sas_kernel.theme --py
jupyter nbextension install --py sas_kernel.theme --user
jupyter nbextension enable sas_kernel.theme --py

# jupyter nbextension list
jupyter nbextension list
2 changes: 1 addition & 1 deletion sas_kernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from typing import Tuple
from IPython.display import HTML
from metakernel import MetaKernel
from ._version import __version__
from .version import __version__


# create a LOGGER to output messages to the Jupyter CONSOLE
Expand Down
2 changes: 1 addition & 1 deletion sas_kernel/showSASLog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# from .sas_kernel import __version__


def _jupyter_nbextension_paths():
return [dict(section="notebook",
Expand Down
2 changes: 0 additions & 2 deletions sas_kernel/theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""SAS Kernel Juypter Implementation"""

# from .sas_kernel import __version__

def _jupyter_nbextension_paths():
return [dict(section="notebook", src="", dest="theme", require="theme/theme_selector")]
2 changes: 1 addition & 1 deletion sas_kernel/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# limitations under the License.
#

__version__ = '2.4.2'
__version__ = '2.4.3'
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
# limitations under the License.
#

import sys
import os
from distutils.command.install import install
exec(open('./sas_kernel/version.py').read())
print("Installing sas_kernel version:{}".format(__version__))
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
from distutils.command.install import install

import os, sys

# from sas_kernel._version import __version__

SVEM_FLAG = '--single-version-externally-managed'
if SVEM_FLAG in sys.argv:
sys.argv.remove(SVEM_FLAG)


class InstallWithKernelspec(install):
def run(self):
# Regular installation
Expand Down Expand Up @@ -61,8 +61,8 @@ def run(self):
"jupyter_client>=6", "IPython>=7.12.0"],
setup_requires=["jupyter_client>=6", "IPython>=7.12.0"],
extras_require={'jlab_ext': ['jupyterlab >=3 ',
# 'sas2nb',
# 'sas_log_viewer_v2',
# 'sas2nb',
# 'sas_log_viewer_v2',
'jlab_create_sas_file'
]},
classifiers=['Framework :: IPython',
Expand Down

0 comments on commit 3b3de2c

Please sign in to comment.