Patchwork D10184: pyproject: add config file

login
register
mail settings
Submitter phabricator
Date March 12, 2021, 6:20 p.m.
Message ID <differential-rev-PHID-DREV-5njd4e7ng3bdyk3uujrf-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48499/
State Superseded
Headers show

Comments

phabricator - March 12, 2021, 6:20 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.
  
  This was previously D9833 <https://phab.mercurial-scm.org/D9833>, but was rolled back due to test
  breakage. nbjoerg thinks that breakage is now resolved, so we're
  trying again.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -70,6 +70,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"