From 771c995efa7bfd91447a24ec6ed75ae9a035e2cb Mon Sep 17 00:00:00 2001 From: Michel Rouly Date: Fri, 28 Jan 2022 12:37:08 -0500 Subject: [PATCH 1/2] Make compatible with standard pip installation methods --- {src/openne => openne}/__init__.py | 0 {src/openne => openne}/__main__.py | 0 {src/openne => openne}/classify.py | 0 {src/openne => openne}/gcn/__init__.py | 0 {src/openne => openne}/gcn/gcnAPI.py | 0 {src/openne => openne}/gcn/inits.py | 0 {src/openne => openne}/gcn/layers.py | 0 {src/openne => openne}/gcn/metrics.py | 0 {src/openne => openne}/gcn/models.py | 0 {src/openne => openne}/gcn/train.py | 0 {src/openne => openne}/gcn/utils.py | 0 {src/openne => openne}/gf.py | 0 {src/openne => openne}/graph.py | 0 {src/openne => openne}/grarep.py | 0 {src/openne => openne}/hope.py | 0 {src/openne => openne}/lap.py | 0 {src/openne => openne}/line.py | 0 {src/openne => openne}/lle.py | 0 {src/openne => openne}/node2vec.py | 0 {src/openne => openne}/sdne.py | 0 {src/openne => openne}/tadw.py | 0 {src/openne => openne}/walker.py | 0 src/setup.py => setup.py | 4 ++-- 23 files changed, 2 insertions(+), 2 deletions(-) rename {src/openne => openne}/__init__.py (100%) rename {src/openne => openne}/__main__.py (100%) rename {src/openne => openne}/classify.py (100%) rename {src/openne => openne}/gcn/__init__.py (100%) rename {src/openne => openne}/gcn/gcnAPI.py (100%) rename {src/openne => openne}/gcn/inits.py (100%) rename {src/openne => openne}/gcn/layers.py (100%) rename {src/openne => openne}/gcn/metrics.py (100%) rename {src/openne => openne}/gcn/models.py (100%) rename {src/openne => openne}/gcn/train.py (100%) rename {src/openne => openne}/gcn/utils.py (100%) rename {src/openne => openne}/gf.py (100%) rename {src/openne => openne}/graph.py (100%) rename {src/openne => openne}/grarep.py (100%) rename {src/openne => openne}/hope.py (100%) rename {src/openne => openne}/lap.py (100%) rename {src/openne => openne}/line.py (100%) rename {src/openne => openne}/lle.py (100%) rename {src/openne => openne}/node2vec.py (100%) rename {src/openne => openne}/sdne.py (100%) rename {src/openne => openne}/tadw.py (100%) rename {src/openne => openne}/walker.py (100%) rename src/setup.py => setup.py (84%) diff --git a/src/openne/__init__.py b/openne/__init__.py similarity index 100% rename from src/openne/__init__.py rename to openne/__init__.py diff --git a/src/openne/__main__.py b/openne/__main__.py similarity index 100% rename from src/openne/__main__.py rename to openne/__main__.py diff --git a/src/openne/classify.py b/openne/classify.py similarity index 100% rename from src/openne/classify.py rename to openne/classify.py diff --git a/src/openne/gcn/__init__.py b/openne/gcn/__init__.py similarity index 100% rename from src/openne/gcn/__init__.py rename to openne/gcn/__init__.py diff --git a/src/openne/gcn/gcnAPI.py b/openne/gcn/gcnAPI.py similarity index 100% rename from src/openne/gcn/gcnAPI.py rename to openne/gcn/gcnAPI.py diff --git a/src/openne/gcn/inits.py b/openne/gcn/inits.py similarity index 100% rename from src/openne/gcn/inits.py rename to openne/gcn/inits.py diff --git a/src/openne/gcn/layers.py b/openne/gcn/layers.py similarity index 100% rename from src/openne/gcn/layers.py rename to openne/gcn/layers.py diff --git a/src/openne/gcn/metrics.py b/openne/gcn/metrics.py similarity index 100% rename from src/openne/gcn/metrics.py rename to openne/gcn/metrics.py diff --git a/src/openne/gcn/models.py b/openne/gcn/models.py similarity index 100% rename from src/openne/gcn/models.py rename to openne/gcn/models.py diff --git a/src/openne/gcn/train.py b/openne/gcn/train.py similarity index 100% rename from src/openne/gcn/train.py rename to openne/gcn/train.py diff --git a/src/openne/gcn/utils.py b/openne/gcn/utils.py similarity index 100% rename from src/openne/gcn/utils.py rename to openne/gcn/utils.py diff --git a/src/openne/gf.py b/openne/gf.py similarity index 100% rename from src/openne/gf.py rename to openne/gf.py diff --git a/src/openne/graph.py b/openne/graph.py similarity index 100% rename from src/openne/graph.py rename to openne/graph.py diff --git a/src/openne/grarep.py b/openne/grarep.py similarity index 100% rename from src/openne/grarep.py rename to openne/grarep.py diff --git a/src/openne/hope.py b/openne/hope.py similarity index 100% rename from src/openne/hope.py rename to openne/hope.py diff --git a/src/openne/lap.py b/openne/lap.py similarity index 100% rename from src/openne/lap.py rename to openne/lap.py diff --git a/src/openne/line.py b/openne/line.py similarity index 100% rename from src/openne/line.py rename to openne/line.py diff --git a/src/openne/lle.py b/openne/lle.py similarity index 100% rename from src/openne/lle.py rename to openne/lle.py diff --git a/src/openne/node2vec.py b/openne/node2vec.py similarity index 100% rename from src/openne/node2vec.py rename to openne/node2vec.py diff --git a/src/openne/sdne.py b/openne/sdne.py similarity index 100% rename from src/openne/sdne.py rename to openne/sdne.py diff --git a/src/openne/tadw.py b/openne/tadw.py similarity index 100% rename from src/openne/tadw.py rename to openne/tadw.py diff --git a/src/openne/walker.py b/openne/walker.py similarity index 100% rename from src/openne/walker.py rename to openne/walker.py diff --git a/src/setup.py b/setup.py similarity index 84% rename from src/setup.py rename to setup.py index 4b582ca7..16437256 100644 --- a/src/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ author="THUNLP", description="Open Source Network Embedding toolkit", packages=find_packages(), - long_description=open("../README.md").read(), + long_description=open("README.md").read(), zip_safe=False, setup_requires=[] -) \ No newline at end of file +) From cc9c5ae10b18898dc06242ac491169ee37dccb4e Mon Sep 17 00:00:00 2001 From: Michel Rouly Date: Fri, 28 Jan 2022 12:40:20 -0500 Subject: [PATCH 2/2] update readme installation instructions --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a356416a..6401bcca 100644 --- a/README.md +++ b/README.md @@ -20,18 +20,18 @@ We develop this toolkit according to the settings of DeepWalk. The implemented o - Clone this repo. - enter the directory where you clone it, and run the following code - ```bash - pip install -r requirements.txt - cd src - python setup.py install - ``` +```bash +pip install -r requirements.txt +python setup.py install +``` #### General Options You can check out the other options available to use with *OpenNE* using: - python -m openne --help - +```bash +python -m openne --help +``` - --input, the input file of a network; - --graph-format, the format of input graph, adjlist or edgelist;