File tree Expand file tree Collapse file tree 2 files changed +11
-20
lines changed
Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -48,31 +48,22 @@ def _run(
4848 path = _findPath (_getcwd (), package )
4949
5050 if (
51- (newversion
52- and patch )
53- or (newversion
54- and dev )
55- or (newversion
56- and rc )
57- or (newversion
58- and post )
51+ (newversion and patch )
52+ or (newversion and dev )
53+ or (newversion and rc )
54+ or (newversion and post )
5955 ):
6056 raise ValueError ("Only give --newversion" )
6157
6258 if (dev and patch ) or (dev and rc ) or (dev and post ):
6359 raise ValueError ("Only give --dev" )
6460
6561 if (
66- (create
67- and dev )
68- or (create
69- and patch )
70- or (create
71- and rc )
72- or (create
73- and post )
74- or (create
75- and newversion )
62+ (create and dev )
63+ or (create and patch )
64+ or (create and rc )
65+ or (create and post )
66+ or (create and newversion )
7667 ):
7768 raise ValueError ("Only give --create" )
7869
Original file line number Diff line number Diff line change 1010from subprocess import run
1111from tempfile import TemporaryDirectory
1212
13+ from build import BuildBackendException , ProjectBuilder
14+ from build .env import DefaultIsolatedEnv
1315from twisted .python .filepath import FilePath
1416from twisted .trial .unittest import TestCase
1517
16- from build import BuildBackendException , ProjectBuilder
17- from build .env import DefaultIsolatedEnv
1818from incremental import Version
1919
2020TEST_DIR = FilePath (os .path .abspath (os .path .dirname (__file__ )))
You can’t perform that action at this time.
0 commit comments