Skip to content

Commit

Permalink
build: Remove pip-tools. Add .python-version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 4, 2024
1 parent 1f7fc52 commit ab3f5c8
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 61 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ci:
autoupdate_schedule: quarterly
skip: [pip-compile]
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-comprehensions]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.4
hooks:
- id: pip-compile
name: pip-compile requirements.in
args: [requirements.in, -o, requirements.txt, --no-strip-extras]
- id: pip-compile
name: pip-compile requirements_dev.in
args: [requirements_dev.in, -o, requirements_dev.txt, --no-strip-extras]
files: ^requirements_dev\.(in|txt)$
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "ocdsextensionexplorer"
version = "0.0.0"
license = {text = "BSD"}

[project.entry-points."babel.extractors"]
tag = "extension_explorer.extract:extract_tag"

[tool.isort]
profile = "black"
line_length = 119
14 changes: 2 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile
#
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt --no-strip-extras
-e file:.#egg=ocdsextensionexplorer
# via -r requirements.in
alabaster==0.7.12
Expand Down Expand Up @@ -32,8 +28,6 @@ docutils==0.20.1
# via
# myst-parser
# sphinx
exceptiongroup==1.2.0
# via cattrs
flask==3.0.0
# via
# -r requirements.in
Expand Down Expand Up @@ -151,10 +145,6 @@ sphinxcontrib-serializinghtml==1.1.9
# via sphinx
text-unidecode==1.3
# via python-slugify
tomli==2.0.1
# via mdformat
typing-extensions==4.10.0
# via cattrs
url-normalize==1.4.3
# via requests-cache
urllib3==2.2.2
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
coveralls
flake8
isort
pip-tools
pre-commit
pytest
pytest-cov
pytest-flask
Expand Down
55 changes: 18 additions & 37 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile requirements_dev.in
#
# This file was autogenerated by uv via the following command:
# uv pip compile requirements_dev.in -o requirements_dev.txt --no-strip-extras
-e file:.#egg=ocdsextensionexplorer
# via -r requirements.txt
alabaster==0.7.12
Expand All @@ -26,8 +22,6 @@ blinker==1.7.0
# via
# -r requirements.txt
# flask
build==0.10.0
# via pip-tools
cattrs==23.2.3
# via
# -r requirements.txt
Expand All @@ -36,6 +30,8 @@ certifi==2024.7.4
# via
# -r requirements.txt
# requests
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.1.0
# via
# -r requirements.txt
Expand All @@ -44,13 +40,14 @@ click==8.1.3
# via
# -r requirements.txt
# flask
# pip-tools
coverage[toml]==5.5
# via
# coveralls
# pytest-cov
coveralls==3.0.0
# via -r requirements_dev.in
distlib==0.3.8
# via virtualenv
docopt==0.6.2
# via coveralls
docutils==0.20.1
Expand All @@ -60,11 +57,8 @@ docutils==0.20.1
# sphinx
entrypoints==0.3
# via flake8
exceptiongroup==1.2.0
# via
# -r requirements.txt
# cattrs
# pytest
filelock==3.15.4
# via virtualenv
flake8==3.7.9
# via -r requirements_dev.in
flask==3.0.0
Expand All @@ -79,6 +73,8 @@ flask-env==2.0.0
# via -r requirements.txt
frozen-flask==1.0.1
# via -r requirements.txt
identify==2.6.0
# via pre-commit
idna==3.7
# via
# -r requirements.txt
Expand Down Expand Up @@ -152,6 +148,8 @@ myst-parser==2.0.0
# via
# -r requirements.txt
# ocdsextensionregistry
nodeenv==1.9.1
# via pre-commit
ocds-babel[markdown]==0.3.5
# via
# -r requirements.txt
Expand All @@ -173,17 +171,17 @@ orjson==3.9.15
packaging==23.1
# via
# -r requirements.txt
# build
# pytest
# sphinx
pip-tools==7.3.0
# via -r requirements_dev.in
platformdirs==4.2.0
# via
# -r requirements.txt
# requests-cache
# virtualenv
pluggy==0.13.1
# via pytest
pre-commit==3.8.0
# via -r requirements_dev.in
pycodestyle==2.5.0
# via flake8
pyflakes==2.1.1
Expand All @@ -192,8 +190,6 @@ pygments==2.15.1
# via
# -r requirements.txt
# sphinx
pyproject-hooks==1.0.0
# via build
pytest==7.2.0
# via
# -r requirements_dev.in
Expand All @@ -213,6 +209,7 @@ pyyaml==6.0.1
# via
# -r requirements.txt
# myst-parser
# pre-commit
requests==2.32.2
# via
# -r requirements.txt
Expand Down Expand Up @@ -270,18 +267,6 @@ text-unidecode==1.3
# python-slugify
toml==0.10.2
# via coverage
tomli==2.0.1
# via
# -r requirements.txt
# build
# mdformat
# pip-tools
# pyproject-hooks
# pytest
typing-extensions==4.10.0
# via
# -r requirements.txt
# cattrs
url-normalize==1.4.3
# via
# -r requirements.txt
Expand All @@ -291,14 +276,10 @@ urllib3==2.2.2
# -r requirements.txt
# requests
# requests-cache
virtualenv==20.26.3
# via pre-commit
werkzeug==3.0.3
# via
# -r requirements.txt
# flask
# pytest-flask
wheel==0.38.4
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
14 changes: 3 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[metadata]
name = ocdsextensionexplorer
version = 0.0.0
license = BSD

[options]
packages = find:

[options.entry_points]
babel.extractors =
tag = extension_explorer.extract:extract_tag
[flake8]
max-line-length = 119
extend-ignore = E203

0 comments on commit ab3f5c8

Please sign in to comment.