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

Add minimum pyproject.toml so project repo can be installed in learner environments #278

Open
bielsnohr opened this issue Nov 21, 2023 · 0 comments

Comments

@bielsnohr
Copy link
Collaborator

As mentioned in #268, the lack of a way to easily install the project repo in a virtual environment makes it quite difficult to navigate some aspects of the course, particularly exercising parts of the IDE and testing. It is worth noting, that almost any Python project I have ever worked on requires an editable install of the package. I recommend we return to doing the same at the beginning of the lesson.

On the practical side, this requires a fairly rudimentary pyproject.toml to get running:

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "python-intermediate-inflammation"
version = "0.0.0"
requires-python = ">=3.8"

[tool.setuptools]
packages = ["inflammation"]

This would be bundled into the initial learner project. Only thing that would need to be added is an install command put somewhere in the course (probably before the testing lesson):

pip install -e .
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

No branches or pull requests

1 participant