diff --git a/.envrc b/.envrc new file mode 100644 index 0000000000000000000000000000000000000000..5b357396171a88296339855071786ddf5b2fc363 --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +PYTHON_VERSION="$(python3 -c 'from sys import version_info as v; print(f"{v[0]}.{v[1]}")')" +export PYTHONPATH="$PWD/__pypackages__/$PYTHON_VERSION:${PYTHONPATH:-}" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c644211c85213268ba9d6e5ab58c4a9fae7fa97..069664e94b0c01714241657bd22ab991ccb9a7a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,8 +71,6 @@ repos: args: - |- --max-line-length=79 - - |- - --with-tool=pyroma - |- --with-tool=bandit - |- @@ -89,7 +87,6 @@ repos: --no-autodetect additional_dependencies: - bandit - - pyroma - repo: https://gitlab.com/pycqa/flake8.git rev: 3.9.2 diff --git a/pyproject.toml b/pyproject.toml index cf9616158f0dc69cbf5378c0d841b5367c44175a..26a9f29cc7ddce8113c982b4cb9219703ccd80f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools", "wheel"] -build-backend = "setuptools:build_meta" +requires = ["setuptools>=40.9.0", "wheel"] +build-backend = "setuptools.build_meta" [project] name = "transmission_feeder" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..1abbd068c1f3c9b52e2159f39f39b7488f3064c5 --- /dev/null +++ b/setup.py @@ -0,0 +1,4 @@ +import setuptools + +if __name__ == "__main__": + setuptools.setup()