-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (39 loc) · 1.3 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
from setuptools import setup
from Redy.Tools.Version import Version
with open('./README.rst', encoding='utf-8') as f:
readme = f.read()
version_filename = 'next_version'
with open(version_filename) as f:
version = Version(f.read().strip())
setup(
name='wisepy',
version=str(version),
keywords='CLI solution',
description="effective and intuitive CLI framework",
long_description=readme,
license='MIT',
url='https://github.com/thautwarm/wisepy',
author='thautwarm',
author_email='[email protected]',
include_package_data=True,
python_requires='>=3.6.0',
# extras_require={
# ':sys_platform == "win32"': ['pyreadline'],
# ':"linux" in sys_platform': ['gunreadline']
# },
install_requires=['Redy', 'rbnf', 'linq-t'],
packages=['wisepy'],
platforms='any',
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython'
],
zip_safe=False)
version.increment(version_number_idx=2, increment=1)
if version[2] is 42:
version.increment(version_number_idx=1, increment=1)
if version[1] is 42:
version.increment(version_number_idx=0, increment=1)
with open(version_filename, 'w') as f:
f.write(str(version))