Version 0.0.7 - fix pip build
This commit is contained in:
parent
80a2960392
commit
f3e1269d8e
17
MANIFEST.in
Normal file
17
MANIFEST.in
Normal file
@ -0,0 +1,17 @@
|
||||
include prosecco/example/advanced.py
|
||||
include prosecco/example/basic.py
|
||||
include prosecco/example/custom_condition_class.py
|
||||
include prosecco/example/qa.py
|
||||
include prosecco/example/superhero.txt
|
||||
|
||||
include prosecco/data/en/suffix.txt
|
||||
|
||||
include prosecco/data/pl/bye.txt
|
||||
include prosecco/data/pl/hi.txt
|
||||
include prosecco/data/pl/prefix.txt
|
||||
include prosecco/data/pl/preposition.txt
|
||||
include prosecco/data/pl/pronoun.txt
|
||||
include prosecco/data/pl/stopwords.txt
|
||||
include prosecco/data/pl/suffix.txt
|
||||
include prosecco/data/pl/swear.txt
|
||||
include prosecco/data/pl/thx.txt
|
@ -3,7 +3,7 @@ prosecco
|
||||
|
||||
[![GitHub](https://img.shields.io/github/license/vane/prosecco)](https://github.com/vane/prosecco/blob/master/LICENSE)
|
||||
[![pypi](https://img.shields.io/pypi/v/prosecco)](https://pypi.org/project/prosecco/)
|
||||
[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/vane/prosecco/0.0.6)](https://github.com/vane/prosecco/compare/0.0.6...master)
|
||||
[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/vane/prosecco/0.0.7)](https://github.com/vane/prosecco/compare/0.0.7...master)
|
||||
[![GitHub last commit](https://img.shields.io/github/last-commit/vane/prosecco)](https://github.com/vane/prosecco)
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
Simple, extendable nlp engine that can extract data based on provided conditions.
|
||||
"""
|
||||
|
||||
__version__ = "0.0.6"
|
||||
__version__ = "0.0.7"
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
@ -26,7 +26,7 @@ class SuffixStemmer:
|
||||
self.language = language
|
||||
self.stemwords = ()
|
||||
if path is None:
|
||||
subpath = os.sep.join(os.path.dirname(__file__).split(os.sep)[:-1])
|
||||
subpath = os.path.dirname(__file__)
|
||||
path = subpath+"/data/{}/suffix.txt".format(language)
|
||||
with open(path) as f:
|
||||
# read file strip \n sort by length and save as tuple
|
||||
|
5
setup.cfg
Normal file
5
setup.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
[metadata]
|
||||
license_files = LICENSE
|
||||
|
||||
[bdist_wheel]
|
||||
universal=1
|
34
setup.py
34
setup.py
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
import setuptools
|
||||
|
||||
from glob import glob
|
||||
import prosecco
|
||||
|
||||
with open("README.md", "r") as fh:
|
||||
@ -18,19 +18,31 @@ setuptools.setup(
|
||||
license='MIT',
|
||||
url="https://github.com/vane/prosecco",
|
||||
packages=setuptools.find_packages(),
|
||||
data_files=[("data/en", ["data/en/suffix.txt"]),
|
||||
("data/pl", ["data/pl/bye.txt", "data/pl/hi.txt",
|
||||
"data/pl/prefix.txt", "data/pl/preposition.txt", "data/pl/pronoun.txt",
|
||||
"data/pl/stopwords.txt", "data/pl/suffix.txt",
|
||||
"data/pl/swear.txt", "data/pl/thx.txt"]),
|
||||
("example", ["example/superhero.txt",
|
||||
"example/advanced.py", "example/basic.py",
|
||||
"example/qa.py", "example/custom_condition_class.py"])],
|
||||
package_data={
|
||||
'prosecco': [
|
||||
'example/advanced.py',
|
||||
'example/basic.py',
|
||||
'example/custom_condition_class.py',
|
||||
'example/qa.py',
|
||||
'example/superhero.txt',
|
||||
'data/en/suffix.txt',
|
||||
'data/pl/bye.txt',
|
||||
'data/pl/hi.txt',
|
||||
'data/pl/prefix.txt',
|
||||
'data/pl/preposition.txt',
|
||||
'data/pl/pronoun.txt',
|
||||
'data/pl/stopwords.txt',
|
||||
'data/pl/suffix.txt',
|
||||
'data/pl/swear.txt',
|
||||
'data/pl/thx.txt',
|
||||
]
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
"Programming Language :: Python :: 2",
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
'License :: OSI Approved :: MIT License',
|
||||
"License :: OSI Approved :: MIT License",
|
||||
],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user