diff --git a/.github/workflows/release-deprecated.yml b/.github/workflows/release-deprecated.yml new file mode 100644 index 000000000..a57fcbc33 --- /dev/null +++ b/.github/workflows/release-deprecated.yml @@ -0,0 +1,71 @@ +name: Release Deprecated PP + + +on: + workflow_dispatch: + inputs: + version: + description: 'Version to release' + required: true + default: '3.6.4' + + +jobs: + package: + name: Build and Package + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + + - name: Setup Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: "3.8" + + - uses: actions/cache@v3 + name: Cache pip dependencies + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + python -m pip install -r requirements-dev.txt + python -m pip install -r requirements-test.txt + + - name: Install + run: make install + + - name: Lint + run: make lint + + - name: Build package + run: make package version=${{ github.event.inputs.version }} + + - name: Upload Pipeline Artifacts + uses: actions/upload-artifact@v3 + with: + name: built-artifacts + path: dist/ + + publish-pypi: + name: Publish packages to PyPi + runs-on: ubuntu-20.04 + + needs: package + + steps: + - uses: actions/download-artifact@v3 + with: + name: built-artifacts + path: dist/ + + - uses: pypa/gh-action-pypi-publish@v1.6.4 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e52abde0..2045056a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,7 +115,9 @@ jobs: pip install -r requirements-test.txt - name: Install the package - run: make install + run: | + make install + make install-spark-ci - name: Update examples run: make examples diff --git a/docsrc/source/conf.py b/docsrc/source/conf.py index 1eb5832fe..9ddf5cba6 100644 --- a/docsrc/source/conf.py +++ b/docsrc/source/conf.py @@ -20,7 +20,7 @@ # -- Project information ----------------------------------------------------- -project = "pandas-profiling" +project = "ydata-profiling" year = date.today().year copyright = f"{year}, YData Labs Inc" author = "YData Labs Inc" @@ -31,7 +31,7 @@ def _GetApiWrapperVersion(): import pkg_resources - return pkg_resources.get_distribution("pandas-profiling").version + return pkg_resources.get_distribution("ydata-profiling").version release = _GetApiWrapperVersion()