Skip to content

Commit

Permalink
Add invalid classifier for non open source license to avoid upload to…
Browse files Browse the repository at this point in the history
… pypi
  • Loading branch information
veit committed Mar 18, 2019
1 parent e1a4dd1 commit f4fff8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion {{cookiecutter.project_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
'BSD license': 'License :: OSI Approved :: BSD License',
'ISC license': 'License :: OSI Approved :: ISC License (ISCL)',
'Apache Software License 2.0': 'License :: OSI Approved :: Apache Software License',
'GNU General Public License v3': 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'
'GNU General Public License v3': 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Other/Proprietary License': 'License :: Other/Proprietary License'
} %}

setup(
Expand All @@ -33,6 +34,9 @@
'Intended Audience :: Developers',
{%- if cookiecutter.license in license_classifiers %}
'{{ license_classifiers[cookiecutter.license] }}',
{%- endif %}
{%- if cookiecutter.license == 'Other/Proprietary License' %}
'Private :: Do Not Upload',
{%- endif %}
'Natural Language :: English',
"Programming Language :: Python :: 2",
Expand Down

0 comments on commit f4fff8e

Please sign in to comment.