Skip to content

Commit

Permalink
Merge pull request #149 from wiseaidev/update-package-metadata
Browse files Browse the repository at this point in the history
Migrating from setup.py to pyproject.toml
  • Loading branch information
marshalmiller authored Oct 2, 2022
2 parents 20fef04 + b306082 commit 9df77ff
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 126 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python -m pip install -U pip
pip install -e .
pip install -r requirements_dev.txt
pip install -e .[dev]
- name: Python & pip versions
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

deps: ## Install dependencies
pip install -e .
pip install -r requirements_dev.txt
pip install -e .[dev]

format: ## Code formatting
black linkrot
Expand Down
66 changes: 66 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[build-system]
requires = ["hatchling>=1.8.0"]
build-backend = "hatchling.build"

[project]
name = "linkrot"
dynamic = ["version"]
description = "Extract metadata and URLs from PDF files"
readme = "README.md"
license = "MIT"
requires-python = ">=3.7"
authors = [
{ name = "Marshal Miller", email = "marshal@marshalmiller.com" },
]
keywords = [
"pdf",
"reference",
"linkrot",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Build Tools",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
dependencies = [
"pdfminer.six==20220524",
"chardet==5.0.0"
]

[project.optional-dependencies]
dev = [
"black==22.8.0",
"coverage==6.5.0",
"flake8==5.0.4",
"mccabe<=0.7.0",
"mypy==0.981",
"pylint==2.15.3",
"pytest==7.1.3",
]
test = [
"pytest==7.1.3",
]

[project.urls]
Homepage = "https://github.com/marshalmiller/linkrot"

[tool.hatch.version]
path = "linkrot/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/linkrot",
]

[tool.hatch.build.targets.wheel]
include = [
"/linkrot",
]
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

7 changes: 0 additions & 7 deletions requirements_dev.txt

This file was deleted.

Empty file removed setup.cfg
Empty file.
115 changes: 0 additions & 115 deletions setup.py

This file was deleted.

0 comments on commit 9df77ff

Please sign in to comment.