Skip to content

Instantly share code, notes, and snippets.

@kemingy
Last active March 26, 2019 11:34
Show Gist options
  • Select an option

  • Save kemingy/576ab30c1e865ca686cc7dc5e4538e2a to your computer and use it in GitHub Desktop.

Select an option

Save kemingy/576ab30c1e865ca686cc7dc5e4538e2a to your computer and use it in GitHub Desktop.
python setup template
from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
requires = [req.strip() for req in f if req]
setup(
name='{name}',
version='0.0.1',
author='{username}',
author_email='{email}',
description='',
long_description_content_type='text/markdown',
long_description=readme,
url='{url}',
packages=find_packages(exclude=['examples*', 'tests*']),
package_data={},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: {license}',
# 'Operating System :: OS Indenpendent',
],
install_requires=requires,
extras_require={},
entry_points={
'console_scripts': [],
},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment