Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
0226cf2d
Commit
0226cf2d
authored
11 years ago
by
Donald Stufft
Browse files
Options
Downloads
Patches
Plain Diff
Clean up the setup.py from some of the cruft
parent
50047cdd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.py
+0
-17
0 additions, 17 deletions
setup.py
tasks.py
+0
-12
0 additions, 12 deletions
tasks.py
with
0 additions
and
29 deletions
setup.py
+
0
−
17
View file @
0226cf2d
...
@@ -11,7 +11,6 @@ import tempfile
...
@@ -11,7 +11,6 @@ import tempfile
from
distutils.command.build_clib
import
build_clib
as
_build_clib
from
distutils.command.build_clib
import
build_clib
as
_build_clib
from
setuptools
import
setup
from
setuptools
import
setup
from
setuptools.command.test
import
test
as
TestCommand
import
nacl
import
nacl
...
@@ -39,9 +38,6 @@ def which(name, flags=os.X_OK): # Taken from twisted
...
@@ -39,9 +38,6 @@ def which(name, flags=os.X_OK): # Taken from twisted
result
.
append
(
pext
)
result
.
append
(
pext
)
return
result
return
result
try
:
try
:
import
nacl.nacl
import
nacl.nacl
except
ImportError
:
except
ImportError
:
...
@@ -172,18 +168,6 @@ class build_clib(_build_clib):
...
@@ -172,18 +168,6 @@ class build_clib(_build_clib):
return
_build_clib
.
build_libraries
(
self
,
libraries
)
return
_build_clib
.
build_libraries
(
self
,
libraries
)
class
PyTest
(
TestCommand
):
def
finalize_options
(
self
):
TestCommand
.
finalize_options
(
self
)
self
.
test_args
=
[]
self
.
test_suite
=
True
def
run_tests
(
self
):
import
pytest
errno
=
pytest
.
main
(
self
.
test_args
)
sys
.
exit
(
errno
)
setup
(
setup
(
name
=
nacl
.
__title__
,
name
=
nacl
.
__title__
,
version
=
nacl
.
__version__
,
version
=
nacl
.
__version__
,
...
@@ -351,7 +335,6 @@ setup(
...
@@ -351,7 +335,6 @@ setup(
zip_safe
=
False
,
zip_safe
=
False
,
cmdclass
=
{
cmdclass
=
{
"
build_clib
"
:
build_clib
,
"
build_clib
"
:
build_clib
,
"
test
"
:
PyTest
,
},
},
classifiers
=
[
classifiers
=
[
...
...
This diff is collapsed.
Click to expand it.
tasks.py
deleted
100644 → 0
+
0
−
12
View file @
50047cdd
from
invoke
import
Collection
,
task
,
run
from
nacl.invoke
import
sodium
ns
=
Collection
()
ns
.
add_collection
(
sodium
)
@ns.add_task
@task
def
tests
():
run
(
"
py.test
"
)
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