4.1 - Setup Configuration: setup.py
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is the purpose of the setup.py file?
💡 Hint: Think about what information a package needs for installation.
Name one required file in addition to setup.py.
💡 Hint: Consider what files help provide context or guidelines for usage.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does the setup.py file mainly contain?
💡 Hint: Think about the role of configuration files.
True or False: The README.md file is required for a package to be built.
💡 Hint: How essential are documentation files compared to code files?
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a setup.py script for a hypothetical package named 'data-analyzer' that requires 'pandas' and 'numpy'. Include all necessary metadata and the instructions to build it.
💡 Hint: Think about what fields are conventionally included in a setup script.
Discuss how you would test a package build locally before uploading it. What steps would you take?
💡 Hint: Consider the importance of verifying functionality in a controlled environment before sharing.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.