-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (39 loc) · 1.33 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
import os
from setuptools import setup, find_packages
def project_path():
path = os.path.dirname(os.path.abspath(__file__))
return path
old_cwd = os.getcwd()
proj_path = project_path()
os.chdir(proj_path)
about = {}
with open(os.path.join(proj_path, "pyonepassword", "__about__.py"), "r") as fp:
exec(fp.read(), about)
with open(os.path.join(proj_path, "README.md"), "r") as fp:
long_description = fp.read()
setup(
name=about["__title__"],
version=about["__version__"],
description=about["__summary__"],
license="MIT",
author="Zachary Cutlip",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/zcutlip/pyonepassword",
packages=find_packages(),
# We need python3.9 in order to use importlib.resources.files in templates.py
python_requires='>=3.8',
install_requires=[
# if python 3.8, need to install 3rd importlib-resources
"importlib-resources>=5.2.0; python_version<'3.9'"
],
package_data={'pyonepassword': ['data/*']},
entry_points={"console_scripts":
["opconfig=pyonepassword.opconfig_main:main"]},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
os.chdir(old_cwd)