Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4549
setup.py
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
setup.py
View Options
import
setuptools
def
run
():
setuptools
.
setup
(
name
=
'lank'
,
version
=
findversion
(
'.'
,
'lank'
),
author
=
'LANNOCC (Shawn A. Wilson)'
,
author_email
=
'lannocc@yahoo.com'
,
url
=
'https://github.com/lannocc/lank'
,
packages
=
setuptools
.
find_packages
(),
description
=
'Listening Anchor Nodes for K'
,
long_description_content_type
=
'text/markdown'
,
long_description
=
open
(
'README.md'
)
.
read
(),
classifiers
=
[
"Programming Language :: Python :: 3"
,
"License :: OSI Approved :: MIT License"
,
"Operating System :: OS Independent"
,
],
install_requires
=
[
'appdirs'
,
'bidict'
,
'cryptography >= 37.0.4'
,
'gevent'
,
'ntplib'
,
'password-strength'
,
'requests'
,
'websockets'
,
],
entry_points
=
{
'console_scripts'
:
[
'lank=lank.__main__:run'
,
'lank-node=lank.node.__main__:run'
,
#'lank-peer=lank.peer.__main__:run',
],
},
)
def
findversion
(
root
,
name
):
'''versioning strategy taken from
http://stackoverflow.com/a/7071358/7203060'''
import
re
from
os.path
import
join
vfile
=
join
(
root
,
name
,
"__version__.py"
)
vmatch
=
re
.
search
(
r'^__version__ *= *["\']([^"\']*)["\']'
,
open
(
vfile
,
"rt"
)
.
read
(),
re
.
M
)
if
vmatch
:
version
=
vmatch
.
group
(
1
)
print
(
"Found
%s
version
%s
"
%
(
name
,
version
))
return
version
else
:
raise
RuntimeError
(
"Expecting a version string in
%s
."
%
(
vfile
))
if
__name__
==
'__main__'
:
run
()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 16, 4:52 PM (4 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3595
Default Alt Text
setup.py (1 KB)
Attached To
Mode
rLANK Encrypted Communications
Attached
Detach File
Event Timeline
Log In to Comment