This repository was archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (39 loc) · 1.24 KB
/
setup.py
File metadata and controls
48 lines (39 loc) · 1.24 KB
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
from setuptools import find_packages, setup
import codecs
import os
import re
with open("README.md", "r") as file:
long_description = file.read()
here = os.path.abspath(os.path.dirname(__file__))
def find_version(*file_paths):
path = os.path.join(here, *file_paths)
with codecs.open(path, 'r') as fp:
version_file = fp.read()
version_match = re.search(r"__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name="wappsto",
version=find_version("wappsto", "__init__.py"),
author="Seluxit A/S",
author_email="support@seluxit.com",
license="Apache-2.0",
description="Python Package to connect to wappsto.com",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/wappsto/wappsto-python",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
],
packages=find_packages(),
tests_require=[
'pytest',
],
install_requires=[
'jsonrpcclient==3.3.6'
],
python_requires='>3.4.0',
)