-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 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
36
37
38
39
"Setup script for the m8tricks package"
import sys
from setuptools import setup, find_packages
if not sys.version_info >= (3, 5):
raise RuntimeError('This application requires Python 3.5 or later')
def main():
"Executes setup when this script is the top-level"
import m8tricks as app
from pathlib import Path
with Path(__file__).with_name('project.rst').open() as project:
setup(
name=app.__project__,
version=app.__version__,
description=app.__doc__,
long_description=project.read(),
classifiers=app.__classifiers__,
author=app.__author__,
author_email=app.__author_email__,
url=app.__url__,
license=[
c.rsplit('::', 1)[1].strip()
for c in app.__classifiers__
if c.startswith('License ::')
][0],
keywords=app.__keywords__,
packages=find_packages(),
include_package_data=True,
install_requires=app.__requires__,
entry_points=app.__entry_points__,
)
if __name__ == '__main__':
main()