-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
64 lines (55 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
64
import os
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
develop.run(self)
from install_op import CliInstaller
install_cli = CliInstaller()
install_cli.install()
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
from install_op import CliInstaller
install_cli = CliInstaller()
install_cli.install()
def readme():
with open('README.md') as f:
return f.read()
root_dir = os.getcwd()
with open(os.path.join(root_dir, 'VERSION')) as version_file:
version = version_file.read().strip()
setup(
name="1password",
version=version,
author="David Pryce",
author_email="david.prycecompson@jamf.com",
description="A Python client and wrapper around the 1Password CLI.",
long_description=readme(),
long_description_content_type='text/markdown',
install_requires=[
"wget",
"pyyaml",
"pycryptodome",
"pexpect"
],
python_requires='>=3.7',
license="MIT",
url="https://github.com/wandera/1password-client",
classifiers=["Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: Unix"],
packages=["onepassword"],
tests_require=["nose", "mock", "pytest"],
test_suite="nose.collector",
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
},
setup_requires=["wget"]
)