Skip to content

Commit

Permalink
Merge pull request #4 from rajcscw/setup-pypi
Browse files Browse the repository at this point in the history
Added pypi workflow
  • Loading branch information
rajcscw authored Nov 27, 2020
2 parents 2536fee + 7297bbb commit 4fd99cc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish package

on:
push:
tags:
- "v*"

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install Dependencies
run: python -m pip install setuptools wheel

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from setuptools import setup, find_packages

setup(name="nlp_gym",
version="0.0.1",
version="0.1.0",
description="NLPGym - A toolkit for evaluating RL agents on Natural Language Processing Tasks",
author="Rajkumar Ramamurthy",
author_email="[email protected]",
packages=find_packages(),
python_requires='>=3.7',
url="https://github.com/rajcscw/nlp-gym/",
install_requires=["numpy", "torch", "nltk", "flair", "pandas", "matplotlib",
"seaborn", "sklearn", "tqdm", "edit_distance", "rich",
"gym", "pytorch-nlp", "datasets", "wget"],
Expand Down

0 comments on commit 4fd99cc

Please sign in to comment.