-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (28 loc) · 858 Bytes
/
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
from setuptools import find_packages, setup
from subprocess import check_output
import os
name = "meshing_app"
version_file = os.path.join(os.path.dirname(__file__), name, "version.py")
try:
version = (
check_output(["git", "describe", "--tags"])
.decode("utf-8")
.strip()[1:]
.split("-")
)
version = version[:2]
version = ".dev".join(version)
with open(version_file, "w") as f:
f.write(f'__version__ = "{version}"\n')
except:
version = open(version_file, "r").read().strip().split("=")[-1].replace('"', "")
setup(
name=name,
version=version,
description="Meshing app for Webapp",
dependencies=["netgen"],
packages=find_packages("."),
package_data={name: ["*.png"]},
install_requires=[],
entry_points={"webapp.plugin": ["simple = meshing_app.appconfig"]},
)