Browse Source

explicitly install bump2version

Steven Silvester 6 years ago
parent
commit
3d8b67f64d
2 changed files with 5 additions and 1 deletions
  1. 5 0
      buildutils/src/bumpversion.ts
  2. 0 1
      setup.py

+ 5 - 0
buildutils/src/bumpversion.ts

@@ -12,12 +12,17 @@ commander
   .option('--dry-run', 'Dry run')
   .arguments('<version>')
   .action((v: any, opts: any) => {
+    // Make sure we have a valid version spec.
     const options = ['major', 'minor', 'patch', 'release', 'build'];
     if (options.indexOf(v) === -1) {
       console.error('Version type must be one of:', options);
       process.exit(1);
     }
 
+    // Ensure bump2version is installed (active fork of bumpversion).
+    utils.run('python -m pip install -y bump2version');
+
+    // Handle dry runs.
     if (opts.dryRun) {
       utils.run(`bumpversion --dry-run --verbose ${v}`);
       return;

+ 0 - 1
setup.py

@@ -153,7 +153,6 @@ setup_args['extras_require'] = {
 
 setup_args['include_package_data'] = True
 setup_args['python_requires'] = '>=3.5'
-setup_args['setup_requires'] = ['bump2version']
 
 # Force entrypoints with setuptools (needed for Windows, unconditional
 # because of wheels)