FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-server-sdk/setup.py at main · mnito/python-server-sdk · GitHub
mnito
/
python-server-sdk
Public
forked from
launchdarkly/python-server-sdk
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-server-sdk
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
82 lines (71 loc) · 2.78 KB
Breadcrumbs
python-server-sdk
/
setup.py
Copy path
File metadata and controls
82 lines (71 loc) · 2.78 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# type: ignore
from
setuptools
import
find_packages
,
setup
,
Command
import
sys
import
uuid
# Get VERSION constant from ldclient.version - we can't simply import that module because
# ldclient/__init__.py imports all kinds of stuff that requires dependencies we may not have
# loaded yet. Based on https://packaging.python.org/guides/single-sourcing-package-version/
version_module_globals
=
{}
with
open
(
'./ldclient/version.py'
)
as
f
:
exec
(
f
.
read
(),
version_module_globals
)
ldclient_version
=
version_module_globals
[
'VERSION'
]
def
parse_requirements
(
filename
):
""" load requirements from a pip requirements file """
lineiter
=
(
line
.
strip
()
for
line
in
open
(
filename
))
return
[
line
for
line
in
lineiter
if
line
and
not
line
.
startswith
(
"#"
)]
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs
=
parse_requirements
(
'requirements.txt'
)
test_reqs
=
parse_requirements
(
'test-requirements.txt'
)
redis_reqs
=
parse_requirements
(
'redis-requirements.txt'
)
consul_reqs
=
parse_requirements
(
'consul-requirements.txt'
)
dynamodb_reqs
=
parse_requirements
(
'dynamodb-requirements.txt'
)
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs
=
[
ir
for
ir
in
install_reqs
]
testreqs
=
[
ir
for
ir
in
test_reqs
]
redisreqs
=
[
ir
for
ir
in
redis_reqs
]
consulreqs
=
[
ir
for
ir
in
consul_reqs
]
dynamodbreqs
=
[
ir
for
ir
in
dynamodb_reqs
]
class
PyTest
(
Command
):
user_options
=
[]
def
initialize_options
(
self
):
pass
def
finalize_options
(
self
):
pass
def
run
(
self
):
import
sys
import
subprocess
errno
=
subprocess
.
call
([
sys
.
executable
,
'runtests.py'
])
raise
SystemExit
(
errno
)
setup
(
name
=
'launchdarkly-server-sdk'
,
version
=
ldclient_version
,
author
=
'LaunchDarkly'
,
author_email
=
'team@launchdarkly.com'
,
packages
=
find_packages
(),
include_package_data
=
True
,
url
=
'https://github.com/launchdarkly/python-server-sdk'
,
description
=
'LaunchDarkly SDK for Python'
,
long_description
=
'LaunchDarkly SDK for Python'
,
install_requires
=
reqs
,
classifiers
=
[
'Intended Audience :: Developers'
,
'License :: OSI Approved :: Apache Software License'
,
'Operating System :: OS Independent'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: 3.8'
,
'Programming Language :: Python :: 3.9'
,
'Programming Language :: Python :: 3.10'
,
'Programming Language :: Python :: 3.11'
,
'Topic :: Software Development'
,
'Topic :: Software Development :: Libraries'
,
],
extras_require
=
{
"redis"
:
redisreqs
,
"consul"
:
consulreqs
,
"dynamodb"
:
dynamodbreqs
},
tests_require
=
testreqs
,
cmdclass
=
{
'test'
:
PyTest
},
)
Back
|
FazBrowse Home
|
New Git URL