Skip to content

Commit 38a1bd6

Browse files
committed
Create pythonpublish.yml
1 parent c444998 commit 38a1bd6

File tree

5 files changed

+50
-6
lines changed

5 files changed

+50
-6
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.5'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install -r requirements.txt
20+
pip install torch
21+
pip install setuptools==42.0.2
22+
pip install wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
26+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload dist/*

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include *.txt README.md
2+
recursive-include docs *.txt

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Welcome to nyaggle's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13+
installation
1314
source/nyaggle
1415

1516

docs/installation.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Installation
2+
===================================
3+
4+
You can install nyaggle via pip:
5+
6+
7+
.. code-block:: bash
8+
9+
pip install nyaggle
10+
11+
12+
13+
To use :code:`nyaggle.nlp.BertSentenceVectorizer`, you first need to install PyTorch.
14+
Please refer to `PyTorch installation page <https://pytorch.org/get-started/locally/#start-locally>`_
15+
to install Pytorch to your environment.
16+
17+
If you use :code:`lang=ja` option in :code:`BertSentenceVecorizer`,
18+
you need to intall MeCab and mecab-python3 package to your environment.

0 commit comments

Comments
 (0)