This repository was archived by the owner on Sep 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (47 loc) · 1.35 KB
/
setup.py
File metadata and controls
62 lines (47 loc) · 1.35 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import imp
import os
import re
from setuptools import setup, find_packages
MODULE_NAME = 'pathwar'
def get_version():
with open(os.path.join(
os.path.dirname(__file__), MODULE_NAME, '__init__.py')
) as init:
for line in init.readlines():
res = re.match(r'__version__ *= *[\'"]([0-9\.]*)[\'"]$', line)
if res:
return res.group(1)
def get_long_description():
readme = os.path.join(os.path.dirname(__file__), 'README.md')
return open(readme).read()
setup(
name=MODULE_NAME,
version=get_version(),
description='Pathwar API client',
long_description=get_long_description(),
author='Pathwar team',
author_email='team@pathwar.net',
license='MIT',
install_requires=[
'slumber >= 0.6.0',
],
packages=find_packages(),
# tests_require
# test_suite
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
enty_points={
'console_scripts': [
]
}
)