Skip to content

Commit

Permalink
Merge pull request #410 from deeptools/fix_install_doc
Browse files Browse the repository at this point in the history
solve issue #409 of install
  • Loading branch information
lldelisle authored Sep 5, 2022
2 parents c42e74e + 009d063 commit 2085e04
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ Then activate the environment and install pygenometracks with mamba:

```bash
conda activate pygenometracks
mamba install -c defaults -c bioconda -c conda-forge pygenometracks
mamba install -c bioconda -c conda-forge pygenometracks
```

or if you want a specific version:

```bash
conda create -n pygenometracks -c bioconda -c conda-forge mamba python=3.7
conda activate pygenometracks
mamba install -c defaults -c bioconda -c conda-forge pygenometracks=3.5
mamba install -c bioconda -c conda-forge pygenometracks=3.5
```

Also, pyGenomeTracks can be installed using pip
Expand Down
32 changes: 22 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,27 @@ pr:
autoCancel: true

stages:
- stage: lint
jobs:
- job: Linux
timeoutInMinutes: 0
pool:
vmImage: 'Ubuntu-latest'
container: python:3.8
steps:
- bash: |
echo "##vso[task.prependpath]$HOME/.local/bin"
hash -r
displayName: Add .local/bin to PATH
- bash:
python -m pip install --user --upgrade flake8
displayName: install flake8
- script:
flake8 . --exclude=.venv,.build,build --ignore=E501,F403,E402,F999,F405,E712,W503,E275
displayName: linting
- stage: test
dependsOn: [lint]
condition: succeeded()
jobs:
- job: Linux
timeoutInMinutes: 0
Expand Down Expand Up @@ -37,13 +57,9 @@ stages:
cat requirements_CI.txt | awk -v v=$(matplotlib.version) '{if($0~/matplotlib/){$0="matplotlib =="v}; print}' > requirements_CI_updated.txt
conda create -n pygenometracks --yes -c conda-forge -c bioconda python=$(python.version) mamba
source activate pygenometracks
mamba install --yes -c defaults -c conda-forge -c bioconda --file requirements_CI_updated.txt
mamba install --yes -c conda-forge -c bioconda --file requirements_CI_updated.txt
python setup.py install
displayName: installing dependencies
- script: |
source activate pygenometracks
flake8 . --exclude=.venv,.build,build --ignore=E501,F403,E402,F999,F405,E712,W503
displayName: linting
- script: |
source activate pygenometracks
py.test pygenometracks --doctest-modules -n 4
Expand Down Expand Up @@ -86,13 +102,9 @@ stages:
cat requirements_CI.txt | awk -v v=$(matplotlib.version) '{if($0~/matplotlib/){$0="matplotlib =="v}; print}' > requirements_CI_updated.txt
conda create -n pygenometracks --yes -c conda-forge -c bioconda python=$(python.version) mamba
source activate pygenometracks
mamba install --yes -c defaults -c conda-forge -c bioconda --file requirements_CI_updated.txt
mamba install --yes -c conda-forge -c bioconda --file requirements_CI_updated.txt
python setup.py install
displayName: installing dependencies
- script: |
source activate pygenometracks
flake8 . --exclude=.venv,.build,build --ignore=E501,F403,E402,F999,F405,E712,W503
displayName: linting
- script: |
source activate pygenometracks
py.test pygenometracks --doctest-modules -n 4
Expand Down
6 changes: 3 additions & 3 deletions docs/content/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Then activate the environment and install pygenometracks with mamba:
.. code:: bash
$ conda activate pygenometracks
$ mamba install -c defaults -c bioconda -c conda-forge pygenometracks
$ mamba install -c bioconda -c conda-forge pygenometracks
or if you want a specific version:
Expand All @@ -69,8 +69,8 @@ or if you want a specific version:
.. code:: bash
$ conda create -n pygenometracks -c bioconda -c conda-forge mamba python=3.7
$ conda activate pygenometracks
$ mamba install -c defaults -c bioconda -c conda-forge pygenometracks=3.5
$ conda activate pygenometracks
$ mamba install -c bioconda -c conda-forge pygenometracks=3.5
Command line installation using ``pip``
-----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion requirements_CI.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pybigwig >=0.3.16
future >=0.17.0
hicmatrix >=15
pysam >=0.14
gffutils >=0.9
gffutils ==0.9 # This is waiting for release
pybedtools >=0.8.1
tqdm >=4.20
bx-python >=0.8.13
Expand Down

0 comments on commit 2085e04

Please sign in to comment.