-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
38 lines (38 loc) · 2.2 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
from setuptools import setup, Extension
def readme():
# Handle any potential errors gracefully
try:
with open('README.rst', encoding='utf-8') as f: # Specify UTF-8 encoding
return f.read()
except (FileNotFoundError, UnicodeDecodeError) as e:
print(f"Error reading file: {e}")
return None
setup(
name = 'amseg', # Amharic Sentence segmentation, tokenization and normalization tools
packages = ['amseg'], # Chose the same as "name"
version = '2.3', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description = 'This is an Amharic document segmentation and normalization tool', # Give a short description about your library
long_description=readme(),
author = 'Seid Muhie Yimam', # Type in your name
author_email = 'seid.muhie.yimam@uni-hamburg.de', # Type in your E-Mail
url = 'https://github.com/uhh-lt/amharicprocessor', # Provide either the link to your github or to your website
download_url = 'https://github.com/uhh-lt/amharicprocessor/archive/rehistoryfs/tags/v_23.tar.gz', # I explain this later on
keywords = ['Amharic', 'Amharic sentence splitter', 'Amharic document normalizer', 'Amharic Latin to Fidel Transliteration'], # Keywords that define your package best
install_requires=[ # I get to this in a second
# 'validators',
# 'beautifulsoup4',
],
classifiers=[
'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers', # Define that your audience are developers
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License', # Again, pick a license
'Programming Language :: Python :: 3', #Specify which pyhton versions that you want to support
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.7',
],
)