1
|
|
|
"""Python Package setup.""" |
2
|
|
|
from __future__ import absolute_import |
3
|
|
|
|
4
|
|
|
from setuptools import setup |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
def requirements(): |
8
|
|
|
"""Requirement from source.""" |
9
|
|
|
with open('requirements.txt', 'r', encoding='utf8') as fil: |
10
|
|
|
return fil.read().splitlines() |
11
|
|
|
|
12
|
|
|
|
13
|
|
|
def readme(): |
14
|
|
|
"""Readme from source.""" |
15
|
|
|
with open('README.md', 'r', encoding='utf8') as fil: |
16
|
|
|
return fil.read() |
17
|
|
|
|
18
|
|
|
|
19
|
|
|
setup(name='uom', |
20
|
|
|
version='0.5.2', |
21
|
|
|
description='Unit of Measure conversion tool', |
22
|
|
|
long_description=readme(), |
23
|
|
|
long_description_content_type='text/markdown', |
24
|
|
|
classifiers=['Development Status :: 5 - Production/Stable', |
25
|
|
|
'Environment :: Console', |
26
|
|
|
'Intended Audience :: Customer Service', |
27
|
|
|
'Intended Audience :: Developers', |
28
|
|
|
'Intended Audience :: Science/Research', |
29
|
|
|
'License :: OSI Approved :: MIT License', |
30
|
|
|
'Programming Language :: Python :: 3.6', |
31
|
|
|
'Programming Language :: Python :: 3.7', |
32
|
|
|
'Programming Language :: Python :: 3.8', |
33
|
|
|
'Programming Language :: Python :: 3.9', |
34
|
|
|
'Programming Language :: Python :: 3.10', |
35
|
|
|
'Topic :: Scientific/Engineering', |
36
|
|
|
'Topic :: Scientific/Engineering :: Information Analysis'], |
37
|
|
|
keywords='uom unit measurement measure energistics oilfield', |
38
|
|
|
url='http://github.com/schlumberger/UOM', |
39
|
|
|
author='Velizar VESSELINOV', |
40
|
|
|
author_email='[email protected]', |
41
|
|
|
license='MIT', |
42
|
|
|
packages=['uom'], |
43
|
|
|
install_requires=requirements(), |
44
|
|
|
test_suite='uom.tests', |
45
|
|
|
entry_points={ |
46
|
|
|
'console_scripts': ['uom_convert_value=uom.cmd_line:cmd_convert', |
47
|
|
|
'uom_base_unit=uom.cmd_line:cmd_base_unit'], |
48
|
|
|
}, |
49
|
|
|
include_package_data=True, |
50
|
|
|
zip_safe=False) |
51
|
|
|
|