-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
39 lines (34 loc) · 1.09 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import setuptools
import pypandoc
def main():
setuptools.setup(
name = "tmux-control",
version = "2024.05.08.1442",
description = "configure and control tmux",
long_description = long_description(),
url = "https://github.com/wdbm/tmux-control",
author = "Will Breaden Madden",
author_email = "wbm@protonmail.ch",
license = "GPLv3",
install_requires = [
"docopt"
],
scripts = [
"tmux-control.py"
]
)
def long_description(filename="README.md"):
if os.path.isfile(os.path.expandvars(filename)):
try:
import pypandoc
long_description = pypandoc.convert_file(filename, "rst")
except ImportError:
long_description = open(filename).read()
else:
long_description = ""
return long_description
if __name__ == "__main__":
main()