This repository was archived by the owner on May 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (43 loc) · 1.52 KB
/
setup.py
File metadata and controls
50 lines (43 loc) · 1.52 KB
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
import setuptools
def get_version():
"""get_version - thanks to
https://milkr.io/kfei/5-common-patterns-to-version-your-Python-package
"""
import os
import re
VERSIONFILE = os.path.join("Acquire", "__init__.py")
initfile_lines = open(VERSIONFILE, "rt").readlines()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
mo = re.search(VSRE, line, re.M)
if mo:
return mo.group(1)
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt") as f:
requirements = f.read().splitlines()
setuptools.setup(
name="acquire",
version=get_version(),
python_requires=">=3.7.0",
author="Christopher Woods",
author_email="chryswoods@gmail.com",
description="A serverless identity, access, accounting, storage and compute management system",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/chryswoods/acquire",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License ",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
"acquire_login = Acquire.Client.Scripts.__acquire_login__:main",
"aq = Acquire.Client.Scripts.__aq__:main",
]
},
install_requires=requirements,
)