Skip to content

setup.py to pyproject.toml #137

@ysBach

Description

@ysBach

How about transitioning to pyproject.toml?

In pyproject.toml:

[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "ads"
dynamic = ["version", "dependencies"]
description = "A Python module for NASA's ADS that doesn't suck."
authors = [
    {name = "Andrew R. Casey", email = "andy@astrowizici.st"}
]
license = {text = "MIT"}
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.6"

[project.urls]
Homepage = "http://www.github.com/andycasey/ads/"

[project.optional-dependencies]
tests = [
    "httpretty>=0.8.10",
]

[tool.setuptools]
packages = ["ads", "ads.tests", "ads.tests.stubdata"]

[tool.setuptools.dynamic]
version = {attr = "ads.__version__"}
dependencies = {file = "requirements.txt"}

and in setup.py:

# coding: utf-8

from setuptools import setup

setup()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions