forked from cgarciaarano/click-require-creds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (26 loc) · 752 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import find_packages, setup
# Get tag from env that matches lousy semver
VERSION = os.getenv("VERSION", "local")
m = re.search(r"([0-9]+\.){2}[0-9]+", VERSION)
if m:
VERSION = m[0]
# Package meta-data.
NAME = "click_require_creds"
DESCRIPTION = "Click decorator to handle credentials"
INSTALL_REQUIRES = ["Click>=7.1,<8", "nttldict>=0.0.2"]
TESTS_REQUIRE = ["pytest"]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
author="Carlos Garcia",
author_email="[email protected]",
packages=find_packages(exclude=("tests",)),
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
python_requires=">=3.6",
)