-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·64 lines (49 loc) · 1.95 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python3
"""
Created on 4 Sep 2020
Updated 23 Mar 2021
@author: Jade Page ([email protected])
https://packaging.python.org/tutorials/packaging-projects/
https://packaging.python.org/guides/single-sourcing-package-version/
"""
import codecs
import os
from setuptools import setup, find_packages
# --------------------------------------------------------------------------------------------------------------------
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path)) as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
return line.split("'")[1]
else:
raise RuntimeError("Unable to find version string.")
# --------------------------------------------------------------------------------------------------------------------
with open('requirements.txt') as req_txt:
required = [line for line in req_txt.read().splitlines() if line]
setup(
name='scs_host_bbe_southern',
version=get_version("src/scs_host/__init__.py"),
description='Host abstractions for data producers or consumers running South Coast Science Debian on the \
BeagleBone Black.',
author='South Coast Science',
author_email='[email protected]',
url='https://github.com/south-coast-science/scs_host_bbe_southern',
package_dir={'': 'src'},
packages=find_packages('src'),
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: POSIX',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
install_requires=required,
platforms=['any'],
python_requires=">=3.3",
)