-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
90 lines (80 loc) · 3.04 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016, 2018, Joshua Saxby <[email protected]>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http:https://mozilla.org/MPL/2.0/.
#
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import os
from setuptools import find_packages, setup
def readme(filepath):
"""
Utility function to convert the README file to RST format and return it.
"""
return convert_text(
open(os.path.join(os.path.dirname(__file__), filepath)).read(),
'rst', format='md'
)
def parse_requirements(filepath):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filepath))
return [line for line in lineiter if line and not line.startswith("#")]
def retrieve_deps(filepath):
"""
Given a file path that points to a requirements file that pip can
understand, parse it using pip's parser and return the requirements it
contains as a list.
"""
return [
str(dep.req) for dep in parse_requirements(filepath, session=False)
]
setup(
name='basest',
version='0.7.1',
description=(
'Converts symbols from any number base to any other number base'
),
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
long_description_content_type='text/markdown',
url='https://github.com/saxbophone/basest-python',
author='Joshua Saxby',
author_email='[email protected]',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Communications',
'Topic :: Education',
'Topic :: Internet',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator', # noqa
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
keywords='number base encoder decoder conversion encoding decoding',
packages=find_packages(),
install_requires=parse_requirements('python_requirements/base.txt'),
extras_require={
'test': parse_requirements('python_requirements/test.txt'),
'build': parse_requirements('python_requirements/build.txt'),
},
package_data={
'': ['README.md', 'LICENSE'],
},
zip_safe=False
)