Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plio
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
aflab
astrogeology
Plio
Commits
fae3e6d4
Commit
fae3e6d4
authored
8 years ago
by
jlaura
Committed by
Jason R Laura
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Ammended setup.py to include necessary data elements.
parent
d10dd5c6
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plio/examples/__init__.py
+2
-2
2 additions, 2 deletions
plio/examples/__init__.py
plio/io_krc.py
+250
-237
250 additions, 237 deletions
plio/io_krc.py
setup.py
+16
-5
16 additions, 5 deletions
setup.py
with
268 additions
and
244 deletions
plio/examples/__init__.py
+
2
−
2
View file @
fae3e6d4
import
os
import
os
import
plio
import
plio
__all__
=
[
'
get_path
'
]
__all__
=
[
'
available
'
,
'
get_path
'
]
#Used largely unmodififed from:
#Used largely unmodififed from:
# https://github.com/pysal/pysal/blob/master/pysal/examples/__init__.py
# https://github.com/pysal/pysal/blob/master/pysal/examples/__init__.py
...
@@ -44,7 +44,7 @@ def get_path(example_name): # pragma: no cover
...
@@ -44,7 +44,7 @@ def get_path(example_name): # pragma: no cover
def
available
(
directory
=
''
,
verbose
=
False
):
# pragma: no cover
def
available
(
directory
=
''
,
verbose
=
False
):
# pragma: no cover
"""
"""
List available datasets in
autocnet
.examples
List available datasets in
plio
.examples
Parameters
Parameters
==========
==========
...
...
This diff is collapsed.
Click to expand it.
plio/io_krc.py
+
250
−
237
View file @
fae3e6d4
This diff is collapsed.
Click to expand it.
setup.py
+
16
−
5
View file @
fae3e6d4
import
os
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
import
plio
import
plio
from
plio.examples
import
available
#Grab the README.md for the long description
#Grab the README.md for the long description
with
open
(
'
README.rst
'
,
'
r
'
)
as
f
:
with
open
(
'
README.rst
'
,
'
r
'
)
as
f
:
long_description
=
f
.
read
()
long_description
=
f
.
read
()
...
@@ -8,10 +10,17 @@ with open('README.rst', 'r') as f:
...
@@ -8,10 +10,17 @@ with open('README.rst', 'r') as f:
VERSION
=
plio
.
__version__
VERSION
=
plio
.
__version__
def
setup_package
():
def
setup_package
():
examples
=
set
()
#import plio
for
i
in
available
():
#print(plio.examples.available())
if
not
os
.
path
.
isdir
(
'
plio/examples/
'
+
i
):
if
'
.
'
in
i
:
glob_name
=
'
examples/*.
'
+
i
.
split
(
'
.
'
)[
-
1
]
else
:
glob_name
=
'
examples/
'
+
i
else
:
glob_name
=
'
examples/
'
+
i
+
'
/*
'
examples
.
add
(
glob_name
)
setup
(
setup
(
name
=
"
plio
"
,
name
=
"
plio
"
,
version
=
VERSION
,
version
=
VERSION
,
...
@@ -24,6 +33,8 @@ def setup_package():
...
@@ -24,6 +33,8 @@ def setup_package():
url
=
"
http://packages.python.org/plio
"
,
url
=
"
http://packages.python.org/plio
"
,
packages
=
find_packages
(),
packages
=
find_packages
(),
include_package_data
=
True
,
include_package_data
=
True
,
package_data
=
{
'
plio
'
:
list
(
examples
)
+
[
'
data/*.db
'
,
'
data/*.py
'
]
+
\
[
'
sqlalchemy_json/*.py
'
,
'
sqlalchemy_json/LICENSE
'
]},
zip_safe
=
False
,
zip_safe
=
False
,
install_requires
=
[
install_requires
=
[
'
gdal>=2
'
,
'
gdal>=2
'
,
...
@@ -46,4 +57,4 @@ def setup_package():
...
@@ -46,4 +57,4 @@ def setup_package():
)
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
setup_package
()
setup_package
()
\ No newline at end of file
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