Skip to content

Commit eb40b60

Browse files
committed
Additional python version wrangling.
1 parent 414155c commit eb40b60

File tree

4 files changed

+54
-34
lines changed

4 files changed

+54
-34
lines changed

core/src/main/scala/org/locationtech/rasterframes/rasterframes.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ package object rasterframes extends StandardColumns
4646
// Don't make this a `lazy val`... breaks Spark assemblies for some reason.
4747
protected def logger: Logger = Logger(LoggerFactory.getLogger(getClass.getName))
4848

49-
@transient
5049
private[rasterframes]
51-
val rfConfig = ConfigFactory.load().getConfig("rasterframes")
50+
def rfConfig = ConfigFactory.load().getConfig("rasterframes")
5251

5352
/** The generally expected tile size, as defined by configuration property `rasterframes.nominal-tile-size`.*/
5453
@transient

project/PythonBuildPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ object PythonBuildPlugin extends AutoPlugin {
133133
val dest = (Compile / packageBin / artifactPath).value.getParentFile
134134
val art = (Python / packageBin / artifact).value
135135
val ver = version.value
136-
dest / s"${art.name}-$ver-py2.py3-none-any.whl"
136+
dest / s"${art.name}-$ver-py3-none-any.whl"
137137
},
138138
testQuick := pySetup.toTask(" test").value,
139139
executeTests := Def.task {

pyrasterframes/src/main/python/setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
license_files = LICENSE.txt
33

44
[bdist_wheel]
5-
universal=1
5+
universal = 0
66

77
[aliases]
8-
test=pytest
8+
test = pytest
99

1010
[tool:pytest]
1111
addopts = --verbose

pyrasterframes/src/main/python/setup.py

Lines changed: 50 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,26 @@ def initialize_options(self):
130130
def dest_file(self, src_file):
131131
return path.splitext(src_file)[0] + '.ipynb'
132132

133+
pytz = 'pytz'
134+
shapely = 'Shapely>=1.6.0'
135+
pyspark ='pyspark==2.4.4'
136+
numpy = 'numpy>=1.12.0'
137+
matplotlib ='matplotlib'
138+
pandas = 'pandas>=0.24.2'
139+
geopandas = 'geopandas'
140+
requests = 'requests'
141+
pytest_runner = 'pytest-runner'
142+
setuptools = 'setuptools>=0.8'
143+
ipython = 'ipython==6.2.1'
144+
ipykernel = 'ipykernel==4.8.0'
145+
pweave = 'Pweave==0.30.3'
146+
fiona = 'fiona==1.8.6'
147+
rasterio = 'rasterio>=1.0.0'
148+
folium = 'folium'
149+
pytest = 'pytest>4.0.0,<5.0.0'
150+
pypandoc = 'pypandoc'
151+
boto3 = 'boto3'
152+
133153
setup(
134154
name='pyrasterframes',
135155
description='Access and process geospatial raster data in PySpark DataFrames',
@@ -144,40 +164,41 @@ def dest_file(self, src_file):
144164
'Bug Reports': 'https://github.com/locationtech/rasterframes/issues',
145165
'Source': 'https://github.com/locationtech/rasterframes',
146166
},
167+
python_requires=">=3.5",
147168
install_requires=[
148-
'pytz',
149-
'Shapely>=1.6.0',
150-
'pyspark==2.4.4',
151-
'numpy>=1.7',
152-
'pandas>=0.24.2',
169+
pytz,
170+
shapely,
171+
pyspark,
172+
numpy,
173+
pandas
153174
],
154175
setup_requires=[
155-
'pytz',
156-
'Shapely>=1.6.0',
157-
'pyspark==2.4.4',
158-
'numpy>=1.7',
159-
'matplotlib<3.0.0',
160-
'pandas>=0.24.2',
161-
'geopandas',
162-
'requests',
163-
'pytest-runner',
164-
'setuptools>=0.8',
165-
'ipython==6.2.1',
166-
'ipykernel==4.8.0',
167-
'Pweave==0.30.3',
168-
'fiona==1.8.6',
169-
'rasterio>=1.0.0', # for docs
170-
'folium',
176+
pytz,
177+
shapely,
178+
pyspark,
179+
numpy,
180+
matplotlib,
181+
pandas,
182+
geopandas,
183+
requests,
184+
pytest_runner,
185+
setuptools,
186+
ipython,
187+
ipykernel,
188+
pweave,
189+
fiona,
190+
rasterio,
191+
folium
171192
],
172193
tests_require=[
173-
'pytest>4.0.0,<5.0.0',
174-
'pypandoc',
175-
'numpy>=1.7',
176-
'Shapely>=1.6.0',
177-
'pandas>=0.24.2',
178-
'rasterio>=1.0.0',
179-
'boto3',
180-
'Pweave==0.30.3',
194+
pytest,
195+
pypandoc,
196+
numpy,
197+
shapely,
198+
pandas,
199+
rasterio,
200+
boto3,
201+
pweave
181202
],
182203
packages=[
183204
'pyrasterframes',

0 commit comments

Comments
 (0)