diff --git a/.gitignore b/.gitignore index d2d414b..bf8f413 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ *.swp *.swo *.pyc +*.whl +*.gz +build/* +dist/* diff --git a/Dockerfile b/Dockerfile index 9702fcc..0127cb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM python:3.9 COPY setup.py ./ +COPY pypi-readme.md ./ COPY stitcher ./stitcher RUN python3 setup.py install diff --git a/pypi-readme.md b/pypi-readme.md new file mode 100644 index 0000000..93f5e89 --- /dev/null +++ b/pypi-readme.md @@ -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. + diff --git a/setup.py b/setup.py index 7a5cb5d..03c3d5b 100644 --- a/setup.py +++ b/setup.py @@ -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 = 'vitsalis@gmail.com' + author = 'Vitalis Salis, Giorgos Drosos', + author_email = 'vitsalis@gmail.com, drosos007@gmail.com' ) if __name__ == '__main__':