-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (46 loc) · 1.34 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
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
class CustomInstall(install):
def run(self):
install.run(self)
man_directory = '/usr/local/share/man/man1/'
if not os.path.exists(man_directory):
os.makedirs(man_directory)
os.system(f'cp man/isogloss.1 {man_directory}')
setup(
name='isogloss',
version='1.0.2',
author='underwood (T E Vaughan)',
author_email='[email protected]',
description='A tool for looking up ISO 639 and IETF language codes',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/thunderpoot/isogloss',
packages=find_packages(),
include_package_data=True,
package_data={
'isogloss': ['data/*.json'],
},
entry_points={
'console_scripts': [
'isogloss=isogloss.isogloss:main',
],
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
],
python_requires='>=3.6',
cmdclass={
'install': CustomInstall,
},
install_requires=[
'argparse',
'json',
'os',
'unidecode'
]
)