Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply PEP621 #388

Merged
merged 11 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ Mike Playle <mike@mythik.co.uk>
Phil Elson <pelson.pub@gmail.com>
Robert Coup <robert.coup@koordinates.com>
Tiago Brito <tiago.brito@90poe.io>
Zachary Burnett <zachary.r.burnett@gmail.com>
jmr marked this conversation as resolved.
Show resolved Hide resolved
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,23 +205,22 @@ even 2.0.
Python 3 is required.

### Creating wheels
First, make a virtual environment and install `cmake_build_extension` and `wheel`
into it:
First, make a virtual environment and install `build` into it:
```
python3 -m venv venv
source venv/bin/activate
pip install cmake_build_extension wheel
pip install build
```

Then build the wheel:
```
python setup.py bdist_wheel
python -m build
```

The resulting wheel will be in the `dist` directory.

> If OpenSSL is in a non-standard location make sure to set `OPENSSL_ROOT_DIR`
> when calling `setup.py`, see above for more information.
> If OpenSSL is in a non-standard location make sure to set `OPENSSL_ROOT_DIR`;
> see above for more information.

## Other S2 implementations

Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
[project]
name = "s2geometry"
description = "Computational geometry and spatial indexing on the sphere"
authors = [
{ name = "Dan Larkin-York", email = "dan@arangodb.com" },
jmr marked this conversation as resolved.
Show resolved Hide resolved
{ name = "Google Inc." },
{ name = "Koordinates Limited" },
{ name = "Mike Playle", email = "mike@mythik.co.uk" },
{ name = "Tiago Brito", email = "tiago.brito@90poe.io" },
jmr marked this conversation as resolved.
Show resolved Hide resolved
]
requires-python = ">=3.7"
classifiers = [
zacharyburnett marked this conversation as resolved.
Show resolved Hide resolved
"Programming Language :: Python :: 3",
"Operating System :: POSIX",
"License :: OSI Approved :: Apache Software License",
]
dynamic = [
"version",
jmr marked this conversation as resolved.
Show resolved Hide resolved
]

[project.license]
file = "LICENSE"
jmr marked this conversation as resolved.
Show resolved Hide resolved
content-type = "text/plain"

[project.urls]
Source = "https://github.com/google/s2geometry"

[project.optional-dependencies]
test = [
"pytest",
]

[build-system]
requires = [
"wheel",
Expand All @@ -6,3 +38,17 @@ requires = [
"cmake_build_extension",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
zip-safe = false
include-package-data = false

[tool.setuptools.packages.find]
where = [
"src",
]
namespaces = false

[tool.setuptools.package-dir]
"" = "src"

22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.