-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (32 loc) · 1.13 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
import json
import os
from setuptools import setup, find_packages
def get_info():
project = os.path.dirname(__file__)
info = json.load(open(os.path.join(project, 'package.json')))
with open(os.path.join(project, 'README.md'), 'rt', encoding='utf-8') as readme:
info['long-description'] = readme.read()
with open(os.path.join(project, 'LICENSE'), 'rt', encoding='utf-8') as lic:
info['license'] = lic.read()
info['package'] = os.path.join(project, 'oslicensor')
return info
INFO = get_info()
setup(
name=INFO.get('name'),
version=INFO.get('version'),
author=INFO.get('author'),
author_email=INFO.get('author_email'),
description=INFO.get('description'),
long_description=INFO.get('long-description'),
long_description_content_type="text/markdown",
include_package_data=True,
license=INFO.get('license'),
url=INFO.get('url'),
keywords=INFO.get('keywords'),
entry_points={'console_scripts': ["oslicensor = oslicensor.__main__:main"]},
packages=find_packages(include=['oslicensor']),
package_data={
'oslicensor': ['assets/*.txt']
},
zip_safe=False
)