diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml deleted file mode 100644 index 68a823c..0000000 --- a/.github/workflows/build-and-test.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Python package - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \ No newline at end of file diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 6327337..83f9807 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,9 +1,8 @@ name: Upload Python Package on: - [push] - # release: - # types: [created] + release: + types: [created] jobs: deploy: @@ -11,9 +10,9 @@ runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.9' - name: Install dependencies diff --git a/setup.py b/setup.py index 63d19b1..0255895 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="ipycalc", - version="0.0.18", + version="0.0.19", author="D. Craig Brinck, PE, SE", author_email="Building.Code@outlook.com", description="Clean looking engineering calculations for IPython", @@ -18,10 +18,12 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], - - # entry_points={ - # 'nbconvert.exporters': [ - # 'ipycalc = ipycalc.exporter:ipycalcExporter', - # ] - #} + install_requires=[ + 'IPython', + ], + entry_points={ + 'nbconvert.exporters': [ + 'ipycalc = ipycalc.exporter:ipycalcExporter', + ] + } )