-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
72 lines (61 loc) · 2.51 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
65
66
67
68
69
70
71
72
# Copyright (C) 2016-2017 DLR
#
# All rights reserved. This program and the accompanying materials are made
# available under the terms of the 2-Clause BSD License ("Simplified BSD
# License") which accompanies this distribution, and is available at
# https://opensource.org/licenses/BSD-2-Clause
#
# Contributors:
# Franz Steinmetz <franz.steinmetz@dlr.de>
# Sebastian Brunner <sebastian.brunner@dlr.de>
import os
from setuptools import setup, find_packages
root_path = os.path.dirname(os.path.abspath(__file__))
readme_file_path = os.path.join(root_path, "README.rst")
with open(readme_file_path, "r") as f:
long_description = f.read()
version_file_path = os.path.join(root_path, "VERSION")
with open(version_file_path, "r") as f:
content = f.read().splitlines()
version = content[0]
setup(
name='yaml_configuration',
version=version,
url='https://github.com/DLR-RM/python-yaml-configuration',
license='BSD',
author='Sebastian Brunner',
maintainer='Sebastian Brunner',
author_email='sebastian.brunner@dlr.de',
maintainer_email='sebastian.brunner@dlr.de',
description='A python module to easily read from and write to yaml config files.',
long_description=long_description,
keywords=('yaml', 'configuration'),
packages=find_packages('python'), # include all packages under python
package_dir={'': 'python'}, # tell distutils packages are under python
data_files=[("./", ["VERSION"])],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
# works but not sufficient => see MANIFEST.in for extra files to include
# package_data={'': ['*basic_config.yaml']},
# package_data={'yaml_configuration': ['*basic_config.yaml']},
# does not work
# package_data={'': ['yaml_configuration/basic_config.yaml']},
# package_data={'python': ['*basic_config.yaml']},
# include_package_data=True,
# data_files=[('yaml_configuration', ['/etc/locale.conf'])],
python_requires='>=2.6',
setup_requires=['pytest-runner'],
install_requires=['pyyaml>=5.1'],
tests_require=['pytest'],
zip_safe=True
)