Skip to content

Commit

Permalink
Add README to pypi, fix github pointer, add pip install method
Browse files Browse the repository at this point in the history
  • Loading branch information
soaxelbrooke committed Mar 27, 2019
1 parent a83dfd1 commit f9cbe07
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ AKA Byte Pair Encoding. Learns a vocab and byte pair encoding for provided whit
## Usage

```bash
$ pip install git+https://github.com/soaxelbrooke/python-bpe.git@master
# Or install with pipenv...
$ pipenv install git+https://github.com/soaxelbrooke/python-bpe.git@master#egg=bpe
$ pip3 instal bpe
```

```python
Expand Down
38 changes: 25 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,30 @@

from setuptools import setup

with open('requirements.txt') as infile:
with open("README.md", "r") as infile:
long_description = infile.read()

with open("requirements.txt") as infile:
dependencies = [line.strip() for line in infile if len(line) > 0]

setup(name='bpe',
version='0.2.1',
description='Byte pair encoding for graceful handling of rare words in NLP',
url='https://github.com/soaxelbrooke/bpe',
author='Stuart Axelbrooke',
author_email='[email protected]',
license='MIT',
packages=['bpe'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'hypothesis'],
install_requires=dependencies,
zip_safe=False)
setup(
name="bpe",
version="0.2.2",
description="Byte pair encoding for graceful handling of rare words in NLP",
url="https://github.com/soaxelbrooke/python-bpe",
author="Stuart Axelbrooke",
author_email="[email protected]",
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
packages=["bpe"],
setup_requires=["pytest-runner"],
tests_require=["pytest", "hypothesis"],
install_requires=dependencies,
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)

0 comments on commit f9cbe07

Please sign in to comment.