Skip to content

Commit

Permalink
docs: fix docsrc configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoalramos committed Jan 30, 2023
1 parent 1216fae commit 6ba2217
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 3 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/release-deprecated.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docsrc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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()
Expand Down

0 comments on commit 6ba2217

Please sign in to comment.