Skip to content

Commit

Permalink
Remove setup.py
Browse files Browse the repository at this point in the history
Modern packaging tools no longer need setup.py and they support
editable installs too.
  • Loading branch information
ssbarnea committed Oct 26, 2021
1 parent c7ae6a2 commit 8f49c9c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ repos:
hooks:
- id: pip-compile
name: pip-compile
entry: pip-compile --no-annotate --output-file=constraints.txt setup.py setup.cfg --extra test --extra yamllint
entry: pip-compile --no-annotate --output-file=constraints.txt setup.cfg --extra test --extra yamllint
language: system
files: ^(setup\.cfg|=constraints\.txt)$
pass_filenames: false
- id: pip-compile-upgrade
name: pip-compile-upgrade
entry: pip-compile -q --upgrade --no-annotate --output-file=constraints.txt setup.py setup.cfg --extra test --extra yamllint
entry: pip-compile -q --upgrade --no-annotate --output-file=constraints.txt setup.cfg --extra test --extra yamllint
language: system
files: ^(setup\.cfg|=constraints\.txt)$
pass_filenames: false
Expand Down
2 changes: 1 addition & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile --extra=test --extra=yamllint --no-annotate --output-file=constraints.txt setup.cfg setup.py
# pip-compile --extra=test --extra=yamllint --no-annotate --output-file=constraints.txt setup.cfg
#
ansi2html==1.6.0
ansible-compat==0.5.0
Expand Down
8 changes: 0 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[aliases]
dists = clean --all sdist bdist_wheel

[metadata]
name = molecule
url = https://github.com/ansible-community/molecule
Expand Down Expand Up @@ -59,11 +56,6 @@ packages = find:
include_package_data = True
zip_safe = False

# These are required during `setup.py` run:
setup_requires =
setuptools_scm >= 1.15.0
setuptools_scm_git_archive >= 1.0

# These are required in actual runtime:
install_requires =
ansible-compat >= 0.5.0
Expand Down
37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

0 comments on commit 8f49c9c

Please sign in to comment.