-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·50 lines (44 loc) · 1.57 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
import gapipy
# build the long description from the *.RST files
contributing = open("CONTRIBUTING.rst").read().replace(".. :contributing:", "")
history = open("HISTORY.rst").read().replace(".. :changelog:", "")
readme = open("README.rst").read()
long_description = readme + "\n\n" + contributing + "\n\n" + history
requirements = []
with open("requirements.txt") as reqs:
lines = reqs.readlines()
for line in lines:
if line:
requirements.append(line.strip("\n"))
setup(
name="gapipy",
version=gapipy.__version__,
description="Python client for the G Adventures REST API",
long_description=long_description,
long_description_content_type="text/x-rst",
author="G Adventures",
author_email="software@gadventures.com",
url="https://github.com/gadventures/gapipy",
packages=find_packages(exclude=("tests",)),
package_dir={"gapipy": "gapipy"},
include_package_data=True,
install_requires=requirements,
license="MIT",
zip_safe=False,
keywords="gapipy",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
)