Patchwork D9833: pyproject: add config file

login
register
mail settings
Submitter phabricator
Date Jan. 19, 2021, 6:03 p.m.
Message ID <differential-rev-PHID-DREV-tbjvoldyvsrhntavktj7-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48144/
State Superseded
Headers show

Comments

phabricator - Jan. 19, 2021, 6:03 p.m.
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This will tell pip et al to call our setup.py for the majority of
  packaging concerns, but also gives us a place to put standard config
  stuff like black.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9833

AFFECTED FILES
  pyproject.toml
  tests/test-check-code.t

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-check-code.t b/tests/test-check-code.t
--- a/tests/test-check-code.t
+++ b/tests/test-check-code.t
@@ -69,6 +69,7 @@ 
   hg
   hgeditor
   hgweb.cgi
+  pyproject.toml
   rustfmt.toml
   setup.py
 
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@ 
+[build-system]
+requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta"