Skip to content

Commit

Permalink
Merge pull request EVOLVED-5G#30 from EVOLVED-5G/rimarala-delete-bran…
Browse files Browse the repository at this point in the history
…ch-after-merge-PR

Rimarala delete branch after merge pr
  • Loading branch information
pencinarsanz-atos authored Nov 4, 2021
2 parents 3cd1e8b + 0f6a67c commit e4f6d3f
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 25 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/delete_branch_on_close_PR.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst
include requirements.txt

recursive-include tests *
recursive-exclude * __pycache__
Expand Down
40 changes: 21 additions & 19 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand All @@ -161,7 +161,7 @@ Run the following command to access the documentation/help page and read about t

.. code-block:: console
$ evolved5g
evolved5g
Generate
--------
Expand All @@ -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:

Expand All @@ -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

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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 <https://github.com/EVOLVED-5G/NEF_emulator>`_ 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
Expand Down
2 changes: 1 addition & 1 deletion evolved5g/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pytest==6.2.4
cookiecutter==1.7.3
invoke==1.6.0
requests==2.26.0
build
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.5
current_version = 0.5.0
commit = True
tag = True

Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
"""The setup script."""

from setuptools import setup, find_packages
from pathlib import Path

with open('README.rst') as readme_file:
readme = readme_file.read()

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', ]

Expand Down Expand Up @@ -46,6 +45,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,
)

0 comments on commit e4f6d3f

Please sign in to comment.