forked from Allain18/pol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (50 loc) · 1.69 KB
/
setup.py
File metadata and controls
57 lines (50 loc) · 1.69 KB
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
"""Setup script for the package"""
import ast
from setuptools import setup, find_packages
with open("README.md", encoding="UTF-8") as readme_file:
README = readme_file.read()
def version():
"""Return version string."""
with open("rpn_calc/__main__.py", encoding="UTF-8") as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
return "0.0.0"
setup(
name="rpn_calc",
version=version(),
description="RPN calculator",
long_description=README,
long_description_content_type="text/markdown",
author="Alain Girard",
author_email="alaingirardvd@gmail.com",
url="https://github.com/Allain18/pol",
license="MIT License",
keywords="rpn, calculator, reverse polish notation",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
"Environment :: Console",
"Operating System :: OS Independent"
],
python_requires=">=3.6",
test_suite="test",
packages=find_packages(exclude=["test"]),
entry_points={
"console_scripts": [
"pol=rpn_calc.__main__:main",
]
},
install_requires=[
"pyyaml>=5.0",
]
)