-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
98 lines (78 loc) · 2.37 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
# Import installation modules
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Import the module that would be installed
import pyproj
def test():
os.system("py.test")
# If you want to register your package on PyPi, do this.
def publish():
"""Publish to PyPi"""
os.system("python setup.py sdist upload")
# If the latest CLI arg is 'publish', upload it to PyPi
if sys.argv[-1] == "publish":
publish()
sys.exit()
elif sys.argv[-1] == "test":
test()
sys.exit()
# Needs any other PyPi modules? List them here.
required = [
'colorama',
'webob'
]
# Notice that the following section is
# all a single function invocation.
#
# The Python packaging system is really powerful.
setup(
# What's the project name?
name='pyproj',
# What version is being installed?
version=pyproj.__version__,
# Short description of project
description='The empty Python project',
# Long description, usually loaded from README + HISTORY
long_description=open('README.md').read() + '\n\n' +
open('HISTORY.md').read(),
# Primary author contact information. Must be strings.
author='Allele Dev',
author_email='[email protected]',
# Project development URL
url='https://github.com/queertypes/pyproj',
# Additional files to bring in with the project
data_files=[
'README.md',
'HISTORY.md',
],
# Packages that this project installs
packages= [
'pyproj',
],
# Dependencies for this project
install_requires=required,
# License identifier for the project
license='ISC',
# PyPi project classifiers
classifiers=(
# 'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Topic :: Terminals :: Terminal Emulators/X Terminals',
),
)