-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
25 lines (21 loc) · 907 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
from setuptools import setup, find_packages
from basepath import VERSION
# Dynamically calculate the version based on VERSION tuple
if len(VERSION)>2 and VERSION[2] is not None:
str_version = "%d.%d_%s" % VERSION[:3]
else:
str_version = "%d.%d" % VERSION[:2]
version= str_version
setup(
name = 'basepath',
version = version,
description = "Simple base path function to avoid hardcoding file path.",
long_description = "Use it to create a root base path and call it in your code to return the full path without repeating the parent folder and/or subfolders name. Add more subfolders as needed or new root folder without over writing the original one.",
author = 'LZAntal',
author_email = '[email protected]',
url = 'https://github.com/lzantal/basepath.git',
license = '',
platforms = ['any'],
packages = find_packages(),
include_package_data = True,
)