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

build: Gitpod integration and Google Cloud Shell Button #2034

Merged
merged 1 commit into from
Jul 20, 2022
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
29 changes: 29 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# https://www.gitpod.io/docs/references/gitpod-yml
image:
file: Dockerfile.devcontainer
context: .
tasks:
- before: |
task install:pip-deps
command: |
task --list
github:
prebuilds:
addBadge: false
addCheck: prevent-merge-on-error
addComment: false
branches: false
master: false
pullRequests: false
pullRequestsFromForks: false
vscode:
extensions:
- ms-python.python
- redhat.vscode-yaml
- redhat.vscode-xml
- stardog-union.stardog-rdf-grammars
- lextudio.restructuredtext
- trond-snekvik.simple-rst
- EditorConfig.EditorConfig
- paulvarache.vscode-taskfile
- stardog-union.vscode-stardog-languages
29 changes: 7 additions & 22 deletions Dockerfile.devcontainer
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND="noninteractive" TZ="Etc/UTC"

RUN \
apt-get update && \
apt-get install -y \
apt-get install -y --no-install-recommends \
make \
curl \
git \
Expand All @@ -13,43 +13,27 @@ RUN \
true

RUN \
apt-get install -y \
apt-get install -y --no-install-recommends \
libdb-dev \
libjpeg-dev \
&& \
true

RUN \
apt-get install -y \
default-jdk \
apt-get install -y --no-install-recommends \
default-jre-headless \
&& \
true

RUN \
apt-get install -y \
apt-get install -y --no-install-recommends \
software-properties-common \
&& \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get install -y \
apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-dev \
python3-venv \
python3.7 \
python3.7-dev \
python3.7-venv \
python3.8 \
python3.8-dev \
python3.8-venv \
python3.9 \
python3.9-dev \
python3.9-venv \
python3.10 \
python3.10-dev \
python3.10-venv \
python3.11 \
python3.11-dev \
python3.11-venv \
python-is-python3 \
&& \
python --version && \
Expand All @@ -62,6 +46,7 @@ COPY docs/sphinx-requirements.txt /var/tmp/docs/sphinx-requirements.txt

RUN \
cd /var/tmp/ && \
grep -H . requirements*.txt docs/sphinx-requirements.txt && \
python -m pip install --upgrade \
-r requirements.txt \
-r requirements.dev.txt \
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RDFLib
[![GitHub stars](https://img.shields.io/github/stars/RDFLib/rdflib.svg)](https://github.com/RDFLib/rdflib/stargazers)
[![PyPI](https://img.shields.io/pypi/v/rdflib.svg)](https://pypi.python.org/pypi/rdflib)
[![PyPI](https://img.shields.io/pypi/pyversions/rdflib.svg)](https://pypi.python.org/pypi/rdflib)
[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/RDFLib/rdflib)

RDFLib is a pure Python package for working with [RDF](http://www.w3.org/RDF/). RDFLib contains most things you need to work with RDF, including:

Expand Down Expand Up @@ -200,6 +201,11 @@ Please consider lodging Pull Requests here:

* <https://github.com/RDFLib/rdflib/pulls>

To get a development environment consider using Gitpod or Google Cloud Shell.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/RDFLib/rdflib)
[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://shell.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2FRDFLib%2Frdflib&cloudshell_git_branch=master&cloudshell_open_in_editor=README.md)

You can also raise issues here:

* <https://github.com/RDFLib/rdflib/issues>
Expand Down
4 changes: 2 additions & 2 deletions docs/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ To use the development container directly:
# Run the validate task inside the devtools container.
docker-compose run --rm devcontainer task validate

# Run tox for python 3.11 inside the devtools container,
docker-compose run --rm devcontainer task tox -- -e py311
# Run extensive tests inside the devtools container.
docker-compose run --rm devcontainer task EXTENSIVE=true test

# To get a shell into the devcontainer docker image.
docker-compose run --rm devcontainer bash
Expand Down