From 3e1ea131a75d2d937eee9fcfdc04f9b39914ebf1 Mon Sep 17 00:00:00 2001 From: Stavros Kolometsos Date: Tue, 2 Nov 2021 12:39:03 +0200 Subject: [PATCH 1/6] =?UTF-8?q?Bump=20version:=200.2.5=20=E2=86=92=200.5.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- evolved5g/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evolved5g/__init__.py b/evolved5g/__init__.py index 25de43e..b859e70 100644 --- a/evolved5g/__init__.py +++ b/evolved5g/__init__.py @@ -1,7 +1,7 @@ """Top-level package for Evolved5G_CLI.""" __author__ = "EVOLVED5G project" -__version__ = '0.2.5' +__version__ = '0.5.0' # Uncomment next lines to give direct import access to modules #from . import cli diff --git a/setup.cfg b/setup.cfg index 711a40e..a83c9bd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.5 +current_version = 0.5.0 commit = True tag = True diff --git a/setup.py b/setup.py index 522506c..2dfee40 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,6 @@ test_suite='tests', tests_require=test_requirements, url='https://github.com/EVOLVED-5G/SDK-CLI', - version='0.2.5', + version='0.5.0', zip_safe=False, ) From ae75a82f88a44048197a8fea2a1e91584e155af3 Mon Sep 17 00:00:00 2001 From: Stavros Kolometsos Date: Tue, 2 Nov 2021 12:55:28 +0200 Subject: [PATCH 2/6] added build to req_dev --- requirements_dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements_dev.txt b/requirements_dev.txt index eef7463..4fd5c77 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -14,3 +14,4 @@ pytest==6.2.4 cookiecutter==1.7.3 invoke==1.6.0 requests==2.26.0 +build From 0702ed9fdfbc06329a615dc675223275273a4fd1 Mon Sep 17 00:00:00 2001 From: Stavros Kolometsos Date: Tue, 2 Nov 2021 14:04:47 +0200 Subject: [PATCH 3/6] fix requirements reading --- MANIFEST.in | 1 + setup.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 292d6dd..29796ca 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,7 @@ include CONTRIBUTING.rst include HISTORY.rst include LICENSE include README.rst +include requirements.txt recursive-include tests * recursive-exclude * __pycache__ diff --git a/setup.py b/setup.py index 2dfee40..e4605c2 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,6 @@ """The setup script.""" from setuptools import setup, find_packages -from pathlib import Path with open('README.rst') as readme_file: readme = readme_file.read() @@ -11,8 +10,8 @@ with open('HISTORY.rst') as history_file: history = history_file.read() -with Path('requirements.txt').open() as file: - INSTALL_REQUIERES = file.readlines() +with open('requirements.txt') as file: + INSTALL_REQUIERES = file.read().splitlines() test_requirements = ['pytest>=3', ] From a8c8283125260665f141503a10a832dcebd7fc9d Mon Sep 17 00:00:00 2001 From: Stavros Kolometsos Date: Tue, 2 Nov 2021 16:31:11 +0200 Subject: [PATCH 4/6] typo fix on pipeline commands --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 302ca37..018eee1 100644 --- a/README.rst +++ b/README.rst @@ -234,21 +234,21 @@ Examples of usage .. code-block:: console - $ evolved5g run_pipeline --mode build --repo REPOSITORY_NAME + $ evolved5g run-pipeline --mode build --repo REPOSITORY_NAME .. code-block:: console - $ evolved5g run_pipeline --mode deploy --repo REPOSITORY_NAME + $ evolved5g run-pipeline --mode deploy --repo REPOSITORY_NAME .. code-block:: console - $ evolved5g run_pipeline --mode destroy --repo REPOSITORY_NAME + $ evolved5g run-pipeline --mode destroy --repo REPOSITORY_NAME .. code-block:: console - $ evolved5g check_pipeline --id YOUR_ID + $ evolved5g check-pipeline --id YOUR_ID The pipelines build, deploy or destroy will return an **ID** which can be used with the command *check_pipeline* to see how the NetApp is performing. From 73e9017fd2bf68aac99e7be6649f37618e66ad05 Mon Sep 17 00:00:00 2001 From: Stavros Kolometsos Date: Tue, 2 Nov 2021 19:17:57 +0200 Subject: [PATCH 5/6] Update README.rst Made clip copying the commands easier --- README.rst | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/README.rst b/README.rst index 018eee1..99f0cbe 100644 --- a/README.rst +++ b/README.rst @@ -55,14 +55,14 @@ To create a new repository within the EVOLVED-5G organization it is mandatory to .. code-block:: console - $ ssh-keygen -t rsa + ssh-keygen -t rsa Some inputs will be asked, you just need to press enter to leave it by default. If left as default the key pair generated can be found in the /home/ubuntu/.ssh directory of your ubuntu machine. To be able to work through SSH, you will need to copy the public key file you have generated and add it to your GitHub account, this can be done as follows: .. code-block:: console - $ cat ~/.ssh/id_rsa.pub + cat ~/.ssh/id_rsa.pub #. Copy the output to your clipboard #. In your GitHub account go to "Settings" (up right) and then you will see a tab called "SSH and GPG Keys" @@ -111,10 +111,10 @@ To install Evolved5G_CLI, run this command in your terminal: .. code-block:: console - $ sudo apt update - $ supo apt install python3 - $ sudo apt install python3-setuptools - $ pip install evolved5g + sudo apt update + supo apt install python3 + sudo apt install python3-setuptools + pip install evolved5g This is the preferred method to install Evolved5G_CLI, as it will always install the most recent stable release. @@ -134,19 +134,19 @@ You can either clone the public repository: .. code-block:: console - $ git clone git://github.com/EVOLVED-5G/SDK-CLI + git clone git://github.com/EVOLVED-5G/SDK-CLI Or download the `tarball`_: .. code-block:: console - $ curl -OJL https://github.com/EVOLVED-5G/SDK-CLI/tarball/master + curl -OJL https://github.com/EVOLVED-5G/SDK-CLI/tarball/master Once you have a copy of the source, you can install it with: .. code-block:: console - $ python setup.py install + python setup.py install Once it is installed you will be able to generate (create) a repository for your NetApp. @@ -161,7 +161,7 @@ Run the following command to access the documentation/help page and read about t .. code-block:: console - $ evolved5g + evolved5g Generate -------- @@ -170,13 +170,13 @@ To generate a new NetApp project run the following command. You will be asked fo .. code-block:: console - $ evolved5g generate + evolved5g generate or to learn more about the available options .. code-block:: console - $ evolved5g generate --help + evolved5g generate --help If you get an error saying **cookiecutter command not found** please do set the correct PATH as following: @@ -188,11 +188,11 @@ In Linux: * .. code-block:: console - $ export PATH=$HOME/.local/bin:$PATH + export PATH=$HOME/.local/bin:$PATH * .. code-block:: console - $ source ~/.bash_profile + source ~/.bash_profile * Install cookiecutter @@ -234,21 +234,20 @@ Examples of usage .. code-block:: console - $ evolved5g run-pipeline --mode build --repo REPOSITORY_NAME + evolved5g run-pipeline --mode build --repo REPOSITORY_NAME .. code-block:: console - - $ evolved5g run-pipeline --mode deploy --repo REPOSITORY_NAME + evolved5g run-pipeline --mode deploy --repo REPOSITORY_NAME .. code-block:: console - $ evolved5g run-pipeline --mode destroy --repo REPOSITORY_NAME + evolved5g run-pipeline --mode destroy --repo REPOSITORY_NAME .. code-block:: console - $ evolved5g check-pipeline --id YOUR_ID + evolved5g check-pipeline --id YOUR_ID The pipelines build, deploy or destroy will return an **ID** which can be used with the command *check_pipeline* to see how the NetApp is performing. @@ -276,12 +275,15 @@ Prerequisites / How to start Install the requirements_dev.txt +.. code-block:: console + pip install -r requirements_dev.txt Make sure you have initiated the NEF_EMULATOR at url http://localhost:8888 (See `here `_ for instructions), you have logged in to the interface, clicked on the map and have started the simulation. Then run a webserver in order to capture the callback post requests from NEF EMULATOR: On the terminal run the following commands to initiaze the webserver. +.. code-block:: console export FLASK_APP=/home/user/evolved-5g/SDK-CLI/examples/api.py From 0f6a67c40583c0ed1e6e99f6b6baa97a79e2ce9d Mon Sep 17 00:00:00 2001 From: rimarala <29604142+rimarala@users.noreply.github.com> Date: Wed, 3 Nov 2021 18:00:19 +0100 Subject: [PATCH 6/6] Create delete_branch_on_close_PR.yml --- .github/workflows/delete_branch_on_close_PR.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/delete_branch_on_close_PR.yml diff --git a/.github/workflows/delete_branch_on_close_PR.yml b/.github/workflows/delete_branch_on_close_PR.yml new file mode 100644 index 0000000..53ca9a5 --- /dev/null +++ b/.github/workflows/delete_branch_on_close_PR.yml @@ -0,0 +1,14 @@ +name: delete branch on close pr +on: + pull_request: + types: [closed] + +jobs: + delete-branch: + runs-on: ubuntu-latest + steps: + - name: delete branch + uses: SvanBoxel/delete-merged-branch@main + env: + exclude: develop + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}