-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (31 loc) · 1.13 KB
/
setup.py
File metadata and controls
39 lines (31 loc) · 1.13 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
import codecs
import sys
import codecs
from os.path import join, dirname, abspath
from setuptools import setup, find_packages
project_root = dirname(abspath(__file__))
version = {}
with open(join(project_root, "protoc_base_plugin/version.py")) as read_file:
exec(read_file.read(), version)
with open(join(project_root, "requirements.txt")) as read_file:
REQUIRED = read_file.read().splitlines()
with codecs.open(join(project_root, "README.md"), "r", "utf-8") as f:
long_description = "".join(f.readlines())
setup(
name="protoc-base-plugin",
version=version["__version__"],
description="A framework for easier creation of protoc plugins",
long_description=long_description,
long_description_content_type="text/markdown",
author="Alexander Neumann",
author_email="aleneum@gmail.com",
url="https://gitlab.ub.uni-bielefeld.de/avikom/protoc-base-plugin.git",
packages=find_packages(exclude=["tests", "test_*"]),
install_requires=REQUIRED,
license="MIT",
entry_points={
"console_scripts": [
"protoc-gen-pkl = protoc_base_plugin.generators.null_parser:main"
],
},
)