-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (39 loc) · 1.11 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
import os
import sys
import setuptools
import subprocess
from LoopFlow import __version__
head, tail = os.path.split(sys.argv[0])
try:
cmd = 'bash .git.sh'
subprocess.run(
cmd.split())
cmd = 'git tag -a {0} -m {0}'.format(
__version__)
subprocess.run(
cmd.split())
except Exception as e:
print(e)
def get_description():
long_description = ""
readme_file = os.path.join(head, "README.md")
with open(readme_file, "r") as fh:
long_description = fh.read()
return long_description
setuptools.setup(
name="LoopFlow",
version=__version__,
author="The Loop Organisation",
author_email="[email protected]",
description="Calculate Graphs and Distances from Loop Models",
long_description=get_description(),
long_description_content_type="text/markdown",
url="https://github.com/Loop3D/LoopFlow",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)