diff --git a/README.md b/README.md index 177face0..01f109dc 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,12 @@ Please read the [contributors' guide](https://github.com/jasmine/jasmine/blob/ma For the Jasmine NPM module:
[https://github.com/jasmine/jasmine-npm](https://github.com/jasmine/jasmine-npm). +For the Jasmine browser runner:
+[https://github.com/jasmine/jasmine-browser](https://github.com/jasmine/jasmine-browser). + For the Jasmine Ruby Gem:
[https://github.com/jasmine/jasmine-gem](https://github.com/jasmine/jasmine-gem). -For the Jasmine Python Egg:
-[https://github.com/jasmine/jasmine-py](https://github.com/jasmine/jasmine-py). - For the Jasmine headless browser gulp plugin:
[https://github.com/jasmine/gulp-jasmine-browser](https://github.com/jasmine/gulp-jasmine-browser). diff --git a/lib/jasmine-core/core.py b/lib/jasmine-core/core.py index 226c95d7..f58b57cb 100644 --- a/lib/jasmine-core/core.py +++ b/lib/jasmine-core/core.py @@ -1,4 +1,33 @@ import pkg_resources +import os + +if 'SUPPRESS_JASMINE_DEPRECATION' not in os.environ: + print('DEPRECATION WARNING:\n' + + '\n' + + 'The Jasmine packages for Python are deprecated. There will be no further\n' + + 'releases after the end of the Jasmine 3.x series. We recommend migrating to the\n' + + 'following options:\n' + + '\n' + + '* jasmine-browser-runner (,\n' + + ' `npm install jasmine-browser-runner`) to run specs in browsers, including\n' + + ' headless Chrome and Saucelabs. This is the most direct replacement for the\n' + + ' jasmine server` and `jasmine ci` commands provided by the `jasmine` Python\n' + + ' package.\n' + + '* The jasmine npm package (,\n' + + ' `npm install jasmine`) to run specs under Node.js.\n' + + '* The standalone distribution from the latest Jasmine release\n' + + ' to run specs in browsers with\n' + + ' no additional tools.\n' + + '* The jasmine-core npm package (`npm install jasmine-core`) if all you need is\n' + + ' the Jasmine assets. This is the direct equivalent of the jasmine-core Python\n' + + ' package.\n' + + '\n' + + 'Except for the standalone distribution, all of the above are distributed through\n' + + 'npm.\n' + + '\n' + + 'To prevent this message from appearing, set the SUPPRESS_JASMINE_DEPRECATION\n' + + 'environment variable.\n') + try: from collections import OrderedDict diff --git a/setup.py b/setup.py index d258ccfe..eab51064 100644 --- a/setup.py +++ b/setup.py @@ -4,15 +4,41 @@ import json with open('package.json') as packageFile: version = json.load(packageFile)['version'] +short_description=('Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on '+ + 'browsers, DOM, or any JavaScript framework. Thus it\'s suited for websites, '+ + 'Node.js (http://nodejs.org) projects, or anywhere that JavaScript can run.') +deprecation=('The Jasmine packages for Python are deprecated. There will be no further\n' + + 'releases after the end of the Jasmine 3.x series. We recommend migrating to the\n' + + 'following options:\n' + + '\n' + + '* jasmine-browser-runner (,\n' + + ' `npm install jasmine-browser-runner`) to run specs in browsers, including\n' + + ' headless Chrome and Saucelabs. This is the most direct replacement for the\n' + + ' jasmine server` and `jasmine ci` commands provided by the `jasmine` Python\n' + + ' package.\n' + + '* The jasmine npm package (,\n' + + ' `npm install jasmine`) to run specs under Node.js.\n' + + '* The standalone distribution from the latest Jasmine release\n' + + ' to run specs in browsers with\n' + + ' no additional tools.\n' + + '* The jasmine-core npm package (`npm install jasmine-core`) if all you need is\n' + + ' the Jasmine assets. This is the direct equivalent of the jasmine-core Python\n' + + ' package.\n' + + '\n' + + 'Except for the standalone distribution, all of the above are distributed through\n' + 'npm.\n') +long_description = short_description + '\n\n' + deprecation + + setup( name="jasmine-core", version=version, url="http://jasmine.github.io", author="Pivotal Labs", author_email="jasmine-js@googlegroups.com", - description=('Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on '+ - 'browsers, DOM, or any JavaScript framework. Thus it\'s suited for websites, '+ - 'Node.js (http://nodejs.org) projects, or anywhere that JavaScript can run.'), + description=short_description, + long_description=long_description, + long_description_content_type='text/plain', license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable',