-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (27 loc) · 937 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 setup, find_packages
from gitv.git_version import build_version
def readme():
from pathlib import Path
return dict(
license="MIT",
author="figroc",
url="https://github.com/figroc/py-gitv",
description="An opinionated Git versioning tool for Python project.",
long_description=(Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
)
setup(
name="gitv",
version=build_version("2.2.2", sticky=True),
packages=find_packages(),
entry_points={
"setuptools.finalize_distribution_options": [
"vcs = gitv.plugins.setup:configure"
],
"hatch": ["vcs = gitv.plugins.hatch"],
"poetry.plugin": ["vcs = gitv.plugins.poetry:GitVersionPlugin"],
},
python_requires=">=3.8",
extras_require={"hatch": ["hatch"], "poetry": ["poetry"]},
**readme(),
)