forked from piwheels/piwheels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (34 loc) · 1.22 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
"Setup script for the piwheels package"
import sys
from setuptools import setup, find_packages
if not sys.version_info >= (3, 4):
raise RuntimeError('This application requires Python 3.4 or later')
def main():
"Executes setup when this script is the top-level"
import piwheels as app
from pathlib import Path
with Path(__file__).with_name('README.rst').open() as readme:
setup(
name=app.__project__,
version=app.__version__,
description=app.__doc__,
long_description=readme.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,
platforms=app.__platforms__,
install_requires=app.__requires__,
extras_require=app.__extra_requires__,
entry_points=app.__entry_points__,
)
if __name__ == '__main__':
main()