-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (39 loc) · 1.34 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
import setuptools
from types import SimpleNamespace
meta = SimpleNamespace(
__name__ = "twpl",
__version__ = "0.1.1",
__author__ = "Kirill Grigorev",
__git_id__ = "LankyCyril",
__license__ = "GPLv3",
__description__ = "Two-phase locking via lockfiles",
)
def get_readme(filename):
try:
with open(filename) as readme_handle:
return readme_handle.read()
except FileNotFoundError:
return meta.__description__
if __name__ == "__main__":
setuptools.setup(
name = meta.__name__,
version = meta.__version__,
packages = [meta.__name__],
url = f"https://github.com/{meta.__git_id__}/{meta.__name__}/",
author = meta.__author__,
license = meta.__license__,
zip_safe = True,
description = "Two-phase locking via lockfiles",
long_description = get_readme("readme.md"),
long_description_content_type = "text/markdown",
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: System",
],
python_requires = ">=3.7",
install_requires = ["filelock"],
)