-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
60 lines (51 loc) · 1.75 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
#!/usr/bin/env python
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
PACKAGE = "riotgen"
def get_long_description():
# Get the long description from the README file
with open("README.rst", encoding="utf-8") as f:
return f.read()
def get_version():
"""Get the version from package __init__.py file."""
with open(path.join(PACKAGE, "__init__.py"), encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
return eval(line.split("=")[-1])
setup(
name=PACKAGE,
version=get_version(),
description="riotgen: generator for RIOT source code",
long_description=get_long_description(),
long_description_content_type="text/x-rst",
url="https://github.com/aabadie/riot-generator",
author="Alexandre Abadie",
author_email="alexandre.abadie@inria.fr",
license="",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Utilities",
],
keywords="generator code",
platforms="any",
packages=[PACKAGE],
include_package_data=True,
package_dir={"riotgen": "riotgen"},
package_data={"riotgen": ["templates/*/*", "data/*/*"]},
install_requires=["click", "Jinja2", "PyYaml"],
entry_points={
"console_scripts": [
f"{PACKAGE}=riotgen:main.riotgen",
],
},
)