/
setup.py
72 lines (65 loc) · 1.84 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018, Michael Chigaev.
#
# F1bw is free software; you can redistribute it and/or modify
# it under the terms of the 3-Clause BSD License; see LICENSE.txt
# file for more details.
#
#
# Developers, install with:
# pip install -r requirements.txt
# python setup.py develop
#
from distutils.cmd import Command
import distutils.log as logger
from os import environ as environ
import platform
import shutil
import string
import subprocess # noqa
import sys
from setuptools import setup, find_packages
from setuptools.command import build_py, develop, install
# Version restrictions and dependencies
if sys.version_info < (3, 4, 0, 'final', 0):
raise SystemExit("This package requires python 3.4 or higher.")
NAME = 'F1bw'
#
# Most of the setup function has been moved to setup.cfg,
# which requires a recent setuptools to work. Current
# anaconda setuptools is too old, so it is strongly
# urged this package be installed in a virtual environment.
#
tests_require = [
'check-manifest>=0.25',
'coverage>=4.0',
'isort>=4.2.2.2',
'pydocstyle>=1.0.0',
'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
'pytest>=2.8.0'
]
extras_require = dict(docs=['Sphinx>=1.4.2'], tests=tests_require)
extras_require['all'] = []
for reqs in extras_require.values():
extras_require['all'].extend(reqs)
packages = find_packages()
setup(
description=__doc__,
packages=packages,
setup_requires=['setuptools>30.3.0',
'setuptools-scm>1.5'
],
entry_points={
'console_scripts': [NAME + ' = ' + NAME + ':main']
},
use_scm_version={
'version_scheme': 'guess-next-dev',
'local_scheme': 'dirty-tag',
'write_to': NAME + '/version.py'
},
extras_require=extras_require,
tests_require=tests_require,
)