1
|
|
|
from __future__ import absolute_import, division, print_function |
|
|
|
|
2
|
|
|
import os.path as op |
3
|
|
|
import os |
4
|
|
|
|
5
|
|
|
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" |
6
|
|
|
_version_major = 0 |
7
|
|
|
_version_minor = 1 |
8
|
|
|
_version_micro = 0 # use '' for first of series, number for 1 and above |
9
|
|
|
_version_extra = 'dev' |
10
|
|
|
# _version_extra = '' # Uncomment this for full releases |
11
|
|
|
|
12
|
|
|
# Construct full version string from these. |
13
|
|
|
_ver = [_version_major, _version_minor] |
14
|
|
|
if _version_micro: |
15
|
|
|
_ver.append(_version_micro) |
16
|
|
|
if _version_extra: |
17
|
|
|
_ver.append(_version_extra) |
18
|
|
|
|
19
|
|
|
__version__ = '.'.join(map(str, _ver)) |
20
|
|
|
|
21
|
|
|
CLASSIFIERS = ["Development Status :: 3 - Alpha", |
22
|
|
|
"Environment :: Console", |
23
|
|
|
"License :: OSI Approved :: BSD License", |
24
|
|
|
"Operating System :: OS Independent", |
25
|
|
|
"Programming Language :: Python"] |
26
|
|
|
|
27
|
|
|
# Description should be a one-liner: |
28
|
|
|
description = " " |
29
|
|
|
|
30
|
|
|
# Long description will go up on the pypi page |
31
|
|
|
long_description = """ """ |
32
|
|
|
|
33
|
|
|
NAME = "diff_classifier" |
34
|
|
|
MAINTAINER = "Chad Curtis" |
35
|
|
|
MAINTAINER_EMAIL = "[email protected]" |
36
|
|
|
DESCRIPTION = description |
37
|
|
|
LONG_DESCRIPTION = long_description |
38
|
|
|
URL = "https://github.com/ccurtis7/diff_classifier" |
39
|
|
|
DOWNLOAD_URL = "" |
40
|
|
|
LICENSE = "MIT" |
41
|
|
|
AUTHOR = "Chad Curtis" |
42
|
|
|
AUTHOR_EMAIL = "[email protected]" |
43
|
|
|
PLATFORMS = "OS Independent" |
44
|
|
|
MAJOR = _version_major |
45
|
|
|
MINOR = _version_minor |
46
|
|
|
MICRO = _version_micro |
47
|
|
|
VERSION = __version__ |
48
|
|
|
PACKAGE_DATA = {'diff_classifier': [op.join('data', '*')]} |
49
|
|
|
|
50
|
|
|
src_dir = op.dirname(op.abspath(__file__)) |
51
|
|
|
requires_path = op.abspath(op.join(src_dir, "requirements.txt")) |
52
|
|
|
with open(requires_path) as f: |
53
|
|
|
REQUIRES = [line.strip('\n') for line in f.readlines()] |
54
|
|
|
|
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.