From da33ec3455e0375c2f6a0cc85e36126640e0b0ef Mon Sep 17 00:00:00 2001 From: Mariatta Wijaya Date: Sat, 16 Mar 2019 12:05:12 -0700 Subject: [PATCH 1/2] Moderninze the pyproj.toml --- .travis.yml | 2 +- cherry_picker/pyproject.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index dbbb54e..53aa044 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ cache: pip before_install: - &install-flit >- - pip install --upgrade flit + pip install --upgrade pip flit .mixtures: - &run-if-tagged diff --git a/cherry_picker/pyproject.toml b/cherry_picker/pyproject.toml index c58dee3..331a980 100644 --- a/cherry_picker/pyproject.toml +++ b/cherry_picker/pyproject.toml @@ -10,7 +10,6 @@ maintainer = "Python Core Developers" maintainer-email = "core-workflow@python.org" home-page = "https://github.com/python/core-workflow/tree/master/cherry_picker" requires = ["click>=6.0", "gidgethub", "requests", "toml"] -dev-requires = ["pytest~=3.0.7"] description-file = "readme.rst" classifiers = ["Programming Language :: Python :: 3.6", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License"] requires-python = ">=3.6" @@ -18,3 +17,6 @@ requires-python = ">=3.6" [tool.flit.scripts] cherry_picker = "cherry_picker.cherry_picker:cherry_pick_cli" + +[tool.flit.metadata.requires-extra] +test = ["pytest"] From 526d52f6691b30297c07eeed8387e795716e62da Mon Sep 17 00:00:00 2001 From: Mariatta Date: Sat, 16 Mar 2019 12:07:39 -0700 Subject: [PATCH 2/2] pytest is for dev --- cherry_picker/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cherry_picker/pyproject.toml b/cherry_picker/pyproject.toml index 331a980..0bb7ece 100644 --- a/cherry_picker/pyproject.toml +++ b/cherry_picker/pyproject.toml @@ -19,4 +19,4 @@ requires-python = ">=3.6" cherry_picker = "cherry_picker.cherry_picker:cherry_pick_cli" [tool.flit.metadata.requires-extra] -test = ["pytest"] +dev = ["pytest"]