-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
40 lines (28 loc) · 1.1 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
import os
from setuptools import find_packages, setup
def get_file_path(name):
return os.path.abspath(os.path.join(os.path.dirname(__file__), name))
def parse_requirements(filename):
line_iter = (line.strip() for line in open(filename))
return [line for line in line_iter if line and not line.startswith("#")]
with open(get_file_path('zabanshenas/version.py')) as f:
exec(f.read())
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
requirements = parse_requirements(get_file_path('requirements.txt'))
if __name__ == "__main__":
setup(
name="zabanshenas",
version=__version__,
description="zabanshenas - language detector",
long_description=long_description,
long_description_content_type="text/markdown",
author="Mehrdad Farahani",
author_email="m3hrdadphi@gmail.com",
url="https://github.com/m3hrdadfi/zabanshenas",
license="Apache License",
packages=find_packages(),
install_requires=requirements,
platforms=["linux", "unix"],
python_requires=">3.7.0",
)