FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-tabulate/setup.py at feature/docs · jeromegit/python-tabulate · GitHub
jeromegit
/
python-tabulate
Public
forked from
astanin/python-tabulate
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-tabulate
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
63 lines (52 loc) · 2.15 KB
Breadcrumbs
python-tabulate
/
setup.py
Copy path
File metadata and controls
63 lines (52 loc) · 2.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/usr/bin/env python
try
:
from
setuptools
import
setup
except
ImportError
:
from
distutils
.
core
import
setup
from
platform
import
python_version_tuple
,
python_implementation
import
os
import
re
LICENSE
=
open
(
"LICENSE"
).
read
()
# strip links from the descripton on the PyPI
if
python_version_tuple
()[
0
]
>=
'3'
:
LONG_DESCRIPTION
=
open
(
"README.rst"
,
"r"
,
encoding
=
"utf-8"
).
read
().
replace
(
"`_"
,
"`"
)
else
:
LONG_DESCRIPTION
=
open
(
"README.rst"
,
"r"
).
read
().
replace
(
"`_"
,
"`"
)
# strip Build Status from the PyPI package
try
:
if
python_version_tuple
()[:
2
]
>=
(
'2'
,
'7'
):
status_re
=
"^Build status
\n
(.*
\n
){7}"
LONG_DESCRIPTION
=
re
.
sub
(
status_re
,
""
,
LONG_DESCRIPTION
,
flags
=
re
.
M
)
except
TypeError
:
if
python_implementation
()
==
"IronPython"
:
# IronPython doesn't support flags in re.sub (IronPython issue #923)
pass
else
:
raise
install_options
=
os
.
environ
.
get
(
"TABULATE_INSTALL"
,
""
).
split
(
","
)
libonly_flags
=
set
([
"lib-only"
,
"libonly"
,
"no-cli"
,
"without-cli"
])
if
libonly_flags
.
intersection
(
install_options
):
console_scripts
=
[]
else
:
console_scripts
=
[
'tabulate = tabulate:_main'
]
setup
(
name
=
'tabulate'
,
version
=
'0.8-dev'
,
description
=
'Pretty-print tabular data'
,
long_description
=
LONG_DESCRIPTION
,
author
=
'Sergey Astanin'
,
author_email
=
's.astanin@gmail.com'
,
url
=
'https://bitbucket.org/astanin/python-tabulate'
,
license
=
LICENSE
,
classifiers
=
[
"Development Status :: 4 - Beta"
,
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
"Programming Language :: Python :: 2.6"
,
"Programming Language :: Python :: 2.7"
,
"Programming Language :: Python :: 3.2"
,
"Programming Language :: Python :: 3.3"
,
"Programming Language :: Python :: 3.4"
,
"Topic :: Software Development :: Libraries"
],
py_modules
=
[
'tabulate'
],
entry_points
=
{
'console_scripts'
:
console_scripts
},
extras_require
=
{
'widechars'
: [
'wcwidth'
]},
test_suite
=
'nose.collector'
)
Back
|
FazBrowse Home
|
New Git URL