From f9eec3dfa6c427ab290d41e94dedf5a143c971c0 Mon Sep 17 00:00:00 2001 From: Julian Minder Date: Wed, 5 Jun 2024 14:59:49 +0200 Subject: [PATCH] minor updates to docs, prepare for push to pypi --- README.md | 18 ++---------------- docs/source/index.rst | 2 +- docs/source/installation.rst | 20 ++++---------------- docs/source/quick_start.rst | 2 +- setup.py | 13 +++++++++---- 5 files changed, 17 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 33e287a..2808a0f 100644 --- a/README.md +++ b/README.md @@ -18,19 +18,8 @@ The library is built specifically for converting data into a [neo4j](https://neo This library has been developed at the [Chair of Systems Design at ETH Zürich](https://www.sg.ethz.ch). ## Installation -If you have setup a private ssh key for your github, copy-paste the command below to install the latest version ([v1.3.3][latest_tag]): ``` -pip install git+ssh://git@github.com/jkminder/data2neo@v1.3.3 -``` - -If you don't have ssh set up, download the latest wheel [here][latest_wheel] and install the wheel with: -``` -pip install **path-to-wheel** -``` - -If you have cloned the repository you can also build it locally with -``` -pip install **path-to-repository** +pip install data2neo ``` The Data2Neo library supports Python 3.8+. @@ -94,7 +83,4 @@ converter() # Known issues If you encounter a bug or an unexplainable behavior, please check the [known issues](https://github.com/jkminder/Data2Neo/labels/bug) list. If your issue is not found, submit a new one. -[latest_version]: v1.3.3 -[latest_tag]: https://github.com/jkminder/data2neo/releases/tag/v1.3.3 -[latest_wheel]: https://github.com/jkminder/data2neo/releases/download/v1.3.3/Data2Neo-1.3.3-py3-none-any.whl -[wiki]: https://Data2Neo.jkminder.ch/index.html +[wiki]: https://data2neo.jkminder.ch/index.html diff --git a/docs/source/index.rst b/docs/source/index.rst index bc2b77c..c41d15c 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -3,7 +3,7 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -Welcome to **data2neo**'s documentation! +Welcome to **Data2Neo**'s documentation! ========================================= **Data2Neo** is a library that simplifies the conversion of data in relational format diff --git a/docs/source/installation.rst b/docs/source/installation.rst index 517c1ba..d5e3e28 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -3,22 +3,10 @@ Installation ============= -To install the software, follow these steps: +Install the package using pip: -1. Clone the repository: +.. code-block:: bash - .. code-block:: bash + pip install data2neo - git clone git@github.com:sg-dev/data2neo.git - -2. Change to the project directory: - - .. code-block:: bash - - cd data2neo - -3. Install the library: - - .. code-block:: bash - - pip install . + \ No newline at end of file diff --git a/docs/source/quick_start.rst b/docs/source/quick_start.rst index 88125a8..ea2c444 100644 --- a/docs/source/quick_start.rst +++ b/docs/source/quick_start.rst @@ -66,7 +66,7 @@ We can define a function, CONVERTCURRENCY, to standardise these values into a si .. code-block:: python - from Data2Neo import register_attribute_postprocessor, Attribute + from data2neo import register_attribute_postprocessor, Attribute @register_attribute_postprocessor def CONVERTCURRENCY(attribute, currency): diff --git a/setup.py b/setup.py index fc48b88..053a081 100644 --- a/setup.py +++ b/setup.py @@ -6,15 +6,20 @@ 'neo4j>=5.11.0' ] +long_desc = open('README.md').read() +# replace local links +long_desc = long_desc.replace('docs/source/assets/images/data2neo_banner.png', 'https://github.com/jkminder/data2neo/blob/main/docs/source/assets/images/data2neo_banner.png?raw=true') + setup( name = "data2neo", packages = find_packages(), - version = "1.4.0", + version = "1.4.3", description = "Library for converting relational data into graph data (neo4j)", author = "Julian Minder", author_email = "jminder@ethz.ch", url = "https://github.com/jkminder/data2neo", install_requires = requirements, - python_requires = ">=3.8" -) - \ No newline at end of file + python_requires = ">=3.8", + long_description=long_desc, + long_description_content_type='text/markdown' +) \ No newline at end of file