Skip to content

Commit

Permalink
Add project metadata for PyPI (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jun 13, 2024
1 parent b6d7aad commit c2f6e21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 4 additions & 5 deletions conda/recipes/rapids-build-backend/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{% set pyproject_data = load_file_data("pyproject.toml") %}
{% set version = pyproject_data["project"]["version"] %}
{% set summary = pyproject_data["project"]["description"] %}

package:
name: rapids-build-backend
Expand Down Expand Up @@ -30,14 +29,14 @@ requirements:
{% endfor %}

about:
home: https://rapids.ai/
home: {{ pyproject_data["project"]["urls"]["Homepage"] }}
license: {{ pyproject_data["project"]["license"]["text"] }}
license_file: {{ pyproject_data["tool"]["setuptools"]["license-files"][0] }}
summary: {{ summary }}
summary: {{ pyproject_data["project"]["description"] }}
description: |
This package contains the PEP 517 build backend adapter used by all of
RAPIDS. It does not directly perform builds, but rather performs various
RAPIDS-specific metadata manipulations before calling down to another build
backend like setuptools to finish the job.
doc_url: https://docs.rapids.ai/
dev_url: https://github.com/rapidsai/rapids-build-backend
dev_url: {{ pyproject_data["project"]["urls"]["Source"] }}
doc_url: {{ pyproject_data["project"]["urls"]["Documentation"] }}
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ dependencies = [
"tomlkit",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
license = { text = "Apache 2.0" }
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Build Tools",
]
readme = { file = "README.md", content-type = "text/markdown" }

[project.optional-dependencies]
Expand All @@ -26,6 +32,12 @@ test = [
"pytest",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.

[project.urls]
Documentation = "https://github.com/rapidsai/rapids-build-backend"
Homepage = "https://github.com/rapidsai/rapids-build-backend"
Issues = "https://github.com/rapidsai/rapids-build-backend/issues"
Source = "https://github.com/rapidsai/rapids-build-backend"

[tool.setuptools]
license-files = ["LICENSE"]

Expand Down

0 comments on commit c2f6e21

Please sign in to comment.