Skip to content

Commit

Permalink
release on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
hayato-n committed Jul 25, 2022
1 parent 6d1be65 commit 61df4e2
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# upload commands
build.sh
upload.sh
uploadtest.sh

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion DynamicESF/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.0"
__version__ = "0.1.0"

from . import HedonicModels, MoranI

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Author implementation of DynamicESF model, which is computationally efficient spatially and temporally varying coefficient model.
This is an extension of SVC (Spatially Varying Coefficient) models for space-time analysis.

<div class="csl-entry">Nishi, H., Asami, Y., Baba, H., &#38; Shimizu, C. (2022). Scalable spatiotemporal regression model based on Moran’s eigenvectors. <i>International Journal of Geographical Information Science</i>, 1–27. https://doi.org/10.1080/13658816.2022.2100891</div>
Nishi, H., Asami, Y., Baba, H., & Shimizu, C. (2022). Scalable spatiotemporal regression model based on Moran’s eigenvectors. *International Journal of Geographical Information Science*, 1–27. https://doi.org/10.1080/13658816.2022.2100891
2 changes: 1 addition & 1 deletion ev_approx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"np.__version__='1.21.5'\n",
"matplotlib.__version__='3.5.1'\n",
"sklearn.__version__='1.0.2'\n",
"DynamicESF.__version__='1.0.0'\n"
"DynamicESF.__version__='0.1.0'\n"
]
}
],
Expand Down
34 changes: 17 additions & 17 deletions non-spatial.ipynb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy>=1.21.5
scipy>=1.7.3
tqdm>=4.64.0
51 changes: 51 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Author: Hayato Nishi
# License: BSD 3-Clause

# I refered mgwr(https://github.com/pysal/mgwr) to write this setup.py

from setuptools import setup

with open("./DynamicESF/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
VERSION = line.strip().split()[-1][1:-1]
break

with open("./README.md") as f:
readme = f.read()

with open("./requirements.txt", "r") as f:
pkg_list = f.read().splitlines()


def setup_package():
setup(
name="DynamicESF",
version=VERSION,
description="DynamicESF: fast spatially and temporally varying coefficient model",
long_description=readme,
url="https://github.com/hayato-n/DynamicESF",
download_url="https://github.com/hayato-n/DynamicESF",
author="Hayato Nishi",
author_email="hnishiua@gmail.com",
python_requires=">=3.8",
keywords="spatial statistics",
license="BSE 3-Clause",
install_requires=pkg_list,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: GIS",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
],
packages=["DynamicESF"],
)


if __name__ == "__main__":
setup_package()

0 comments on commit 61df4e2

Please sign in to comment.