Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the purpose of the setup.py file?
Think about what information is necessary to describe a Python package.
What command do you use to create a source distribution?
Recall the common command format for building packages in Python.
What file is required to configure your Python package?
Remember the primary configuration file used in Python packaging.
True or False: The bdist_wheel command produces a source distribution.
Bring to mind the file types generated by different build commands.
Your package is built successfully, but it fails to upload to PyPI. Describe how you would troubleshoot this issue.
Think about the common pitfalls that might occur during uploads.
Imagine you have a library that depends on specific versions of two packages, NumPy and Pandas. Explain how you would manage these dependencies in your setup.py file.
Recall the syntax used to specify dependencies in setup.py.
5 more questions in this section. Enroll free to practise them all.
Enroll free