-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (54 loc) · 1.56 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
import os, sys
import os.path
from setuptools.command.install import install as _install
from setuptools import setup, find_packages
root = os.path.abspath(os.path.dirname(__file__))
package_name = "python_template"
binary_names = ["src"]
VERSION = "0.0.1"
packages = find_packages(
include=[package_name, "src.*"]
)
with open(os.path.join(root, 'README.md'), 'rb') as readme:
long_description = readme.read().decode('utf-8')
def _post_install():
from subprocess import call
call([sys.executable, 'config/post_install.py'], cwd=os.path.join(root, 'src'))
class install(_install):
def run(self):
_install.run(self)
self.execute(_post_install, (self.install_lib,), msg="Running Post Installation")
setup(
name=package_name,
version=VERSION,
description="short description",
long_description=long_description,
author='Your Name',
cmdclass={'install': install},
author_email='[email protected]',
url='http://github.com/GrowthEngineAI/{}'.format(package_name),
python_requires='>3.6',
install_requires=[
"pysimdjson",
"rich",
"typer"
],
package_data={
'json': ['*.json'],
},
extras_require={
'test': ['pytest'],
},
packages=packages,
entry_points={
"console_scripts": [
"{} = {}.cli:cli".format(binary_name, package_name)
for binary_name in binary_names
]
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
],
)