forked from egoexpress/evernote-sdk-python3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1.4 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
import os
from setuptools import setup, find_packages
# Load version number from Thrift-Compiler-generated .py file
constants_path = os.path.join(os.path.dirname(__file__), "lib", "evernote",
"edam", "userstore", "constants.py")
with open(constants_path) as constants_file:
constants = constants_file.read().split("\n")
for x in [x for x in constants if x.startswith('EDAM_VERSION')]:
exec(x)
def read_from_same_directory(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as open_file:
content = open_file.read()
return content
setup(
name='evernote3',
version="{major}.{minor}.0".format(major=EDAM_VERSION_MAJOR,
minor=EDAM_VERSION_MINOR),
author='Evernote Corporation',
author_email='[email protected]',
url='http://dev.evernote.com',
description='Evernote SDK for Python3',
#long_description=read_from_same_directory('README.md'),
packages=find_packages('lib'),
package_dir={'': 'lib'},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3'
],
license='BSD',
install_requires=[
'oauth2',
'oauthlib',
'requests_oauthlib'
],
)