-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (43 loc) · 1.24 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
46
47
48
from setuptools import setup, find_packages
# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
def get_git_tag():
import subprocess
tag = subprocess.check_output(["git", "describe", "--tags"]).decode("utf-8").strip()
return tag
def get_version():
try:
version = get_git_tag()
with open("VERSION", "w") as f:
f.write(version)
return version
except:
# Not a git repo
pass
with open("VERSION", "r") as f:
version = f.read()
return version
setup(
name='docker-sand',
version=get_version(),
packages=find_packages(),
entry_points={
'console_scripts': [
'sand = sand.internal.main:main'
]
},
install_requires=[
"watchdog",
],
author='Guy Kaplan',
description='Sand is a Dockerfile generator based on python that allows you to write your Dockerfile in a more convenient way.',
long_description=long_description,
long_description_content_type='text/markdown',
license='MIT',
keywords='sand docker dockerfile build',
url='https://github.com/gkpln3/Sand',
classifiers=[
],
)