forked from ARMmbed/autoversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (32 loc) · 1.25 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
import os
from setuptools import setup
from setuptools import find_packages
repository_dir = os.path.dirname(__file__)
# single source for project version information without side effects
__version__ = None
with open(os.path.join(repository_dir, "src", "auto_version", "__version__.py")) as fh:
exec(fh.read())
# support use of pipenv for managing requirements
with open(os.path.join(repository_dir, "requirements.txt")) as fh:
requirements = fh.readlines()
setup(
author="David Hyman, Arm Mbed",
author_email="support@mbed.com",
name="pyautoversion",
description="Tool for managing SemVer versioning of a project.",
long_description="Cross-language tool written in Python for managing SemVer versioning of a project.",
license="Apache 2.0",
version=__version__,
url="https://github.com/ARMmbed/autoversion",
include_package_data=True,
package_dir={"": "src"},
packages=find_packages("src"),
install_requires=requirements,
entry_points=dict(
console_scripts=[
"auto_version = auto_version.auto_version_tool:main_from_cli",
"auto-version = auto_version.auto_version_tool:main_from_cli",
"autoversion = auto_version.auto_version_tool:main_from_cli",
]
),
)