-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (40 loc) · 1.36 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
from setuptools import setup, find_packages
import os
import os.path
packageName = "MetadataExtractor"
current_dir = os.path.dirname(os.path.realpath(__file__))
main_ns = {}
ver_path = "{}\\{}\\_version.py".format(current_dir, packageName)
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
def parse_requirements(requirements):
with open(requirements) as f:
return [
line.strip("\n")
for line in f
if line.strip("\n") and not line.startswith("#")
]
requirements = parse_requirements("{}\\requirements.txt".format(current_dir))
packages = find_packages(exclude=("tests*",), where=current_dir)
setup(
name=packageName,
version=main_ns["__version__"],
namespace_packages=[packageName],
description="Metadata Extraction",
author="Benedikt Heinrichs",
author_email="[email protected]",
url="",
packages=packages,
package_dir={"MetadataExtractor": packageName},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
classifiers=[
"Natural Language :: English",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
],
)