This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
74 lines (66 loc) · 3.16 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
import os
import unittest
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def test_collector():
"""Function to collect tests cases to run for the 'pip connect-sdk-python3 tests' command"""
from tests import run_unit_tests
loader = unittest.TestLoader()
return loader.discover(start_dir=run_unit_tests.__file__)
setup(
name="connect-sdk-python3",
version="3.47.0",
author="Ingenico ePayments",
author_email="github@epay.ingenico.com",
description="SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
license="MIT",
platforms="python 3.5",
keywords="Ingenico ePayments Connect SDK",
url="https://github.com/Ingenico-ePayments/connect-sdk-python3",
packages=find_packages(
exclude=["*.examples", "*.examples.*", "examples.*", "examples", # exclude examples
"*.tests", "*.tests.*", "tests.*", "tests"], # and tests
include="ingenico.*"), # finds all source packages, recursively
# list non-code files used by the SDK
package_data={".": ["MANIFEST.in", "README.rst", "setup.py"]},
# data_files=[(".", ["LICENSE.txt"])],
# installs all files listed in the MANIFEST.in into the installation (currently does not seem to happen either way)
include_package_data=True,
# data_files=[("index.rst", "README.rst", "setup.py, MANIFEST.in")], # list miscellaneous files to include
# The pypi homepage is based on the long description, standard interpretation is reStructuredText
long_description=read('README.rst'),
long_description_content_type='text/x-rst',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business :: Financial",
"License :: OSI Approved :: MIT License"
],
scripts=[], # executable python scripts, none since this is a library
python_requires=">= 3.5",
install_requires=[
"requests >= 2.25.0",
"requests-toolbelt >= 0.8.0"
],
# test_suite="tests/run_unit_tests" # enables command 'pip connect-sdk-python3 test', which runs unit tests)
# setup_requires=[ # setuptools_scm automatically reads the version from version control
# 'setuptools_scm'
# ],
# use_scm_version=True # turns setuptools_scm on
)