Skip to content

Commit

Permalink
Merge branch 'fix-readme-on-pypi'
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJCLaw committed Jan 8, 2021
2 parents b9f2188 + 8efd83e commit a4d350a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 50 deletions.
79 changes: 34 additions & 45 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,36 @@ references:
TOXENV: py36
COVERALLS: true

# Set up a cached virtualenv in which to install our CI dependencies
restore-build-dependency-cache: &restore-build-dependency-cache
restore_cache:
name: Restore build dependency cache
key: deps-venv-{{ .Branch }}-{{ .Environment.CIRCLE_STAGE }}-{{ checksum ".circleci/requirements.txt" }}

install-build-dependencies: &install-build-dependencies
run:
name: Install build dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r .circleci/requirements.txt
save-build-dependency-cache: &save-build-dependency-cache
save_cache:
name: Save build dependency cache
key: deps-venv-{{ .Branch }}-{{ .Environment.CIRCLE_STAGE }}-{{ checksum ".circleci/requirements.txt" }}
paths:
- "venv"

test-template: &test-template
working_directory: ~/routemaster

steps:
- checkout

# Set up a cached virtualenv in which to install tox
- restore_cache:
name: Restore build dependency cache
key: deps-venv-{{ .Branch }}-{{ .Environment.CIRCLE_STAGE }}-{{ checksum ".circleci/requirements.txt" }}
- run:
name: Install tox
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r .circleci/requirements.txt
- save_cache:
name: Save build dependency cache
key: deps-venv-{{ .Branch }}-{{ .Environment.CIRCLE_STAGE }}-{{ checksum ".circleci/requirements.txt" }}
paths:
- "venv"
- *restore-build-dependency-cache
- *install-build-dependencies
- *save-build-dependency-cache

- run:
name: Wait for Database with Dockerize
Expand Down Expand Up @@ -126,21 +135,11 @@ jobs:
- image: circleci/python:3.6.3
steps:
- checkout
- restore_cache:
name: Restore build dependency cache
key: deps-venv-18.0-2.9.1
- run:
name: Install tox
command: |
python3 -m venv venv
. venv/bin/activate
pip install pip==18.0
pip install tox==2.9.1
- save_cache:
name: Save build dependency cache
key: deps-venv-18.0-2.9.1
paths:
- "venv"

- *restore-build-dependency-cache
- *install-build-dependencies
- *save-build-dependency-cache

- restore_cache:
name: Restore .tox cache
key: deps-tox-{{ checksum "scripts/linting/requirements.txt" }}
Expand All @@ -163,21 +162,11 @@ jobs:
- image: circleci/python:3.6.3
steps:
- checkout
- restore_cache:
name: Restore build dependency cache
key: deps-venv-18.0-2.9.1
- run:
name: Install tox
command: |
python3 -m venv venv
. venv/bin/activate
pip install pip==18.0
pip install tox==2.9.1
- save_cache:
name: Save build dependency cache
key: deps-venv-18.0-2.9.1
paths:
- "venv"

- *restore-build-dependency-cache
- *install-build-dependencies
- *save-build-dependency-cache

- restore_cache:
name: Restore .tox cache
key: deps-tox-{{ checksum "scripts/typechecking/requirements.txt" }}
Expand Down
1 change: 1 addition & 0 deletions .circleci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Requirements for top level CI operations.
# Don't include Routemaster's own requirements here.
pip==18.0
setuptools>=36.4
tox==2.9.1
coveralls==1.10.0
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include README.md
include version.py
include routemaster/config/schema.yaml
3 changes: 1 addition & 2 deletions plugins/routemaster-prometheus/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include README.md
include version.py
include version.py
3 changes: 1 addition & 2 deletions plugins/routemaster-sentry/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include README.md
include version.py
include version.py

0 comments on commit a4d350a

Please sign in to comment.