Last active
March 26, 2019 11:34
-
-
Save kemingy/576ab30c1e865ca686cc7dc5e4538e2a to your computer and use it in GitHub Desktop.
python setup template
This file contains hidden or 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
| 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