mirror of
https://github.com/bellingcat/geoclustering.git
synced 2026-06-08 03:28:30 +03:00
renaming to geoclustering due to pypi
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
||||
if: always()
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
pip uninstall -y geocluster
|
||||
pip uninstall -y geoclustering
|
||||
|
||||
release:
|
||||
name: Release
|
||||
|
||||
19
Pipfile
Normal file
19
Pipfile
Normal file
@@ -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"
|
||||
1124
Pipfile.lock
generated
Normal file
1124
Pipfile.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
# geocluster
|
||||
# geoclustering
|
||||
|
||||
> 📍 command-line tool for clustering geolocations.
|
||||
|
||||
@@ -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:
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
@@ -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())
|
||||
|
||||
@@ -2,7 +2,7 @@ _MAJOR = "0"
|
||||
_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 = ""
|
||||
@@ -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
|
||||
|
||||
|
||||
8
setup.py
8
setup.py
@@ -3,11 +3,11 @@ from setuptools import setup
|
||||
# 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(),
|
||||
@@ -21,9 +21,9 @@ setup(
|
||||
author="Bellingcat",
|
||||
author_email="tech@bellingcat.com",
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user