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