Packaging
Exercises
Build a Dependency Tree
-
Write a program that parses Python source files, detects
import
statements, and builds a list of imported packages. -
Describe two situations in which your program will fail to detect dependencies.
Resolve Dependencies
Use Z3 to build a tool that reads a YAML file of inter-package dependencies and produces (a) a single solution and (b) all possible solutions. (See this chapter for details.)