This repository has been archived by the owner on Jan 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
63 lines (51 loc) · 1.78 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
61
62
63
import codecs
import os
import re
from setuptools import setup, find_packages
def requirements():
"""
Build the requirements list for this project
Returns:
A list of requirements
"""
requirements_list = []
with open("requirements.txt") as f:
for line in f:
requirements_list.append(line.strip())
return requirements_list
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return codecs.open(fpath(fname), encoding="utf-8").read()
def grep(attrname):
pattern = r'{}\W*=\W*"([^"]+)"'.format(attrname)
strval, = re.findall(pattern, read(fpath("linkedrw/__init__.py")))
return strval
setup(
name="linkedrw",
version=grep("__version__"),
author="Joshua Tang",
author_email="zeshuaro@gmail.com",
license="MIT License",
url="/~https://github.com/zeshuaro/LinkedRW",
keywords="python scraper cv resume portfolio profile website",
description="A simple CLI for you to create your resume and personal website based on your LinkedIn profile",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.6",
install_requires=requirements(),
setup_requires=["pytest-runner"],
tests_require=["pytest", "pytest-cov"],
include_package_data=True,
entry_points={"console_scripts": ["linkedrw=linkedrw:main"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)