Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure RTD to checkout submodules #23

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
build:
image: latest
os: ubuntu-22.04
tools:
python: "3.8"
version: 2
submodules:
include: all
sphinx:
configuration: docs/conf.py
python:
version: 3.6
install:
install:
- method: pip
path: .
extra_requirements:
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@

See documentation on [pybedlite.readthedocs.org][rtd-link].

```
pip install pybedlite
```
OR
```
conda install -c bioconda pybedlite
```
Expand All @@ -46,18 +50,18 @@ conda create -n pybedlite pybedlite
conda activate pybedlite
```

Note that while there is a version of pybedlite on pypi versions of pybedlite >=
0.0.2 cannot at present be installed via pypi because they have dependencies
that preclude publishing to pypi. For this reason installation via conda is
required.

[rtd-link]: http://pybedlite.readthedocs.org/en/stable

**Requires python 3.8+** (for python < 3.8, please use pybedlite <= 0.0.3)

# Getting Setup for Development Work

[Poetry][poetry-link] is used to manage the python development environment.
Clone the repository to your local machine. Note that pybedlite >= 0.0.4 includes [cgranges][cgranges-link] as a submodule, so you must use the `--recurse-submodules` option:
```
git clone --recurse-submodules https://github.com/fulcrumgenomics/pybedlite.git
```

[Poetry][poetry-link] is used to manage the python development environment.

A simple way to create an environment with the desired version of python and poetry is to use [conda][conda-link]. E.g.:

Expand All @@ -81,6 +85,7 @@ export CFLAGS="-stdlib=libc++"

[poetry-link]: https://github.com/python-poetry/poetry
[conda-link]: https://docs.conda.io/en/latest/miniconda.html
[cgranges-link]: https://github.com/lh3/cgranges

## Checking the Build
### Run all checks with:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon']

intersphinx_mapping = {'python': ('http://docs.python.org/3.6', None)}
intersphinx_mapping = {'python': ('http://docs.python.org/3.8', None)}

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Installation
============

**Requires python 3.6+**
**Requires python 3.8+**

Install with::

Expand All @@ -17,7 +17,7 @@ Getting Setup
A simple way to create an environment with the desired version of python and poetry is to use `conda <https://docs.conda.io/en/latest/miniconda.html>`_.
E.g.::

conda create -n pybedlite python=3.6 poetry
conda create -n pybedlite python=3.8 poetry
conda activate pybedlite
poetry install

Expand Down
Loading