From 88c7582a51eb2fc71a80291fa6dab16476ae55d8 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 16 May 2024 18:37:24 +0200 Subject: chore: switch from setup.py to pyproject.toml --- .gitignore | 1 + .gitlab-ci.yml | 48 ------------------------------------------------ pyproject.toml | 40 +++++++++++++++++++++++++--------------- 3 files changed, 26 insertions(+), 63 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitignore b/.gitignore index 8636081..d19930e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ MANIFEST .coverage .vscode/ .ropeproject/ +*.whl diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index e8a5795..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,48 +0,0 @@ -image: python:latest - -# Change pip's cache directory to be inside the project directory since we can -# only cache local items. -variables: - PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - -# Pip's cache doesn't store the python packages -# https://pip.pypa.io/en/stable/reference/pip_install/#caching -# -# If you want to also cache the installed packages, you have to install -# them in a virtualenv and cache it as well. -cache: - paths: - - .cache/pip - - venv/ - -before_script: - - python -V # Print out python version for debugging - - pip install virtualenv - - virtualenv venv - - source venv/bin/activate - -test: - script: - - pip install flake8 - - python setup.py -v test - - flake8 epubgrep.py setup.py tests/__init__.py tests/test_epugrep.py - -run: - script: - - python setup.py bdist_wheel - # run the command here - - ls -l dist/ - artifacts: - paths: - - dist/*.whl - -# pages: -# script: -# - pip install sphinx sphinx-rtd-theme -# - cd doc ; make html -# - mv build/html/ ../public/ -# artifacts: -# paths: -# - public -# only: -# - master diff --git a/pyproject.toml b/pyproject.toml index 547984d..88a9480 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,28 +1,38 @@ -[build-system] -requires = ["setuptools>=61.2"] -build-backend = "setuptools.build_meta" - [project] name = "epubgrep" -version = "0.9.0" -authors = [{name = "Matěj Cepl", email = "mcepl@cepl.eu"}] description = "Grep through EPub files" +version = "0.10.0" +authors = [ + { name = "Matěj Cepl", email = "mcepl@cepl.eu" } +] +license = { file="LICENSE" } +readme = "README.md" +dependencies = [ + "epub_meta", +] classifiers = [ - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.7", "Environment :: Console", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "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 :: Software Development :: Libraries :: Python Modules", ] -urls = {Homepage = "https://git.cepl.eu/cgit/epubgrep"} -dependencies = ["epub_meta"] [project.scripts] epubgrep = "epubgrep:main" + +[project.urls] +homepage = "https://git.cepl.eu/cgit/toys/epubgrep/" +repository = "https://git.cepl.eu/git/toys/epubgrep" + +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" -- cgit