This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
51 lines (47 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
version = '0.0.1'
if sys.argv[-1] == 'publish':
if os.system("pip freeze | grep wheel"):
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
sys.exit()
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
setup(
name='bengali-stemmer',
version=version,
description=('BanglaKit bengali-stemmer is a library for stemming'
'Bengali words into root words, removing inflections.'),
long_description=readme,
author='BanglaKit Project',
author_email='banglakit@gmail.com',
maintainer='BanglaKit Project',
maintainer_email='banglakit@gmail.com',
url='https://github.com/banglakit/bengali-stemmer/tree/master',
packages=find_packages(exclude=['tests*']),
include_package_data=True,
license='MIT',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Natural Language :: Bengali',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Text Processing',
],
zip_safe=False,
)