Skip to content

Migrate to setup.cfg #127

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

Merged
merged 11 commits into from
Apr 26, 2022
Merged

Migrate to setup.cfg #127

merged 11 commits into from
Apr 26, 2022

Conversation

rwedge
Copy link
Contributor

@rwedge rwedge commented Apr 21, 2022

Closes #114

Also has more steps in the CI use Make commands instead of using pip directly

@@ -20,18 +20,13 @@ jobs:
run: |
python -m virtualenv venv_core
source venv_core/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r test-requirements.txt
Copy link
Contributor Author

@rwedge rwedge Apr 21, 2022

Choose a reason for hiding this comment

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

only dependencies being tracked in latest_core_dependencies.txt are nltk and featuretools which are both regular requirements so not necessary to install the test requirements (which also install the complete requirements)

Copy link
Contributor

@thehomebrewnerd thehomebrewnerd left a comment

Choose a reason for hiding this comment

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

We should also update the make package_nlp_primitives command to use python -m build instead of python setup.py sdist. See Featuretools for reference: https://github.com/alteryx/featuretools/blob/54c2ba8a80193f0b05f271fd493fd7c90fc34f82/Makefile#L48

@@ -0,0 +1 @@
__version__ = '2.5.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that we have added this file, should we add a test_version.py file like we have in other repos?

Also, we need to update release.md to point to the proper places where the version needs to be changed: here and in test_version.py if we add that. Don't need to refer to setup.py any more.

setup.cfg Outdated
tensorflow_hub >= 0.4.0

dev =
wheel>=0.35.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Is wheel needed? I know it was in the deps before, but not clear why off the top of my head.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably not, I imagine build would replace it as a direct need at this point if anything

license = BSD 3-clause
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/alteryx/nlp_primitives
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should update the URL's like in Featuretools to include some other links?

https://github.com/alteryx/featuretools/blob/54c2ba8a80193f0b05f271fd493fd7c90fc34f82/setup.cfg#L6

@rwedge rwedge requested a review from gsheni April 25, 2022 15:10
Copy link
Contributor

@gsheni gsheni left a comment

Choose a reason for hiding this comment

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

left a few comments, but looks good overall.

Co-authored-by: Gaurav Sheni <gvsheni@gmail.com>
@gsheni
Copy link
Contributor

gsheni commented Apr 25, 2022

I can approve this once the tests pass.

@rwedge rwedge requested a review from gsheni April 25, 2022 23:04
@rwedge rwedge merged commit 3810631 into main Apr 26, 2022
@rwedge rwedge deleted the setupcfg branch April 26, 2022 21:08
@rwedge rwedge mentioned this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transition nlp-primitives to use pyproject.toml and setup.cfg (away from setup.py)
3 participants