Skip to content

Commit

Permalink
Finish migration to pyproject.toml (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
venthur authored Apr 17, 2024
1 parent 2ed917a commit 44f2f92
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 82 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Upgrade Pip
run: python -m pip install -U pip
- name: Install package and dependencies
run: python -m pip install -e .
- name: Install package and development dependencies
run: python -m pip install -e .[dev]
- name: Test with pytest
run: |
python -m pip install pytest pytest-cov
pytest
deploy:
Expand All @@ -46,7 +45,7 @@ jobs:
- name: Check release
id: check_release
run: |
python -m pip install poetry githubrelease httpx==0.18.2 autopub twine wheel
python -m pip install autopub[github]
echo "release=$(autopub check)" >> $GITHUB_OUTPUT
- name: Publish
Expand Down
64 changes: 57 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,68 @@
[tool.poetry]
[project]
name = "feedgenerator"
version = "2.1.0"
authors = [
{name="Pelican Dev Team", email="authors@getpelican.com"},
]
description = "Standalone version of django.utils.feedgenerator"
authors = ["Pelican Dev Team <authors@getpelican.com>"]
readme = "README.rst"
license = "BSD-3-Clause"
keywords = ["feed", "atom", "rss"]
readme = "README.rst"
license = { file="LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Pelican",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.7"
dependencies = [
"pytz>=0a",
]

[project.urls]
Homepage = "https://github.com/getpelican/feedgenerator"
"Issue Tracker" = "https://github.com/getpelican/feedgenerator/issues"
Funding = "https://donate.getpelican.com/"

[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
]

[tool.autopub]
project-name = "feedgenerator"
project-name = "FeedGenerator"
git-username = "botpub"
git-email = "52496925+botpub@users.noreply.github.com"
version-strings = ["setup.py"]
build-system = "setuptools"

[tool.pytest.ini_options]
addopts = """
--cov=feedgenerator
--cov=tests
--cov-report=html
--cov-report=term-missing:skip-covered
"""

[tool.setuptools]
packages = [
"feedgenerator",
"feedgenerator.django",
"feedgenerator.django.utils",
]

[build-system]
requires = ["setuptools >= 40.6.0"]
requires = ["setuptools>=64.0"]
build-backend = "setuptools.build_meta"
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

62 changes: 0 additions & 62 deletions setup.py

This file was deleted.

0 comments on commit 44f2f92

Please sign in to comment.