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

migrate from setup.py to pyproject.toml #86

Merged
merged 7 commits into from
Oct 13, 2022

Conversation

wanghan-iapcm
Copy link

No description provided.

@wanghan-iapcm wanghan-iapcm requested a review from njzjz October 13, 2022 01:46
@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2022

Codecov Report

Base: 67.28% // Head: 67.16% // Decreases project coverage by -0.12% ⚠️

Coverage data is based on head (36c37f2) compared to base (8589a93).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
- Coverage   67.28%   67.16%   -0.13%     
==========================================
  Files          59       59              
  Lines        2467     2467              
==========================================
- Hits         1660     1657       -3     
- Misses        807      810       +3     
Impacted Files Coverage Δ
dpgen2/__about__.py 0.00% <0.00%> (-100.00%) ⬇️
dpgen2/__init__.py 50.00% <0.00%> (-50.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

pyproject.toml Outdated
]

[tool.setuptools.packages.find]
include = ["dpgen2"]
Copy link
Member

Choose a reason for hiding this comment

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

Use dpgen2* to match submodules (e.g. dpgen2.entrypoint). Otherwise only dpgen2 is matched.

Copy link
Author

Choose a reason for hiding this comment

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

if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

The current behavior is testing the package without installing it.
We may:

  1. install the package.
  2. restore requirement.txt, and find someway of using it in pyproject.toml, just like the what the setup.py does.
    What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I prefer pip install -e . in editable mode. There is also a funny workaround in pypa/pip#8049 (comment).

@wanghan-iapcm
Copy link
Author

@njzjz could you please help fixing the issue in the doc building? thanks!

pyproject.toml Outdated
Comment on lines 36 to 44
docs = [
'sphinx',
'recommonmark',
'sphinx_rtd_theme>=1.0.0rc1',
'numpydoc',
'm2r2',
'deepmodeling-sphinx>=0.1.1',
'sphinx-argparse',
]
Copy link
Member

Choose a reason for hiding this comment

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

These are different from setup.py...

Copy link
Author

Choose a reason for hiding this comment

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

get...

@wanghan-iapcm wanghan-iapcm enabled auto-merge (squash) October 13, 2022 13:01
@wanghan-iapcm wanghan-iapcm merged commit 2f6643e into deepmodeling:master Oct 13, 2022
njzjz added a commit to njzjz/dpgen2 that referenced this pull request Oct 31, 2022
as deepmodeling#86 requires setuptools 61
@njzjz njzjz mentioned this pull request Oct 31, 2022
wanghan-iapcm pushed a commit that referenced this pull request Nov 1, 2022
as #86 requires setuptools 61
@amcadmus amcadmus deleted the pyproject branch July 26, 2023 08:00
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.

3 participants