-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
69 lines (61 loc) · 2.32 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import find_packages, setup
from lexc2dix import release
os.listdir(os.path.join('lexc2dix'))
if sys.argv[-1] == 'setup.py':
print('To install, run \'python3 setup.py install\'')
print()
with open('requirements.txt') as requirements:
required = requirements.read().splitlines()
with open('test-requirements.txt') as requirements:
test_required = requirements.read().splitlines()
with open("README.md") as readme:
long_description = readme.read()
if __name__ == "__main__":
setup(
name=release.name,
version=release.__version__,
author=release.__author__,
author_email=release.__email__,
description=release.__description__,
url=release.__url__,
download_url=release.__download_url__,
keywords=['lexc', 'twolc', 'monodix', 'Apertium', 'HFST'],
packages=find_packages(exclude=["build.*", "tests", "tests.*"]),
install_requires=required,
tests_require=test_required,
long_description=long_description,
scripts=['api/lexc2dix_api.py'],
license='GNU GENERAL PUBLIC LICENSE',
entry_points={
'console_scripts': [
'lexc2dix = lexc2dix_api:main'
]
},
python_requires='>=3',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)