Skip to content

Commit

Permalink
Clean up packaging a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-r-rose committed Sep 29, 2020
1 parent a3ecae0 commit e09eca0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test:
- tests
requires:
- aiohttp
- pyarrow
- pytest
- requests
commands:
Expand Down
7 changes: 7 additions & 0 deletions intake_geopandas/geopandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def _close(self):


class GeoPandasFileSource(GeoPandasSource):
name="geopandasfile"

def __init__(
self,
urlpath,
Expand All @@ -67,6 +69,11 @@ def __init__(
metadata=None,
):
"""
A source for a file opened by geopandas. Specializations of this are provided
for shapefiles and geojson, but this base class can also be used directly
for other file types by providing an OGR driver to `geopandas_kwargs`, e.g.
`geopandas_kwargs={"driver": "GPKG"}` to open a geopackage.
Parameters
----------
urlpath : str or iterable, location of data
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
intake
geopandas
pytest
fsspec
intake
15 changes: 11 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,33 @@
cmdclass=versioneer.get_cmdclass(),
description='Geopandas plugin for Intake',
url='https://github.com/intake/intake_geopandas',
maintainer='Jacob Tomlinson',
maintainer_email='jacob.tomlinson@informaticslab.co.uk',
maintainer='Ian Rose',
maintainer_email='ian.r.rose@gmail.com',
license='BSD',
py_modules=['intake_geopandas'],
packages=find_packages(),
package_data={'': ['*.csv', '*.yml', '*.html']},
entry_points={
'intake.drivers': [
'geojson = intake_geopandas.geopandas:GeoJSONSource',
'geopandasfile = intake_geopandas.geopandas.GeoPandasFileSource',
'geopandasfile = intake_geopandas.geopandas:GeoPandasFileSource',
'geoparquet = intake_geopandas.geopandas:GeoParquetSource',
'postgis = intake_geopandas.geopandas:PostGISSource',
'shapefile = intake_geopandas.geopandas:ShapefileSource',
'spatialite = intake_geopandas.geopandas:SpatiaLiteSource',
'regionmask = intake_geopandas.regionmask:RegionmaskSource',
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
python_requires=">=3.6",
include_package_data=True,
install_requires=requires,
extras_require={'':['regionmask']},
extras_require={"arrow": ["pyarrow"], "regionmask":["regionmask"]},
long_description_content_type='text/markdown',
long_description=open('README.md').read(),
zip_safe=False,
Expand Down

0 comments on commit e09eca0

Please sign in to comment.