-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
80 lines (70 loc) · 2.39 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
70
71
72
73
74
75
76
77
78
79
80
"""
# uninstall globally
sudo python setup.py install --record installed.txt
sudo xargs rm -vr < installed.txt
# uinstall in your home directory
python setup.py install --user --record installed.txt
xargs rm -vr < installed.txt
Из папки rep://dist:
cd manspy-0.1.0 ; xargs rm -vr < installed.txt ; cd .. ; tar -xzf manspy-0.1.0.tar.gz ; cd manspy-0.1.0 ; python3 setup.py install ; cd ..
"""
import os
with open('requirements.txt') as file_requirements:
install_requires = file_requirements.read().split('\n')
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
path = os.path.join(os.path.dirname(__file__), 'README.md')
try:
import pypandoc
return pypandoc.convert(path, 'rst')
except(IOError, ImportError, RuntimeError):
with open(path, 'r', encoding='utf-8') as f:
return f.read()
setup(
name='manspy',
version='0.1.2',
license='LGPL-3.0',
description='Management system',
# TODO: Написать тест на существолвание данных директорий. Также проверять файлы из Manifest.in
packages=[
'manspy',
'manspy_interface',
'manspy.action',
'manspy.analyzers',
'manspy.database',
'manspy.loggers',
'manspy.runners',
'manspy.storage',
'manspy.storage.fasif',
'manspy.utils',
'manspy.utils.unit',
],
package_data={'manspy.action': ['*.json']},
#long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
long_description=get_long_description(),
author='Konstantin Polyakov',
author_email='[email protected]',
maintainer='Konstantin Polyakov',
maintainer_email='[email protected]',
url='https://github.com/shyzik93/ManSPy',
download_url='https://github.com/shyzik93/manspy/archive/master.zip',
install_requires=install_requires,
entry_points={
'console_scripts': [
'manspy = run_cli:run',
'manspy-interfaces = run_interfaces:run',
]
},
include_package_data=True,
classifiers=[
'Environment :: Console',
'Natural Language :: English',
'Natural Language :: Esperanto',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
'Topic :: Text Processing :: Linguistic',
]
)