-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
*.swp | ||
*.swo | ||
*.pyc | ||
*.whl | ||
*.gz | ||
build/* | ||
dist/* |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM python:3.9 | ||
|
||
COPY setup.py ./ | ||
COPY pypi-readme.md ./ | ||
COPY stitcher ./stitcher | ||
RUN python3 setup.py install | ||
|
||
|
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,25 @@ | ||
# Stiching for FASTEN Python Call Graphs | ||
|
||
This tool stitches Python | ||
call graphs written in Python produced by [PyCG](https://github.com/vitsalis/PyCG.git) in the Fasten Format. | ||
|
||
## Usage | ||
|
||
``` | ||
>>> pycg-stitch --help | ||
usage: pycg-stitch [-h] [-o OUTPUT] [call_graph ...] | ||
positional arguments: | ||
call_graph Paths to call graphs to be stitched together in JSON format | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
-o OUTPUT, --output OUTPUT | ||
Output path | ||
``` | ||
|
||
* `call_graph`: A list of paths containing FASTEN Python call graphs in JSON | ||
format. | ||
* `output`: (Optional) parameter specifying where the stitched call graph will | ||
be stored. | ||
|
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
from setuptools import setup, find_packages | ||
|
||
def get_long_desc(): | ||
with open("pypi-readme.md", "r") as readme: | ||
desc = readme.read() | ||
|
||
return desc | ||
|
||
def setup_package(): | ||
setup( | ||
name='pycg-stitch', | ||
version='0.0.1', | ||
version='0.0.3', | ||
description='Stitcher for FASTEN Python call graphs', | ||
long_description=get_long_desc(), | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/fasten-project/pycg-stitch', | ||
license='Apache Software License', | ||
packages=find_packages(), | ||
install_requires=['flask'], | ||
|
@@ -17,8 +26,8 @@ def setup_package(): | |
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 3' | ||
], | ||
author = 'Vitalis Salis', | ||
author_email = '[email protected]' | ||
author = 'Vitalis Salis, Giorgos Drosos', | ||
author_email = '[email protected], [email protected]' | ||
) | ||
|
||
if __name__ == '__main__': | ||
|