-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (62 loc) · 2.91 KB
/
setup.py
File metadata and controls
68 lines (62 loc) · 2.91 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import os
import sys
import ast
import site
from io import open
from setuptools import find_packages, setup
# See https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
self_path = os.path.dirname(os.path.realpath(__file__))
with open(
os.path.join(self_path, "dffml_feature_git", "version.py"), "r"
) as f:
for line in f:
if line.startswith("VERSION"):
version = ast.literal_eval(line.strip().split("=")[-1].strip())
break
with open(os.path.join(self_path, "README.md"), "r", encoding="utf-8") as f:
readme = f.read()
setup(
name="dffml_feature_git",
version=version,
description="",
long_description=readme,
long_description_content_type="text/markdown",
author="John Andersen",
author_email="john.s.andersen@intel.com",
url="https://github.com/dffml/dffml/blob/main/feature/git/README.md",
license="MIT",
keywords=[""],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
tests_require=[],
packages=find_packages(),
entry_points={
"dffml.operation": [
"make_quarters = dffml_feature_git.feature.operations:make_quarters",
"quarters_back_to_date = dffml_feature_git.feature.operations:quarters_back_to_date",
"check_if_valid_git_repository_URL = dffml_feature_git.feature.operations:check_if_valid_git_repository_URL",
"clone_git_repo = dffml_feature_git.feature.operations:clone_git_repo",
"git_repo_default_branch = dffml_feature_git.feature.operations:git_repo_default_branch",
"git_repo_checkout = dffml_feature_git.feature.operations:git_repo_checkout",
"git_repo_commit_from_date = dffml_feature_git.feature.operations:git_repo_commit_from_date",
"git_repo_author_lines_for_dates = dffml_feature_git.feature.operations:git_repo_author_lines_for_dates",
"work = dffml_feature_git.feature.operations:work",
"git_repo_release = dffml_feature_git.feature.operations:git_repo_release",
"lines_of_code_by_language = dffml_feature_git.feature.operations:lines_of_code_by_language",
"lines_of_code_to_comments = dffml_feature_git.feature.operations:lines_of_code_to_comments",
"git_commits = dffml_feature_git.feature.operations:git_commits",
"count_authors = dffml_feature_git.feature.operations:count_authors",
"cleanup_git_repo = dffml_feature_git.feature.operations:cleanup_git_repo",
]
},
)