-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
# import os | ||
# import re | ||
# import codecs | ||
import os | ||
import re | ||
import codecs | ||
|
||
try: | ||
from setuptools import setup, find_packages | ||
|
@@ -14,27 +14,24 @@ def get_version(package): | |
""" | ||
Return package version as listed in `__version__` in `init.py`. | ||
""" | ||
return "0.1" | ||
# init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() | ||
# return re.search("^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) | ||
init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() | ||
return re.search("^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) | ||
|
||
|
||
def get_author(package): | ||
""" | ||
Return package author as listed in `__author__` in `init.py`. | ||
""" | ||
return "Marc Galofré" | ||
# init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() | ||
# return re.search("^__author__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) | ||
init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() | ||
return re.search("^__author__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) | ||
|
||
|
||
def get_email(package): | ||
""" | ||
Return package email as listed in `__email__` in `init.py`. | ||
""" | ||
return "[email protected]" | ||
# init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() | ||
# return re.search("^__email__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) | ||
init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() | ||
return re.search("^__email__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) | ||
|
||
|
||
setup( | ||
|
@@ -44,8 +41,7 @@ def get_email(package): | |
include_package_data=True, | ||
keywords="addonpayments sdk python hpp api", | ||
description='A SDK Addonpayments implemented with Python.', | ||
# long_description=codecs.open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8').read(), | ||
long_description='', | ||
long_description=codecs.open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8').read(), | ||
install_requires=[ | ||
'python-decouple', | ||
'attrs', | ||
|