Skip to content

Commit

Permalink
publish pycg-stitch to pypi.org
Browse files Browse the repository at this point in the history
  • Loading branch information
gdrosos committed May 10, 2022
1 parent 6368e82 commit ed5d109
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*.swp
*.swo
*.pyc
*.whl
*.gz
build/*
dist/*
1 change: 1 addition & 0 deletions Dockerfile
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

Expand Down
25 changes: 25 additions & 0 deletions pypi-readme.md
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.

15 changes: 12 additions & 3 deletions setup.py
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'],
Expand All @@ -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__':
Expand Down

0 comments on commit ed5d109

Please sign in to comment.