-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
48 lines (41 loc) · 1.49 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
import os
from setuptools import setup, find_packages
def get_version():
path = os.path.join(os.path.dirname(__file__), 'zwuenf/pysrec/__init__.py')
with open(path) as file:
for line in file:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
# Allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# Import long description
long_description = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
setup(
name='zwuenf.pysrec',
version=get_version(),
packages=find_packages(),
namespace_packages=['zwuenf'],
install_requires=[
'click>=3.3',
'colored>=1.1.5'
],
include_package_data=True,
# PyPI metadata
author='Yves-Noel Weweler',
author_email='y.weweler@gmail.com',
description=('This API can be used to interact with and modify Motorola S-Record files.'),
long_description=long_description,
license='MIT License',
keywords='zwuenf pysrec srec api motorola srecord s-record',
url='http://zwuenf.de/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)