-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
executable file
·59 lines (50 loc) · 1.81 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os
from setuptools import find_packages, setup # type: ignore
from importanize import __author__, __description__, __version__
def read(fname):
# type: (str) -> str
with open(os.path.join(os.path.dirname(__file__), fname), "rb") as fid:
return fid.read().decode("utf-8")
authors = read("AUTHORS.rst")
history = read("HISTORY.rst").replace(".. :changelog:", "")
licence = read("LICENSE.rst")
readme = read("README.rst")
requirements = read("requirements.txt").splitlines() + ["setuptools"]
test_requirements = (
read("requirements.txt").splitlines()
+ read("requirements-dev.txt").splitlines()[2:]
)
setup(
name="importanize",
version=__version__,
author=__author__,
description=__description__,
long_description="\n\n".join([readme, history, authors, licence]),
long_description_content_type="text/x-rst",
url="https://github.com/miki725/importanize",
license="MIT",
packages=find_packages(exclude=["test", "test.*"]),
python_requires=">=3.6",
install_requires=requirements,
test_suite="tests",
tests_require=test_requirements,
entry_points={
"console_scripts": ["importanize = importanize.__main__:cli"],
"importanize": [
"unused_imports = importanize.contrib.unused_imports:plugin",
"separate_libs = importanize.contrib.separate_libs:plugin",
],
},
keywords=" ".join(["importanize"]),
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 2 - Pre-Alpha",
],
)