-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
54 lines (44 loc) · 1.43 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
import re
from setuptools import find_packages, setup
def get_version():
with open('altapay/__init__.py') as f:
return re.search(
r'^__version__\s*=\s*[\'"]([^\']*)[\'"]', f.read(),
re.MULTILINE).group(1)
def get_url():
with open('altapay/__init__.py') as f:
return re.search(
r'^__github_url__\s*=\s*[\'"]([^\']*)[\'"]', f.read(),
re.MULTILINE).group(1)
version = get_version()
github_url = get_url()
with open('README.rst', 'r') as f:
readme = f.read()
with open('CHANGELOG.rst', 'r') as f:
changelog = f.read()
requires = [
'requests',
'six'
]
setup(
name='altapay',
version=version,
url=github_url,
license='MIT',
description='Unofficial Python SDK for Valitor (formerly AltaPay/Pensio).',
long_description=readme + '\n\n' + changelog,
author='Coolshop.com',
author_email='altapaysdk@coolshop.com',
packages=find_packages(where='.', exclude=('tests*',)),
install_requires=requires,
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
])