generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a README to show how to use this CLI tool
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# PyPI analysis | ||
|
||
This directory contains the code for automating PyPI analysis. It is a command-line tool designed to facilitate pre-analysis of Python code and detect conditional, alternative, or dynamic imports. Much of the code is reused from the main Fawltydeps source code. | ||
|
||
## Usage | ||
To use PyPI Analysis, follow these steps: | ||
|
||
1. Install Poetry, and then run: | ||
``` | ||
poetry install | ||
``` | ||
to create a virtualenv with all dependencies installed. | ||
|
||
2. Activate the Virtual Environment | ||
|
||
After installing Poetry, activate the virtual environment using: | ||
``` | ||
poetry shell | ||
``` | ||
to jump into a development shell with this virtualenv activated. | ||
|
||
3. Perform the Analysis | ||
|
||
In the Poetry shell, navigate to the directory you want to analyze and execute the following command: | ||
``` | ||
python3 -m PyPI_analysis | ||
``` | ||
This will initiate the analysis and report any conditional, alternative, or dynamic imports detected in the code. | ||
|
||
To learn more about the available options: | ||
``` | ||
python3 -m PyPI_analysis --help | ||
``` |