-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (47 loc) · 1.96 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
import fastentrypoints # noqa: F401
import sys
from setuptools import setup
from setuptools import find_packages
required = []
dependency_links = []
EGG_MARK = '#egg='
with open('requirements.txt') as reqs:
for line in reqs.read().split('\n'):
if line.startswith('-e git:') or line.startswith('-e git+') or \
line.startswith('git:') or line.startswith('git+'):
if EGG_MARK in line:
package_name = line[line.find(EGG_MARK) + len(EGG_MARK):]
required.append(package_name)
dependency_links.append(line)
else:
print('Dependency to a git repository should have the format:')
print('git+ssh://git@github.com/xxxxx/xxxxxx#egg=package_name')
sys.exit(1)
else:
required.append(line)
setup(
name='mfplugin',
url="https://github.com/metwork-framework/mfplugin",
author="Fabien MARTY",
author_email="fabien.marty@gmail.com",
packages=find_packages(),
install_requires=required,
include_package_data=True,
dependency_links=dependency_links,
entry_points={
"console_scripts": [
"plugin_wrapper = mfplugin.cli_tools.plugin_wrapper:main",
"plugins.list = mfplugin.cli_tools.plugins_list:main",
"plugins.info = mfplugin.cli_tools.plugins_info:main",
"plugins.hash = mfplugin.cli_tools.plugins_hash:main",
"plugins.check = mfplugin.cli_tools.plugins_check:main",
"_plugins.make = mfplugin.cli_tools.plugins_make:main",
"_plugins.develop = mfplugin.cli_tools.plugins_develop:main",
"plugins.install = mfplugin.cli_tools.plugins_install:main",
"plugins.uninstall = mfplugin.cli_tools.plugins_uninstall:main",
"plugins.repackage = mfplugin.cli_tools.plugins_repackage:main",
"plugins_validate_name = "
"mfplugin.cli_tools.plugins_validate_name:main",
]
}
)