Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced 'python_versions' option #10

Merged
merged 1 commit into from
Mar 26, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ <h2>Configure your what you are looking for</h2>
<label for="diecutter_resource" class="control-label">Resource</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on" id="diecutter_prefix">/diecutter/python-startproject</span>
<input id="diecutter_resource" name="resource" type="text" value="master/template/" />
<span class="add-on" id="diecutter_prefix"></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we might not need the diecutter_prefix anymore?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes maybe. I moved the prefix to "diecutter_resource" because I had to change it in order to target my local diecutter server (http://localhost:8106/python-startproject/template/).
I think we may fix it (later) with additional stories:

  • a template for diecutter "template UI" (i.e. make it easy to start a new template with its HTML form)
  • shared libraries (JS, CSS) for such a "template UI"

<input id="diecutter_resource" name="resource" type="text" value="/diecutter/python-startproject/master/template/" />
</div>
<span class="help-inline">
Path to resource relative to diecutter's service URL + "/".
Expand Down Expand Up @@ -90,6 +90,25 @@ <h2>Configure your project</h2>
</div>
</div>
</fieldset>
<fieldset>
<legend>Python version</legend>
<div class="control-group">
<label for="sphinx_python_versions" class="control-label">Python version(s)</label>
<div class="controls">
<select id="sphinx_python_versions" name="python_versions" multiple>
<option value="2.5">2.5</option>
<option value="2.6">2.6</option>
<option value="2.7" selected>2.7</option>
<option value="3.1">3.0</option>
<option value="3.1">3.1</option>
<option value="3.2">3.2</option>
<option value="3.3" selected>3.3</option>
<option value="3.4" selected>3.4</option>
</select>
<span class="help-inline">The Python versions for which you provide support. Typically the ones you want to include in your test suites.</span>
</div>
</div>
</fieldset>
<div>
<a id="sphinx_submit" class="btn btn-primary btn-large">
<span class="icon-circle-arrow-down"> </span>
Expand Down
3 changes: 3 additions & 0 deletions template/+project_name+/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def read_relative_file(filename):
description="{{ description }}",
long_description=README,
classifiers=[
{% for python_version in python_versions -%}
'Programming Language :: Python :: {{ python_version }}',
{% endfor -%}
# Add your classifiers here from
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
],
Expand Down