Skip to content

Commit

Permalink
Move to poetry (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jul 3, 2020
2 parents bf4523a + 5583696 commit d898069
Show file tree
Hide file tree
Showing 7 changed files with 1,600 additions and 6 deletions.
24 changes: 24 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- docs
3 changes: 3 additions & 0 deletions .tmuxp-before-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
poetry shell --no-ansi --no-interaction &2> /dev/null
poetry install --no-ansi --no-interaction &2> /dev/null
6 changes: 3 additions & 3 deletions .tmuxp.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
session_name: unihan-etl
start_directory: ./ # load session relative to config location (project root).
before_script: pipenv install --dev --skip-lock
shell_command_before:
- '[ -d `pipenv --venv` ] && source `pipenv --venv`/bin/activate && reset'
before_script: ./.tmuxp-before-script.sh
shell_command_before:
- '[ -f .venv/bin/activate ] && source .venv/bin/activate && reset'
windows:
- window_name: unihan-etl
focus: True
Expand Down
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ python:
if: (type = push AND branch IN (master)) OR (type = pull_request)
cache: pip
install:
- pip install -e .
- pip install -r requirements/test.txt
script: py.test --cov=unihan_etl
- pip install poetry
- poetry --version
- poetry version
- poetry install
script: poetry run py.test --cov=unihan_etl
after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit d898069

Please sign in to comment.