diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-05-16 18:37:24 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-05-16 19:40:45 +0200 |
commit | 88c7582a51eb2fc71a80291fa6dab16476ae55d8 (patch) | |
tree | 26566b27922e7bf5b2ba49356f03d03c89474b4a | |
parent | df2fb6387dc8523a26ef8ec15f80d86b2e1d0921 (diff) | |
download | epubgrep-88c7582a51eb2fc71a80291fa6dab16476ae55d8.tar.gz |
chore: switch from setup.py to pyproject.toml0.10.0
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .gitlab-ci.yml | 48 | ||||
-rw-r--r-- | pyproject.toml | 40 |
3 files changed, 26 insertions, 63 deletions
@@ -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" |