-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
46 lines (36 loc) · 1.17 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
import os
import sys
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def calver_version(value):
src = os.path.join(here, "src")
sys.path.insert(0, src)
from calver.integration import _get_version
return _get_version(value)
setup(
name="calver",
description="Setuptools extension for CalVer package versions",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/di/calver",
author="Dustin Ingram",
author_email="[email protected]",
classifiers=[
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
],
keywords="calver",
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.7",
entry_points={
"distutils.setup_keywords": [
"use_calver = calver.integration:version",
],
},
version=calver_version(True),
)