forked from bast/somepackage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (36 loc) · 1.17 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from setuptools import setup
import os
import sys
_here = os.path.abspath(os.path.dirname(__file__))
if sys.version_info[0] < 3:
with open(os.path.join(_here, 'README.rst')) as f:
long_description = f.read()
else:
with open(os.path.join(_here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
version = {}
with open(os.path.join(_here, 'somepackage', 'version.py')) as f:
exec(f.read(), version)
setup(
name='somepackage',
version=version['__version__'],
description=('Show how to structure a Python project.'),
long_description=long_description,
author='Bruce Wayne',
author_email='[email protected]',
url='https://github.com/bast/somepackage',
license='MPL-2.0',
packages=['somepackage'],
# no dependencies in this example
# install_requires=[
# 'dependency==1.2.3',
# ],
# no scripts in this example
# scripts=['bin/a-script'],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6'],
)