-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (63 loc) · 1.7 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Bootstrap distribute unless already installed
from distribute_setup import use_setuptools
use_setuptools()
import os
import sys
from setuptools import setup, find_packages
import NAME
# Shortcut for publishing to Pypi
# Source: https://github.com/kennethreitz/tablib/blob/develop/setup.py
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
setup(
name = "projectname",
version = NAME.__version__,
packages = find_packages(exclude=["tests"]),
scripts = [],
# Project dependencies
install_requires = [
'github3.py',
'Flask',
'Flask-Login',
'Flask-SQLAlchemy',
'Flask-OAuth',
'Flask-SSLify',
'Flask-Mail',
'pyOpenSSL',
'requests',
'arrow',
],
# <optional-feature>: [<dependencies>]
extras_require = {
},
# Packages required for testing
tests_require = [
"nose"
],
# 'include_package_dat = True' or
package_data = {
# If any package contains *.txt or *.rst files, include them:
"": ["*.txt", "*.rst"],
# And include any *.msg files found in the 'hello' package, too:
"hello": ["*.msg"]
},
# The project can be safely installed and run from a zip file
zip_safe = False,
# Metadate for upload to Pypi
author = "<name>",
author_email = "<email>",
description = "<project-name>",
long_description = (open('README.rst').read()),
license = "MIT",
keywords = "hello world example",
url = "<project-url>", # Project homepage or GitHub
download_url = "<download-url>",
classifiers = (
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python"
)
)