diff --git a/.gitignore b/.gitignore index d0143b09..e293a5a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.pyc /env/ +/.idea/ +/venv/ +*.egg-info diff --git a/README.md b/README.md index 6502e0a6..f96fdc95 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Next, configure your local environment with virtualenv and install local depende ```bash python3 -m venv env source env/bin/activate -pip install -r dev_requirements.txt +pip install -e '.[dev]' ``` Create a database for the application: diff --git a/dev_requirements.txt b/dev_requirements.txt deleted file mode 100644 index 2b0518b5..00000000 --- a/dev_requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ --r requirements.txt -uwsgi -pycodestyle -ruff -djhtml diff --git a/pgcommitfest/__init__.py b/pgcommitfest/__init__.py index e69de29b..3dc1f76b 100644 --- a/pgcommitfest/__init__.py +++ b/pgcommitfest/__init__.py @@ -0,0 +1 @@ +__version__ = "0.1.0" diff --git a/pyproject.toml b/pyproject.toml index 00d5986f..78fa9ce2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,32 @@ -[tool.ruff] -# line-length = 120 +[project] +name = "pgocmmitfest" +description = "Commitfest app for the PostgreSQL community" +dynamic = ["version"] +readme = "README.md" +license = "PostgreSQL" +dependencies = [ + "django>=4.2,<5.0", + "psycopg2", + "simplejson", + "requests", + "pycryptodomex", +] + +[project.optional-dependencies] +dev = [ + "uwsgi", + "pycodestyle", + "ruff", + "djhtml", +] + +[tool.setuptools.packages.find] +include = ["pgcommitfest*"] -[tool.ruff.format] -# quote-style = "preserve" +[tool.pycodestyle] +statistics = true +ignore = ["E402", "E501", "W503"] +max-line-length = 120 [tool.ruff.lint] extend-select = ["I"] @@ -19,4 +43,4 @@ section-order = [ [tool.ruff.lint.isort.sections] # Group all Django imports into a separate section. -"django" = ["django"] +django = ["django"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index fc12402f..00000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -django>=4.2,<5.0 -psycopg2 -simplejson -requests -pycryptodomex diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index b5a80bc6..00000000 --- a/setup.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[pycodestyle] -statistics=True -ignore=E402,E501,W503 -max-line-length=120