Skip to content

Commit

Permalink
Merge pull request #12 from hyuma/master
Browse files Browse the repository at this point in the history
change setup.py implementation to follow pypa official sample, especially to support windows OS environment.
  • Loading branch information
rizdaprasetya authored Oct 25, 2021
2 parents 3c482b8 + 4c7c2ed commit 5f91625
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import setuptools
"""A setuptools based setup module.
Based on: https://github.com/pypa/sampleproject/blob/90d44abe361688aba5a189e661423863b34f5208/setup.py
"""

with open("README.md", "r") as fh:
long_description = fh.read()
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import pathlib

here = pathlib.Path(__file__).parent.resolve()

# Get the long description from the README file
long_description = (here / 'README.md').read_text(encoding='utf-8')

pkg_req = [
'requests>=2.25.0'
Expand All @@ -10,7 +18,7 @@
'pytest>=3.0.6'
]

setuptools.setup(
setup(
name="midtransclient",
version="1.3.0",
author="Rizda Prasetya",
Expand All @@ -36,4 +44,4 @@
python_requires='>=3.5',
install_requires=pkg_req,
tests_requires=test_req
)
)

0 comments on commit 5f91625

Please sign in to comment.