Skip to content

Commit 74d22a9

Browse files
committed
Migrations.
1 parent 221f62f commit 74d22a9

11 files changed

+1305
-258
lines changed

.coveragerc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
include = rake_nltk/*

.github/OWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
csurfer

.github/workflows/pytest.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python package
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.6, 3.7, 3.8, 3.9]
14+
env:
15+
CODECOV_TOKEN='5da5dab1-15b6-43bb-aa3c-4d191e422e16'
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pre-commit
27+
pip install -r requirements.txt
28+
pip install tox pytest
29+
python -c "import nltk; nltk.download('stopwords')"
30+
- name: Lint with pre-commit
31+
run: pre-commit run --all-files
32+
- name: Testing on python ${{ matrix.python-version }} with tox
33+
run: tox -e py
34+
- name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v2

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ pip-selfcheck.json
99
.cache/
1010
.eggs/
1111
rake_nltk.egg-info/
12+
.tox/
13+
.coverage
14+
htmlcov/

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
[![pypiv](https://img.shields.io/pypi/v/rake-nltk.svg)](https://pypi.python.org/pypi/rake-nltk)
44
[![pyv](https://img.shields.io/pypi/pyversions/rake-nltk.svg)](https://pypi.python.org/pypi/rake-nltk)
5-
[![Build Status](https://travis-ci.org/csurfer/rake-nltk.svg?branch=master)](https://travis-ci.org/csurfer/rake-nltk)
6-
[![Coverage Status](https://coveralls.io/repos/github/csurfer/rake-nltk/badge.svg?branch=master)](https://coveralls.io/github/csurfer/rake-nltk?branch=master)
5+
[![Build Status](https://github.com/csurfer/rake-nltk/actions/workflows/pytest.yml/badge.svg?branch=master)](https://github.com/csurfer/rake-nltk/actions/workflows/pytest.yml/badge.svg?branch=master)
76
[![Licence](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/csurfer/rake-nltk/master/LICENSE)
8-
[![Thanks](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/csurfer)
97

108
RAKE short for Rapid Automatic Keyword Extraction algorithm, is a domain independent keyword extraction algorithm which tries to determine key phrases in a body of text by analyzing the frequency of word appearance and its co-occurance with other words in the text.
119

@@ -75,7 +73,16 @@ Please use [issue tracker](https://github.com/csurfer/rake-nltk/issues) for repo
7573

7674
### Development
7775

78-
Pull requests are most welcome.
76+
1. Checkout the repository.
77+
2. Make your changes and add/update relavent tests.
78+
3. Install **`poetry`** using **`pip install poetry`**.
79+
4. Run **`poetry install`** to create project's virtual environment.
80+
5. Run tests using **`poetry run tox`** (Any python versions which you don't have checked out will fail this). Fix failing tests and repeat.
81+
6. Make documentation changes that are relavant.
82+
7. Install **`pre-commit`** using **`pip install pre-commit`** and run **`pre-commit run --all-files`** to do lint checks.
83+
8. Generate documentation using **`poetry run sphinx-build -b html docs/ docs/_build/html`**.
84+
9. Generate **`requirements.txt`** for automated testing using **`poetry export --dev --without-hashes -f requirements.txt > requirements.txt`**.
85+
10. Commit the changes and raise a pull request.
7986

8087
### Buy the developer a cup of coffee!
8188

README.rst

+10-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,16 @@ Please use `issue tracker`_ for reporting bugs or feature requests.
9191
Development
9292
~~~~~~~~~~~
9393

94-
Pull requests are most welcome.
94+
1. Checkout the repository.
95+
2. Make your changes and add/update relavent tests.
96+
3. Install **`poetry`** using **`pip install poetry`**.
97+
4. Run **`poetry install`** to create project's virtual environment.
98+
5. Run tests using **`poetry run tox`** (Any python versions which you don't have checked out will fail this). Fix failing tests and repeat.
99+
6. Make documentation changes that are relavant.
100+
7. Install **`pre-commit`** using **`pip install pre-commit`** and run **`pre-commit run --all-files`** to do lint checks.
101+
8. Generate documentation using **`poetry run sphinx-build -b html docs/ docs/_build/html`**.
102+
9. Generate **`requirements.txt`** for automated testing using **`poetry export --dev --without-hashes -f requirements.txt > requirements.txt`**.
103+
10. Commit the changes and raise a pull request.
95104

96105
Buy the developer a cup of coffee!
97106
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

docs/index.rst

+10-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,16 @@ Please use `issue tracker`_ for reporting bugs or feature requests.
122122
Development
123123
~~~~~~~~~~~
124124

125-
Pull requests are most welcome.
125+
1. Checkout the repository.
126+
2. Make your changes and add/update relavent tests.
127+
3. Install **`poetry`** using **`pip install poetry`**.
128+
4. Run **`poetry install`** to create project's virtual environment.
129+
5. Run tests using **`poetry run tox`** (Any python versions which you don't have checked out will fail this). Fix failing tests and repeat.
130+
6. Make documentation changes that are relavant.
131+
7. Install **`pre-commit`** using **`pip install pre-commit`** and run **`pre-commit run --all-files`** to do lint checks.
132+
8. Generate documentation using **`poetry run sphinx-build -b html docs/ docs/_build/html`**.
133+
9. Generate **`requirements.txt`** for automated testing using **`poetry export --dev --without-hashes -f requirements.txt > requirements.txt`**.
134+
10. Commit the changes and raise a pull request.
126135

127136
Buy the developer a cup of coffee!
128137
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)