-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
65 lines (55 loc) · 1.81 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
65
"""
Setup the Python package
"""
import pathlib
import re
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as file:
long_description = file.read()
WORK_DIR = pathlib.Path(__file__).parent
def get_version():
"""Get version"""
txt = (WORK_DIR / "libdev" / "__init__.py").read_text("utf-8")
try:
return re.findall(r"^__version__ = \"([^\"]+)\"\r?$", txt, re.M)[0]
except IndexError as e:
raise RuntimeError("Unable to determine version") from e
setup(
name="libdev",
version=get_version(),
description="Set of standard functions for development",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/chilleco/lib",
author="Alex Poloz",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
keywords=(
"standard, lib, dev, development, cfg, config, generate, codes, "
"tokens, ids, passwords, generator, ciphers, time, formatter, nlp, "
"natural language, aws, s3, upload file, file server"
),
packages=find_packages(exclude=("tests",)),
python_requires=">=3.7, <4",
install_requires=[
# NOTE: Without lib versions because of conflicts with main repo
"aiohttp",
"python-dotenv",
"boto3",
"Pillow",
"loguru",
],
project_urls={
"Source": "https://github.com/chilleco/lib",
},
license="MIT",
include_package_data=False,
)