From 4ee5593504da469d46f8858106fd8a78e22f62ab Mon Sep 17 00:00:00 2001 From: samukweku Date: Mon, 12 Feb 2024 20:39:43 +1100 Subject: [PATCH 1/4] WIP - move to pyproject.toml --- .github/workflows/auto-release.yml | 10 +++++++- pyproject.toml | 40 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 4e67d77d3..3c12cc23c 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -46,7 +46,15 @@ jobs: # wait-interval: 60 # seconds - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user - name: Install bump2version and wheel run: python -m pip install bumpversion wheel # "bumpversion" installs bump2version diff --git a/pyproject.toml b/pyproject.toml index b1ab80bfa..c5360450f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,43 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "pyjanitor" +version = "0.26.0" +description="Tools for cleaning pandas DataFrames" +url="https://github.com/pyjanitor-devs/pyjanitor" +license = {text = "MIT License"} +requires-python = ">= 3.8" +readme = 'README.md' +dependencies = [ + "pandas >= 2.0.0", + "pandas_flavor", + "multiple_dispatch", + "scipy" +] +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python" +] +authors = [ + {name = "pyjanitor devs"}, + {email = "ericmajinglong@gmail.com"}, +] + +[project.urls] +Homepage = "https://pyjanitor-devs.github.io/pyjanitor" +Documentation = "https://mkdocs.org" +Repository = "https://github.com/pyjanitor-devs/pyjanitor.git" +Issues = "https://github.com/pyjanitor-devs/pyjanitor/issues" +Changelog = "https://github.com/pyjanitor-devs/pyjanitor/blob/dev/CHANGELOG.md" + +[project.optional-dependencies] +biology = ["biopython"] +engineering = ["unyt"] +spark = ["pyspark"] +chemistry = ['tqdm'] + [tool.black] exclude = ''' /( From eb1ca4d55d17083d46c81aa15d4e7df90d62ab70 Mon Sep 17 00:00:00 2001 From: Samuel Oranyeli Date: Tue, 13 Feb 2024 18:11:16 +1100 Subject: [PATCH 2/4] Update pyproject.toml Co-authored-by: Eric Ma --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c5360450f..93ea33426 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ authors = [ [project.urls] Homepage = "https://pyjanitor-devs.github.io/pyjanitor" -Documentation = "https://mkdocs.org" +Documentation = "https://pyjanitor-devs.github.io/pyjanitor" Repository = "https://github.com/pyjanitor-devs/pyjanitor.git" Issues = "https://github.com/pyjanitor-devs/pyjanitor/issues" Changelog = "https://github.com/pyjanitor-devs/pyjanitor/blob/dev/CHANGELOG.md" From 9cee4b63529c02f5f1f9bf2a23b42083f5413fbf Mon Sep 17 00:00:00 2001 From: Samuel Oranyeli Date: Tue, 13 Feb 2024 18:12:20 +1100 Subject: [PATCH 3/4] Update pyproject.toml Co-authored-by: Eric Ma --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 93ea33426..47f8c3e76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ Changelog = "https://github.com/pyjanitor-devs/pyjanitor/blob/dev/CHANGELOG.md" biology = ["biopython"] engineering = ["unyt"] spark = ["pyspark"] -chemistry = ['tqdm'] +chemistry = ["tqdm", "rdkit"] [tool.black] exclude = ''' From 0717d4f5cf9d384b7da1145b4d988a5ba837742f Mon Sep 17 00:00:00 2001 From: samukweku Date: Tue, 13 Feb 2024 18:12:46 +1100 Subject: [PATCH 4/4] update based on feedback --- .github/workflows/auto-release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 3c12cc23c..172b1c52e 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -51,10 +51,7 @@ jobs: python-version: "3.x" - name: Install pypa/build run: >- - python3 -m - pip install - build - --user + python3 -m pip install build --user - name: Install bump2version and wheel run: python -m pip install bumpversion wheel # "bumpversion" installs bump2version