-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·67 lines (61 loc) · 2.36 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
try:
from pipenv.project import Project
from pipenv.utils import convert_deps_to_pip
pfile = Project().parsed_pipfile
requirements = convert_deps_to_pip(pfile['packages'], r=False)
test_requirements = convert_deps_to_pip(pfile['dev-packages'], r=False)
except ImportError:
# get the requirements from the requirements.txt
requirements = [line.strip()
for line in open('requirements.txt').readlines()
if line.strip() and not line.startswith('#')]
# get the test requirements from the test_requirements.txt
test_requirements = [line.strip()
for line in
open('dev-requirements.txt').readlines()
if line.strip() and not line.startswith('#')]
BUILD_REQUIRED_FILES = ('.VERSION',
'LICENSE',
'AUTHORS.rst',
'CONTRIBUTING.rst',
'HISTORY.rst',
'README.rst',
'USAGE.rst',
'Pipfile',
'Pipfile.lock',
'requirements.txt',
'dev-requirements.txt')
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
version = open('.VERSION').read()
setup(
name='''pystrava''',
version=version,
description='''Transparent authentication for Strava API''',
long_description=readme + '\n\n' + history,
author='''Oriol Fabregas''',
author_email='''[email protected]''',
url='''https://github.com/wefner/pystrava''',
packages=find_packages(where='.', exclude=('tests', 'hooks')),
package_dir={'''pystrava''':
'''pystrava'''},
include_package_data=True,
install_requires=requirements,
license='MIT',
zip_safe=False,
keywords='''pystrava strava auth''',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
],
test_suite='tests',
tests_require=test_requirements,
data_files=[('', BUILD_REQUIRED_FILES),
]
)