-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (22 loc) · 747 Bytes
/
setup.py
File metadata and controls
27 lines (22 loc) · 747 Bytes
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
import setuptools
from pathlib import Path
import re
def get_version(fn) -> str:
code = Path(fn).read_text()
match = re.search(r"__version__\s*=\s*['\"]([^'\"]+)['\"]", code)
assert match is not None
return match.group(1)
version = get_version("./litequeue.py")
setuptools.setup(
name="litequeue",
version=version,
author="Ricardo Ander-Egg Aguilar",
author_email="rsubacc@gmail.com",
description="Simple queue built on top of SQLite",
long_description=Path("README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/litements/litequeue",
py_modules=["litequeue"],
classifiers=["Operating System :: OS Independent"],
python_requires=">=3.6",
)