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

Added basic setuptools config in template and tests for build-backends #37

Merged
merged 9 commits into from
Aug 6, 2024

Conversation

santacodes
Copy link
Collaborator

Additions

  • Added setuptools build-backend in pyproject.toml along with setuptools-scm (version control system for setuptools).
  • Added tests for testing the template with these backends and combining with and without version controls.

Sub-task #26

Copy link
Member

@Saransh-cpp Saransh-cpp left a comment

Choose a reason for hiding this comment

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

Thanks, @santacodes! Looks good at first glance!

template/pyproject.toml.jinja Outdated Show resolved Hide resolved
.github/workflows/test_on_push.yml Outdated Show resolved Hide resolved
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

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

Thanks, @santacodes! I agree with running the pipelines in parallel. Also, with setuptools, we need to handle package file inclusion/exclusion with an extra MANIFEST.in file, could you add it to the template? And the good thing with setuptools-with-scm is that it will make the very MANIFEST.in file I suggest redundant, so we won't need to configure it too much.

copier.yml Outdated Show resolved Hide resolved
copier.yml Outdated Show resolved Hide resolved
template/pyproject.toml.jinja Outdated Show resolved Hide resolved
template/pyproject.toml.jinja Outdated Show resolved Hide resolved
template/MANIFEST.in Outdated Show resolved Hide resolved
template/pyproject.toml.jinja Outdated Show resolved Hide resolved
template/pyproject.toml.jinja Outdated Show resolved Hide resolved
Copy link
Member

@Saransh-cpp Saransh-cpp left a comment

Choose a reason for hiding this comment

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

Thanks, @santacodes! One minor comment and then feel free to merge

template/pyproject.toml.jinja Outdated Show resolved Hide resolved
@santacodes santacodes merged commit 3d528b9 into pybamm-team:main Aug 6, 2024
83 checks passed
@santacodes santacodes deleted the setuptools branch August 30, 2024 12:39
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