forked from henrystokeley/pgsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (38 loc) · 1.42 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
import re
from setuptools import setup, find_packages
if __name__ == '__main__':
# get requirements
with open('requirements.txt') as f:
requirements = f.read()
requirements = [
r for r in requirements.splitlines() if r != '']
# get readme
with open('README.rst') as f:
readme = f.read()
# get version number
with open('pgsheets/__init__.py') as f:
version = f.read()
version = re.search(
r'^__version__\s*=\s*[\'"]([\d\.]*)[\'"]\s*$',
version,
re.MULTILINE).groups(1)[0]
setup(name='pgsheets',
version=version,
packages=find_packages(exclude=['test', 'test.*']),
author="Henry Stokeley",
author_email="[email protected]",
description=("Manipulate Google Sheets Using Pandas DataFrames"),
long_description=readme,
license="MIT",
url="https://github.com/henrystokeley/pgsheets",
install_requires=requirements,
test_suite='test',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering',
'Topic :: Office/Business :: Financial :: Spreadsheet',
],
keywords='pandas google sheets spreadsheets dataframe',
)