Skip to content
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
42 changes: 12 additions & 30 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,33 @@
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.6.1

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

working_directory: ~/repo

working_directory: ~/pythainlp
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}
- v1-dependencies-

- run:
name: install dependencies
name: Install Dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}

# run tests!
key: v1-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}
- run:
name: run tests
name: Run Static Analysis
command: |
. venv/bin/activate
python manage.py test

- store_artifacts:
path: test-reports
destination: test-reports
pip install flake8
make lint
- run:
name: Run Tests
command: |
. venv/bin/activate
make test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ __pycache__/
# Distribution / packaging
.Python
env/
venv/
build/
develop-eggs/
dist/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
112 changes: 0 additions & 112 deletions pythainlp/test/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
author_email='wannaphong@kkumail.com',
url='https://github.com/PyThaiNLP/pythainlp',
packages=find_packages(),
test_suite='pythainlp.test',
test_suite='tests',
package_data={'pythainlp.corpus':['stopwords-th.txt','thaipos.json','thaiword.txt','corpus_license.md','tha-wn.db','new-thaidict.txt','negation.txt','provinces.csv','pt_tagger_1.dill','ud_thai-pud_pt_tagger.dill','ud_thai-pud_unigram_tagger.dill','unigram_tagger.dill'],'pythainlp.sentiment':['vocabulary.data','sentiment.data']},
include_package_data=True,
install_requires=requirements,
Expand Down
Loading