This repository was archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (35 loc) · 1.28 KB
/
setup.py
File metadata and controls
39 lines (35 loc) · 1.28 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
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("VERSION", "r") as f:
VERSION = f.read().strip("\n")
with open("requirements.txt", "r") as f:
requirements = []
for line in f.readlines():
if len(line) == 0 or line[0] == "#" or "://" in line:
continue
requirements.append(line.strip())
with open("test-requirements.txt", "r") as f:
test_requirements = []
for line in f.readlines():
if len(line) == 0 or line[0] == "#" or "://" in line:
continue
test_requirements.append(line)
setup(
name="kafka-agent",
version=VERSION,
long_description=(open("README.md").read() + "\n" + open("CHANGELOG.md").read()),
classifiers=[
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="https://github.com/atlasense/kafka-topic-schema",
license="Private License",
setup_requires=["pytest-runner"],
zip_safe=True,
include_package_data=True,
packages=find_packages("src", exclude=["integration_tests", "tests"]),
package_dir={"": "src"},
install_requires=requirements,
extras_require={"test": test_requirements},
entry_points={"console_scripts": ["kafka-agent = core.commands:run"]},
)