Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wile Coyote
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Geant DevOps
Wile Coyote
Commits
7e727b8d
Unverified
Commit
7e727b8d
authored
4 weeks ago
by
Max Adamo
Browse files
Options
Downloads
Patches
Plain Diff
fix: improve code formatting and consistency in setup.py
parent
436dc042
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+16
-13
16 additions, 13 deletions
setup.py
with
16 additions
and
13 deletions
setup.py
+
16
−
13
View file @
7e727b8d
"""
wile_coyote
"""
from
ensurepip
import
version
import
os
from
glob
import
glob
...
...
@@ -11,16 +12,18 @@ version = __import__("wile_coyote").__version__
DESC
=
"""
this tool is used in conjunction with certbot to leverage
the lifecycle of the certificates on the key store
"""
requirements
=
[
x
.
strip
()
for
x
in
open
(
"
requirements.txt
"
,
encoding
=
'
utf-8
'
).
readlines
()
if
not
x
.
startswith
(
'
#
'
)
and
x
!=
'
\n
'
]
x
.
strip
()
for
x
in
open
(
"
requirements.txt
"
,
encoding
=
"
utf-8
"
).
readlines
()
if
not
x
.
startswith
(
"
#
"
)
and
x
!=
"
\n
"
]
rmtree
(
'
dist
'
,
ignore_errors
=
True
)
rmtree
(
'
deb_dist
'
,
ignore_errors
=
True
)
rmtree
(
"
dist
"
,
ignore_errors
=
True
)
rmtree
(
"
deb_dist
"
,
ignore_errors
=
True
)
def
read
(
fname
):
"""
get file name
"""
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
fname
)
,
encoding
=
'
utf-8
'
).
read
()
"""
get file name
"""
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
fname
)).
read
()
setup
(
...
...
@@ -32,19 +35,19 @@ setup(
install_requires
=
requirements
,
author
=
"
Massimiliano Adamo
"
,
author_email
=
"
massimiliano.adamo@geant.org
"
,
license
=
'
GPLv3
'
,
license_files
=
(
'
LICENSE.md
'
,),
scripts
=
glob
(
'
wile_coyote/bin/*
'
),
license
=
"
GPLv3
"
,
license_files
=
(
"
LICENSE.md
"
,),
scripts
=
glob
(
"
wile_coyote/bin/*
"
),
packages
=
find_packages
(),
zip_safe
=
False
zip_safe
=
False
,
)
print
(
'
removing stale items
'
)
for
stale_files
in
glob
(
'
*/*.pyc
'
)
+
glob
(
'
wile_coyote-*tar.gz
'
):
print
(
"
removing stale items
"
)
for
stale_files
in
glob
(
"
*/*.pyc
"
)
+
glob
(
"
wile_coyote-*tar.gz
"
):
try
:
os
.
remove
(
stale_files
)
except
PermissionError
:
pass
for
pycache
in
glob
(
'
*/__pycache__
'
)
+
[
'
build
'
,
'
wile_coyote.egg-info
'
]:
for
pycache
in
glob
(
"
*/__pycache__
"
)
+
[
"
build
"
,
"
wile_coyote.egg-info
"
]:
rmtree
(
pycache
,
ignore_errors
=
True
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment