Skip to content

Commit b7c1aa3

Browse files
authored
Merge pull request #16 from lixun910/master
release 0.0.8
2 parents 3f21652 + dd5ce89 commit b7c1aa3

File tree

8 files changed

+68
-26
lines changed

8 files changed

+68
-26
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: python
2-
2+
33
jobs:
44
include:
55
# perform a linux build
@@ -21,6 +21,8 @@ install:
2121
script:
2222
# build the wheels, put them into './wheelhouse'
2323
- python3 -m cibuildwheel --output-dir wheelhouse
24+
#- python3 -m pip wheel -v -w wheelhouse --no-deps .
25+
#- auditwheel repair wheelhouse/pygeoda*whl -w output/
2426
- python3 setup.py sdist
2527

2628
after_success:

Development.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
Pygeoda for windows is built using Appveyor (see: appveyor.yml)
77

8+
NOTE:
9+
10+
python 3.5.0 msc 1900 visual c++ 2015 msvc14.0
11+
python 3.6.1 msc 1900 visual c++ 2015 (!!as conda-forge, msvc14.1 for py36)
12+
python 3.7.0 msc 1914 visual c++ 2017 msvc14.1
13+
python 3.8.1 msc 1916 visual c++ 2017
14+
python 3.9.1 msc 1928 visual c++ 2019 msvc14.2
15+
816
Pygeoda for Linux and Mac OSX is built using Travis (see .travis.yml)
917

1018
For conda-forge, the pygeoda PyPI package is used as the source. So, when

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
![PyPI - Downloads](https://img.shields.io/pypi/dm/pygeoda)
55

66

7-
pygeoda is a python library for spatial data analysis based on libgeoda and GeoDa. It provides spatial data analysis functionalities including Exploratory Spatial Data Analysis, Spatial Cluster Detection and Clustering Analysis, Regionalization, etc. based on the C++ source code of GeoDa, which is an open-source software tool that serves as an introduction to spatial data analysis. The GeoDa software and its documentation are available at https://geodacenter.github.io.
7+
pygeoda is a python library for spatial data analysis based on libgeoda and GeoDa. It provides spatial data analysis functionalities including Exploratory Spatial Data Analysis, Spatial Cluster Detection and Clustering Analysis, Regionalization, etc. based on the C++ source code of GeoDa, which is an open-source software tool that serves as an introduction to spatial data analysis.
88

99
### Installation
1010

@@ -14,9 +14,7 @@ pygeoda is a python library for spatial data analysis based on libgeoda and GeoD
1414
pip install pygeoda
1515
```
1616

17-
#### Install from source
18-
19-
You can install pygeoda from source by using the following command in a terminal:
17+
It will be in conda-forge soon. You can also install pygeoda from source by using the following command in a terminal:
2018

2119
```
2220
pip install git+https://github.com/geodacenter/pygeoda
@@ -120,3 +118,12 @@ lisa = pygeoda.local_moran(w, gda['Crm_prs'])
120118
* Demean standardize
121119
* Standardize data (Z)
122120
* Median absolute deviation
121+
122+
123+
## Authors
124+
125+
Xun Li and Luc Anselin
126+
127+
## Contributors
128+
129+
Guanpeng Dong; Yong Liu; Hang Zhang; Yeqing Han;

appveyor.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
image:
22
- Visual Studio 2019
33
- Visual Studio 2017
4+
- Visual Studio 2015
5+
6+
# Start builds on tags only (GitHub and BitBucket)
7+
skip_non_tags: false
8+
9+
# Do not build feature branch with open Pull Requests
10+
skip_branch_with_pr: true
11+
12+
# Maximum number of concurrent jobs for the project
13+
max_jobs: 1
414

515
environment:
616
global:
@@ -58,22 +68,42 @@ matrix:
5868
PYTHON: "C:\\Python35"
5969
- image: Visual Studio 2019
6070
PYTHON: "C:\\Python35-x64"
71+
- image: Visual Studio 2017
72+
PYTHON: "C:\\Python35"
73+
- image: Visual Studio 2017
74+
PYTHON: "C:\\Python35-x64"
6175
- image: Visual Studio 2019
6276
PYTHON: "C:\\Python36"
6377
- image: Visual Studio 2019
6478
PYTHON: "C:\\Python36-x64"
79+
- image: Visual Studio 2015
80+
PYTHON: "C:\\Python36"
81+
- image: Visual Studio 2015
82+
PYTHON: "C:\\Python36-x64"
6583
- image: Visual Studio 2019
6684
PYTHON: "C:\\Python37"
6785
- image: Visual Studio 2019
6886
PYTHON: "C:\\Python37-x64"
87+
- image: Visual Studio 2015
88+
PYTHON: "C:\\Python37"
89+
- image: Visual Studio 2015
90+
PYTHON: "C:\\Python37-x64"
6991
- image: Visual Studio 2019
7092
PYTHON: "C:\\Python38"
7193
- image: Visual Studio 2019
7294
PYTHON: "C:\\Python38-x64"
95+
- image: Visual Studio 2015
96+
PYTHON: "C:\\Python38"
97+
- image: Visual Studio 2015
98+
PYTHON: "C:\\Python38-x64"
7399
- image: Visual Studio 2017
74100
PYTHON: "C:\\Python39"
75101
- image: Visual Studio 2017
76102
PYTHON: "C:\\Python39-x64"
103+
- image: Visual Studio 2015
104+
PYTHON: "C:\\Python39"
105+
- image: Visual Studio 2015
106+
PYTHON: "C:\\Python39-x64"
77107

78108
install:
79109
# note: VS 2010 has stdint.h bundled so simply copy it. Cython should not

boost

Submodule boost updated 6119 files

pygeoda/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.0.4"
1+
__version__ = "0.0.8"
22
# __version__ has to be define in the first line
33

44
__author__ = "Xun Li <[email protected]>, "

setup.py

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,10 @@
7575
else:
7676
EXTRA_COMPILE_ARGS = [
7777
'-w',
78+
'-std=c++14',
7879
'-fvisibility=hidden',
7980
'-D__USE_PTHREAD__' # use pthread!!! on *nix
8081
]
81-
if OS_NAME == 'osx':
82-
EXTRA_COMPILE_ARGS += [
83-
]
84-
85-
8682

8783
###########################################################
8884
# Link args
@@ -109,13 +105,13 @@
109105
BOOST_ARC = 'x32' if OS_NAME == 'win32' else 'x64'
110106
pyversion = sys.version[:3]
111107
MSVC_VER = ''
112-
BOOST_VER = '1_69'
113-
if pyversion in ['2.6', '2.7', '3.0', '3.1', '3.2']:
114-
MSVC_VER = 'vc90'
115-
elif pyversion in ['3.3', '3.4']:
116-
MSVC_VER = 'vc100'
117-
elif pyversion in ['3.5', '3.6', '3.7', '3.8', '3.9']:
108+
BOOST_VER = '1_75'
109+
if pyversion in ['3.5']:
110+
MSVC_VER = 'vc140'
111+
elif pyversion in ['3.6', '3.7', '3.8']:
118112
MSVC_VER = 'vc141'
113+
elif pyversion in ['3.9']:
114+
MSVC_VER = 'vc142'
119115

120116

121117
EXTRA_OBJECTS = [
@@ -141,11 +137,11 @@
141137
'./' + LIBGEODA_SRC + '/GenGeomAlgs.cpp',
142138
'./' + LIBGEODA_SRC + '/GenUtils.cpp',
143139
'./' + LIBGEODA_SRC + '/SpatialIndAlgs.cpp',
144-
'./' + LIBGEODA_SRC + '/pg/geoms.c',
145-
'./' + LIBGEODA_SRC + '/pg/utils.c',
146-
'./' + LIBGEODA_SRC + '/shapelib/shpopen.c',
147-
'./' + LIBGEODA_SRC + '/shapelib/dbfopen.c',
148-
'./' + LIBGEODA_SRC + '/shapelib/safileio.c',
140+
'./' + LIBGEODA_SRC + '/pg/geoms.cpp',
141+
'./' + LIBGEODA_SRC + '/pg/utils.cpp',
142+
'./' + LIBGEODA_SRC + '/shapelib/shpopen.cpp',
143+
'./' + LIBGEODA_SRC + '/shapelib/dbfopen.cpp',
144+
'./' + LIBGEODA_SRC + '/shapelib/safileio.cpp',
149145
'./' + LIBGEODA_SRC + '/weights/PointsToContigWeights.cpp',
150146
'./' + LIBGEODA_SRC + '/weights/PolysToContigWeights.cpp',
151147
'./' + LIBGEODA_SRC + '/weights/GalWeight.cpp',
@@ -206,14 +202,13 @@
206202
extra_objects=EXTRA_OBJECTS),]
207203

208204
setup (name = 'pygeoda',
209-
version = '0.0.7.1',
205+
version = '0.0.8',
210206
author = "Xun Li",
211207
author_email = "[email protected]",
212208
url = "https://github.com/geodacenter/pygeoda",
213209
description = """pygeoda is a python library for spatial data analysis based on GeoDa and libgeoda.""",
214210
ext_modules = extensions,
215211
package_data = package_data,
216-
#cmdclass = {"develop": update_submodules},
217212
include_package_data = include_package_data,
218213
packages=['pygeoda','pygeoda.weights','pygeoda.sa','pygeoda.clustering', 'pygeoda.classify', 'pygeoda.data']
219214
)

0 commit comments

Comments
 (0)