Skip to content

Commit

Permalink
renaming to geoclustering due to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
msramalho committed Jul 1, 2022
1 parent b02139c commit 6f83246
Show file tree
Hide file tree
Showing 13 changed files with 1,158 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
if: always()
run: |
. .venv/bin/activate
pip uninstall -y geocluster
pip uninstall -y geoclustering
release:
name: Release
Expand Down
19 changes: 19 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
click = "*"
geojson = "*"
keplergl = "*"
numpy = "*"
pandas = "*"
scikit-learn = "*"

[dev-packages]
black = "*"
wheel = "*"

[requires]
python_version = "3.9"
1,124 changes: 1,124 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# geocluster
# geoclustering

> 📍 command-line tool for clustering geolocations.
Expand All @@ -18,8 +18,8 @@ A cluster is created when a certain number of points (=> `--size`) each are with
Clone the repository:

```sh
git clone https://github.com/fspoettel/geocluster
cd geocluster
git clone https://github.com/bellingcat/geoclustering
cd geoclustering
```

Install keplergl build dependencies:
Expand All @@ -37,7 +37,7 @@ pip install .
## Usage

```
Usage: geocluster [OPTIONS] FILENAME
Usage: geoclustering [OPTIONS] FILENAME
Options:
-d, --distance FLOAT (in km) Max. distance between two points in
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions geocluster/__main__.py → geoclustering/__main__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import click
import webbrowser

import geocluster.clustering as clustering
import geocluster.encoding as encoding
import geocluster.io as io
import geoclustering.clustering as clustering
import geoclustering.encoding as encoding
import geoclustering.io as io


@click.command()
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion geocluster/io.py → geoclustering/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def write_visualization(dirname, filename, data):
map.add_data(data=data, name="clusters")

# config configures a default color scheme for our clusters layer.
config_file = resource_filename("geocluster", "kepler_config.json")
config_file = resource_filename("geoclustering", "kepler_config.json")
with open(config_file) as f:
map.config = json.loads(f.read())

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion geocluster/version.py → geoclustering/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
_MINOR = "1"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "0"
_PATCH = "1"
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
# https://semver.org/#is-v123-a-semantic-version for the semantics.
_SUFFIX = ""
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

TAG=$(python -c 'from geocluster.version import VERSION; print("v" + VERSION)')
TAG=$(python -c 'from geoclustering.version import VERSION; print("v" + VERSION)')

read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt

Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# version.py defines the VERSION and VERSION_SHORT variables.
# We use exec here so we don't import cached_path whilst setting up.
VERSION = {} # type: ignore
with open("geocluster/version.py", "r") as version_file:
with open("geoclustering/version.py", "r") as version_file:
exec(version_file.read(), VERSION)

setup(
name="geocluster",
name="geoclustering",
version=VERSION["VERSION"],
description="📍 command-line tool for clustering geolocations.",
long_description=open("README.md").read(),
Expand All @@ -21,9 +21,9 @@
author="Bellingcat",
author_email="[email protected]",
license="MIT",
packages=["geocluster"],
packages=["geoclustering"],
keywords=["cluster", "gis", "pattern-analysis"],
entry_points={"console_scripts": ["geocluster = geocluster.__main__:main"]},
entry_points={"console_scripts": ["geoclustering = geoclustering.__main__:main"]},
install_requires=[
"click",
"geojson",
Expand Down

0 comments on commit 6f83246

Please sign in to comment.