-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
executable file
·46 lines (40 loc) · 1.26 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
#!/usr/bin/env python3
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import os
def get_file_path(name):
return os.path.abspath(os.path.join(
os.path.dirname(__file__),
name))
def parse_requirements(filename):
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]\
with open(get_file_path('finglish/version.py')) as f:
exec(f.read())
# read requirements from requirements.txt
requirements = parse_requirements(get_file_path('requirements.txt'))
setup(
name = 'finglish',
py_modules = ['version'],
packages = ['finglish'],
install_requires = requirements,
include_package_data=True,
version = __version__,
description = 'Finglish-to-Persian converter.',
author = 'Mostafa Razavi',
license = 'MIT',
author_email = '[email protected]',
url = 'https://github.com/elektito/finglish',
download_url = 'https://github.com/elektito/finglish/tarball/' + __version__,
keywords = ['persian', 'finglish'],
classifiers = [
'Programming Language :: Python :: 3'
],
entry_points = {
'console_scripts': [
'f2p=finglish.f2p:main',
],
},
)