Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - move to pyproject.toml #1336

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL something new about the ecosystem today!

Does this have to be multi-line, btw? Just curious, it looks more like a single-line bash command.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just did a copy and paste, but it's yaml, so it should just fit into one line


- name: Install bump2version and wheel
run: python -m pip install bumpversion wheel # "bumpversion" installs bump2version
Expand Down
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! Is the dependency list really this small? I suspect it might be longer, though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i pulled it from `.requirements/base.in', based on information in setup.py

classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python"
]
authors = [
{name = "pyjanitor devs"},
{email = "[email protected]"},
]

[project.urls]
Homepage = "https://pyjanitor-devs.github.io/pyjanitor"
Documentation = "https://mkdocs.org"
samukweku marked this conversation as resolved.
Show resolved Hide resolved
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']
samukweku marked this conversation as resolved.
Show resolved Hide resolved

[tool.black]
exclude = '''
/(
Expand Down
Loading