-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
executable file
·69 lines (59 loc) · 2.19 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
from os import path
from setuptools import setup, find_packages
import re
"""
@author: s00d
@contact: https://github.com/s00d
@license Apache License, Version 2.0, see LICENSE file
Copyright (C) 2020
"""
VERSIONFILE="onlinesimru/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
def long_description():
"""Build the description from README file """
this_dir = path.abspath(path.dirname(__file__))
with open(path.join(this_dir, "README.md")) as f:
return f.read()
def requirements():
"""Build the requirements list for this project"""
requirements_list = list()
with open("requirements.txt") as pc_requirements:
for install in pc_requirements:
requirements_list.append(install.strip())
return requirements_list
setup(
name="onlinesimru",
version=verstr,
long_description=long_description(),
long_description_content_type="text/markdown",
description="Wrapper for automatic reception of SMS-messages by onlinesim.ru",
author="s00d",
license="Apache License, Version 2.0, see LICENSE file",
keywords="sms, revice, onlinesim-ru, autoreg",
author_email="[email protected]",
url="https://github.com/s00d/onlinesim-python-api",
download_url="https://github.com/s00d/onlinesim-python-api/archive/master.zip",
packages=find_packages(),
install_requires=requirements(),
setup_requires=['wheel'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Environment :: Console",
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: PyPy",
],
)