Commit 522dfa3f authored by Adriaan de Beer's avatar Adriaan de Beer
Browse files

Merge branch 'fix/remove-pip' into 'master'

Fix/remove pip

See merge request ska-telescope/templates/ska-python-skeleton!4
parents 777bc788 236c9c45
Loading
Loading
Loading
Loading
Loading
+9 −5
Original line number Original line Diff line number Diff line
@@ -10,8 +10,8 @@ cache:
# before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts.
# before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts.
# This can be an array or a multi-line string.
# This can be an array or a multi-line string.
before_script:
before_script:
  - pip install pipenv
  - python3 -m pip install -r docker-requirements.txt
  - pipenv install
  


stages:
stages:
  - test
  - test
@@ -29,7 +29,8 @@ test:
#  tags:
#  tags:
#   - docker-executor
#   - docker-executor
  script:
  script:
   - pipenv run python setup.py test
  #  - pipenv run python setup.py test
   - python3 setup.py test
   - mv coverage.xml ./build/reports/code-coverage.xml
   - mv coverage.xml ./build/reports/code-coverage.xml
  artifacts:
  artifacts:
    paths:
    paths:
@@ -39,11 +40,14 @@ test:
list_dependencies:
list_dependencies:
  stage: test
  stage: test
  script:
  script:
    - pipenv graph >> pipenv_deps.txt
    # - pipenv graph >> pipenv_deps.txt
    - pipdeptree --json >> pip_deps.json
    - pipdeptree >> pip_deps.txt
    - dpkg -l >> system_deps.txt
    - dpkg -l >> system_deps.txt
    - awk 'FNR>5 {print $2 ", " $3}' system_deps.txt >> system_deps.csv
    - awk 'FNR>5 {print $2 ", " $3}' system_deps.txt >> system_deps.csv
    - mkdir .public
    - mkdir .public
    - cp pipenv_deps.txt .public/
    - cp pip_deps.txt .public/
    - cp pip_deps.json .public/
    - cp system_deps.txt .public/
    - cp system_deps.txt .public/
    - cp system_deps.csv .public/
    - cp system_deps.csv .public/
    - mv .public public
    - mv .public public
+2 −2
Original line number Original line Diff line number Diff line
@@ -14,9 +14,9 @@ Install
-------
-------


**Always** use a virtual environment. [Pipenv](https://pipenv.readthedocs.io/en/latest/) is now Python's officially
**Always** use a virtual environment. [Pipenv](https://pipenv.readthedocs.io/en/latest/) is now Python's officially
recommended method and the one used by default in this repo.
recommended method, but we are not using it for installing requirements when building on the CI Pipeline. You are encouraged to use your preferred environment isolation (i.e. `pip`, `conda` or `pipenv` while developing locally.


Follow these steps at the project root:
For working with `Pipenv`, follow these steps at the project root:


First, ensure that `~/.local/bin` is in your `PATH` with:
First, ensure that `~/.local/bin` is in your `PATH` with:
```bash
```bash
+3 −1
Original line number Original line Diff line number Diff line
@@ -12,3 +12,5 @@ sphinx_rtd_theme
sphinx-autobuild
sphinx-autobuild
sphinx-rtd-theme
sphinx-rtd-theme
sphinxcontrib-websupport
sphinxcontrib-websupport
pipdeptree
pylint_junit
 No newline at end of file
+4 −4
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@
   :maxdepth: 2
   :maxdepth: 2
   :caption: Readme
   :caption: Readme


   README
   ../../README


.. COMMUNITY SECTION ==================================================
.. COMMUNITY SECTION ==================================================


@@ -30,14 +30,14 @@


.. toctree::
.. toctree::
  :maxdepth: 2
  :maxdepth: 2
  :caption: Package-name
  :caption: Package name
  :hidden:
  :hidden:


  package/guide
  package/guide




Project-name documentation
Project-name documentation HEADING
==========================
==================================


These are all the packages, functions and scripts that form part of the project.
These are all the packages, functions and scripts that form part of the project.