Skip to content

Commit 22c08ce

Browse files
committed
update docs
1 parent 7362d86 commit 22c08ce

File tree

9 files changed

+52
-25
lines changed

9 files changed

+52
-25
lines changed

.github/workflows/pull_request.yml

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
steps:
66
- name: Checkout repository
77
uses: actions/checkout@v3
8-
- name: Setup python 3.8
8+
- name: Setup python 3.10
99
uses: actions/setup-python@v4
1010
with:
11-
python-version: 3.8
11+
python-version: 3.10
1212
- name: Install pre-commit
1313
run: pip install pre-commit
1414
- name: Run pre-commit
@@ -26,28 +26,55 @@ jobs:
2626
run: gem install license_finder
2727
- name: Allow gevent Zope license
2828
run: license_finder permitted_licenses add "Zope Public License"
29-
- name: Setup python 3.8
29+
- name: Setup python 3.10
3030
uses: actions/setup-python@v4
3131
with:
32-
python-version: 3.8
32+
python-version: 3.10
3333
- name: Install apt dependencies
3434
run: sudo apt-get update -y && sudo apt-get install -y python3-dev openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev
3535
- name: Install dependencies
36-
run: pip install -r piptools_requirements3.txt && pip install -r requirements3.txt
36+
run: pip install -r piptools_requirements.txt && pip install -r requirements.txt
3737
- name: Run license finder
3838
run: license_finder
39+
build-docs:
40+
name: Build and publish docs
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v3
45+
- name: Setup python 3.10
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: 3.10
49+
- name: Install virtualenv
50+
run: pip install virtualenv
51+
- name: Build docs
52+
run: make build_docs
53+
- name: Remove docs folder, so github will ignore it
54+
run: rm -rf docs
55+
build--docker-image:
56+
name: Build and publish docker image
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout repository
60+
uses: actions/checkout@v3
61+
- name: Publish to Registry
62+
uses: elgohr/[email protected]
63+
with:
64+
name: lyft/omnibot
65+
no_push: true
3966
test:
4067
runs-on: ubuntu-latest
4168
steps:
4269
- name: Checkout repository
4370
uses: actions/checkout@v3
44-
- name: Setup python 3.8
71+
- name: Setup python 3.10
4572
uses: actions/setup-python@v4
4673
with:
47-
python-version: 3.8
74+
python-version: 3.10
4875
- name: Install apt dependencies
4976
run: sudo apt-get update -y && sudo apt-get install -y python3-dev openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev
5077
- name: Install dependencies
51-
run: pip install -r piptools_requirements3.txt && pip install -r requirements3.txt
78+
run: pip install -r piptools_requirements.txt && pip install -r requirements.txt
5279
- name: Run tests
5380
run: make test

.github/workflows/push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout repository
1414
uses: actions/checkout@v3
15-
- name: Setup python 3.8
15+
- name: Setup python 3.10
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.8
18+
python-version: 3.10
1919
- name: Install virtualenv
2020
run: pip install virtualenv
2121
- name: Build docs
@@ -35,10 +35,10 @@ jobs:
3535
steps:
3636
- name: Checkout repository
3737
uses: actions/checkout@v3
38-
- name: Setup python 3.8
38+
- name: Setup python 3.10
3939
uses: actions/setup-python@v4
4040
with:
41-
python-version: 3.8
41+
python-version: 3.10
4242
- name: Add wheel dependency
4343
run: pip install wheel
4444
- name: Generate dist

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM ubuntu:bionic
22
LABEL maintainer="[email protected]"
33

4-
COPY ./piptools_requirements3.txt /srv/omnibot/piptools_requirements3.txt
5-
COPY ./requirements3.txt /srv/omnibot/requirements3.txt
4+
COPY ./piptools_requirements.txt /srv/omnibot/piptools_requirements.txt
5+
COPY ./requirements.txt /srv/omnibot/requirements.txt
66

77
WORKDIR /srv/omnibot
88

@@ -11,7 +11,7 @@ RUN apt-get update && \
1111
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3-dev python3-pip openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev && \
1212
apt-get clean && \
1313
rm -rf /var/lib/apt/lists/*
14-
RUN pip3 install -r piptools_requirements3.txt && \
15-
pip3 install -r requirements3.txt
14+
RUN pip3 install -r piptools_requirements.txt && \
15+
pip3 install -r requirements.txt
1616

1717
COPY . /srv/omnibot

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# we use the pipefail option below, which is bash specific.
22
SHELL := /bin/bash
33

4-
.PHONY: compile_deps # freeze requirements.in to requirements3.txt
4+
.PHONY: compile_deps # freeze requirements.in to requirements.txt
55
compile_deps:
66
./pip-compile.sh
77

config/license_finder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
decisions_file: './config/license_finder_decisions.yml'
33
python_version: '3'
4-
pip_requirements_path: './requirements3.txt'
4+
pip_requirements_path: './requirements.txt'

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-r ../requirements3.txt
1+
-r ../requirements.txt
22
GitPython==3.1.32
33
Jinja2==2.11.3
44
MarkupSafe==1.1.1

docs/root/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Adding new dependencies to requirements
3939
=======================================
4040

4141
We freeze python dependencies from direct dependencies (from ``requirements.in``),
42-
to diamond dependencies (in ``requirements3.txt``). Doing so ensures a consistent installation
42+
to diamond dependencies (in ``requirements.txt``). Doing so ensures a consistent installation
4343
with well known versions in test environments, out to production environments.
4444

4545
If you need to add a dependency, or update the version of a dependency, you should modify
@@ -56,7 +56,7 @@ Approving licenses or dependencies
5656

5757
We run a `license scanner/approver <https://github.com/pivotal/LicenseFinder>`_ for third-party
5858
dependencies used by omnibot. If you add or upgrade dependencies in ``requirements.in`` or
59-
``requirements3.txt``, the license scanner tests may fail, outputing the failed requirement, and
59+
``requirements.txt``, the license scanner tests may fail, outputing the failed requirement, and
6060
its associated license. As long as the license is acceptable, a project owner will approve the
6161
license for use.
6262

docs/root/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ Make a virtualenv and install pip requirements
9090
virtualenv venv
9191
source venv/bin/activate
9292
pip install -U pip
93-
pip install -r piptools_requirements3.txt
94-
pip install -r requirements3.txt
93+
pip install -r piptools_requirements.txt
94+
pip install -r requirements.txt
9595
deactivate
9696
9797
Run omnibot

pip-compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ source_venv() {
2020
SCRIPT_DIR=$(dirname "$0")
2121

2222
source_venv piptools_venv
23-
pip install -r "${SCRIPT_DIR}"/piptools_requirements3.txt
23+
pip install -r "${SCRIPT_DIR}"/piptools_requirements.txt
2424
pip install pip-tools
25-
pip-compile --output-file "${SCRIPT_DIR}"/requirements3.txt "${SCRIPT_DIR}"/requirements.in
25+
pip-compile --output-file "${SCRIPT_DIR}"/requirements.txt "${SCRIPT_DIR}"/requirements.in

0 commit comments

Comments
 (0)