This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
49 lines (43 loc) · 1.83 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
from __future__ import print_function
from setuptools import setup, find_packages
from sys import version_info as vi
if vi.major != 3:
ver = '{}.{}.{}'.format(vi.major, vi.minor, vi.micro)
error = (
'INSTALLATION WARNING!\n'
'BiblioPixelAnimations requires Python 3.4+ and you are using {}!\n'
'All versions after v3.20170531.153148 are designed for BiblioPixel 3.x and Python 3.4+\n'
'If you absolutely require using Python 2, '
'please install the older version using:\n'
'> pip install BiblioPixelAnimations==3.20170531.153148 --upgrade'
'\n'
'However, we highly recommend using the latest BiblioPixel '
'(v3+) and BiblioPixelAnimations with Python 3.4+\n'
'\n'
)
print(error.format(ver))
def _get_version():
from os.path import abspath, dirname, join
filename = join(dirname(abspath(__file__)), 'VERSION')
print('Reading version from {}'.format(filename))
version = open(filename).read().strip()
print('Version: {}'.format(version))
return version
setup(
name='BiblioPixelAnimations',
version=_get_version(),
description='BiblioPixelAnimations is an animation repository for animation classes that work with BiblioPixel: http://github.com/maniacallabs/BiblioPixel',
author='Adam Haile',
author_email='[email protected]',
url='http://github.com/maniacallabs/BiblioPixelAnimations/',
license='MIT',
packages=find_packages() + ['Graphics', 'Projects'],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)