-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·33 lines (29 loc) · 941 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 [email protected]
# Licensed under the MIT license (http://opensource.org/licenses/MIT)
from setuptools import setup
import os
app_name = 'kp_boot_32u4'
# Load the version number
try: # python3
fields = {}
with open(os.path.join(app_name, "version.py")) as f:
exec(f.read(), fields)
__version__ = fields['__version__']
except: # python2
execfile(os.path.join(app_name, "version.py"))
setup(
name = app_name,
version = __version__,
description = "Python library for kp_boot_32u4 AVR USB bootloader",
url = "http://github.com/ahtn/kp_boot_32u4",
author = "jem",
author_email = "[email protected]",
license = 'MIT',
packages = [app_name],
install_requires = ['hexdump', 'intelhex', 'easyhid'],
keywords = ['usb', 'hid', 'avr', 'atmega32u4', 'bootloader'],
scripts = ['kp_boot_32u4-cli'],
zip_safe = False
)