Last active
November 8, 2019 22:37
-
-
Save potatowagon/cb365d0b8b3318205bd1f44a69c7f887 to your computer and use it in GitHub Desktop.
setup.py template
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
try: | |
from setuptools import setup | |
except ImportError: | |
from distutils.core import setup | |
import re | |
def get_long_description(): | |
''' use this if using readme for long description in pypi page''' | |
with open("README.md", "r") as fh: | |
readme = fh.read() | |
match = re.search(r'to-edit', readme) | |
long_description = match.group(0) #to-edit | |
return long_description | |
setup( | |
name="to-edit", | |
version="0.0.1", #to-edit | |
packages=["to-edit"], | |
description="to-edit", | |
long_description=get_long_description(), | |
long_description_content_type="text/markdown", | |
author="Sherry aka potatowagon", | |
author_email="e0007652@u.nus.edu", | |
url="https://github.com/potatowagon/to-edit", | |
keywords=["to-edit", "to-edit"], | |
install_requires=["to-edit"], | |
extras_require={ | |
"dev": [ | |
"codecov>=2.0.15", | |
"colorama>=0.3.4", | |
"tox>=3.9.0", | |
"tox-travis>=0.12", | |
"pytest>=4.6.2", | |
"pytest-cov>=2.7.1", | |
] | |
}, | |
python_requires=">=3.7", | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment