From 0a5bd72cf0d3a34390e4cc09e4b37be1c72132cb Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Fri, 23 Feb 2024 10:42:37 -0600 Subject: [PATCH 1/5] drop python 3.8 support --- .github/workflows/install_test.yaml | 2 +- .github/workflows/unit_tests_with_latest_deps.yaml | 6 +++--- pyproject.toml | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/install_test.yaml b/.github/workflows/install_test.yaml index 6195fb5..4d8a4a8 100644 --- a/.github/workflows/install_test.yaml +++ b/.github/workflows/install_test.yaml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ["3.8", "3.9", "3.10", "3.11"] + python_version: ["3.9", "3.10", "3.11"] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/unit_tests_with_latest_deps.yaml b/.github/workflows/unit_tests_with_latest_deps.yaml index 8b1f1c7..aea274c 100644 --- a/.github/workflows/unit_tests_with_latest_deps.yaml +++ b/.github/workflows/unit_tests_with_latest_deps.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python_version: ["3.8", "3.9", "3.10", "3.11"] + python_version: ["3.9", "3.10", "3.11"] featuretools_version: ["main", "release"] steps: - name: Checkout repository @@ -40,14 +40,14 @@ jobs: name: Install latest release of Featuretools run: | python -m pip install --force-reinstall featuretools - - if: ${{ matrix.python_version == 3.8 && matrix.featuretools_version == 'release'}} + - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'release'}} name: Generate coverage args run: echo "coverage_args=--cov=premium_primitives --cov-config=../pyproject.toml --cov-report=xml:../coverage.xml" >> $GITHUB_ENV - name: Run unit tests run: | cd unpacked_sdist python -m pytest -n auto -s -vv premium_primitives/ ${{ env.coverage_args }} - - if: ${{ matrix.python_version == 3.8 && matrix.featuretools_version == 'release'}} + - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'release'}} name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: diff --git a/pyproject.toml b/pyproject.toml index 2a33f75..1a9065b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,6 @@ classifiers = [ "Topic :: Scientific/Engineering", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -27,11 +26,11 @@ maintainers = [ ] keywords = ["feature engineering", "data science", "machine learning"] license = {text = "BSD 3-clause"} -requires-python = ">=3.8,<4" +requires-python = ">=3.9,<4" dependencies = [ "numpy >= 1.21.0", "pandas >= 1.5.0", - "featuretools >= 1.5.0, <2.0.0", + "featuretools >= 1.5.0", "woodwork >= 0.8.1", "nltk >= 3.4.5", "scikit-learn >= 0.20.0", From a78583ed9823070185d52d0524f3e8429a176154 Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Fri, 23 Feb 2024 10:45:21 -0600 Subject: [PATCH 2/5] update release notes --- release_notes.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/release_notes.rst b/release_notes.rst index 0a4b764..212fb61 100644 --- a/release_notes.rst +++ b/release_notes.rst @@ -3,9 +3,10 @@ Release Notes ------------- -v0.0.3 Feb 7, 2024 -================== +Future Release +============== * Remove pandas version upper bound restriction and add Python 3.11 tests (:pr:`16`) + * Remove support for Python 3.8 (:pr:`22`) v0.0.2 May 9, 2023 ================== From 2e18c723ffdea7d4c1fe046850dd7fde937e00c2 Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Fri, 23 Feb 2024 10:49:35 -0600 Subject: [PATCH 3/5] update release.yaml --- .github/workflows/release.yaml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aa6717c..3b224c7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,19 +1,24 @@ -name: Release on: release: types: [published] + +name: Release jobs: - pypi: + pypi-publish: name: PyPI Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Remove docs before release - run: rm -rf docs/ - - name: PyPI Upload - uses: alteryx/gh-action-pypi-upload@v2 - env: - PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - TEST_PYPI_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} - TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Install deps + run: | + python -m pip install --quiet --upgrade pip + python -m pip install --quiet --upgrade build + python -m pip install --quiet --upgrade setuptools + - name: Remove build artifacts and docs + run: | + rm -rf .eggs/ dist/ build/ docs/ + - name: Build distribution + run: python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file From 2844b4e8c676c2b9d12658e9f2da52318b994fd5 Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Fri, 23 Feb 2024 11:32:53 -0600 Subject: [PATCH 4/5] use ft main for code cov --- .github/workflows/unit_tests_with_latest_deps.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests_with_latest_deps.yaml b/.github/workflows/unit_tests_with_latest_deps.yaml index aea274c..6b13b20 100644 --- a/.github/workflows/unit_tests_with_latest_deps.yaml +++ b/.github/workflows/unit_tests_with_latest_deps.yaml @@ -47,7 +47,7 @@ jobs: run: | cd unpacked_sdist python -m pytest -n auto -s -vv premium_primitives/ ${{ env.coverage_args }} - - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'release'}} + - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'main'}} name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: From d23e7acccf430ab36040c64ef4c787ec8dfe6919 Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Fri, 23 Feb 2024 11:55:45 -0600 Subject: [PATCH 5/5] fix coverage --- .github/workflows/unit_tests_with_latest_deps.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests_with_latest_deps.yaml b/.github/workflows/unit_tests_with_latest_deps.yaml index 6b13b20..b7011bc 100644 --- a/.github/workflows/unit_tests_with_latest_deps.yaml +++ b/.github/workflows/unit_tests_with_latest_deps.yaml @@ -40,7 +40,7 @@ jobs: name: Install latest release of Featuretools run: | python -m pip install --force-reinstall featuretools - - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'release'}} + - if: ${{ matrix.python_version == 3.9 && matrix.featuretools_version == 'main'}} name: Generate coverage args run: echo "coverage_args=--cov=premium_primitives --cov-config=../pyproject.toml --cov-report=xml:../coverage.xml" >> $GITHUB_ENV - name: Run unit tests