# python project deployment & version

**URL:** <https://forum.ansible.com/t/python-project-deployment-version/19226>\
**Category:** Ansible Project\
**Created:** [September 10, 2015, 10:01am UTC](https://forum.ansible.com/t/python-project-deployment-version/19226 "2015-09-10T10:01:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![profhase85](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@profhase85](https://forum.ansible.com/u/profhase85)\
**Post date:** [September 10, 2015, 10:01am UTC](https://forum.ansible.com/t/python-project-deployment-version/19226/1 "2015-09-10T10:01:18Z")

</div>

As we do not have any pypi server here, I usually deliver the following deploy.yml with every python application I write:

`

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 10, 2015, 2:54pm UTC](https://forum.ansible.com/t/python-project-deployment-version/19226/2 "2015-09-10T14:54:28Z")

</div>

does state=latest not work?

---

<div class="post-metadata">

**Author:** ![profhase85](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@profhase85](https://forum.ansible.com/u/profhase85)\
**Post date:** [September 23, 2015, 9:49am UTC](https://forum.ansible.com/t/python-project-deployment-version/19226/3 "2015-09-23T09:49:39Z")

</div>

It would usually, but for the copy task as well as for the `install myapp` task i need to pass the filename to the pip module. setuptools always generates the filename as {{ package }}-{{ version }}.tar.gz

(Sorry for the late answer, had some troubles with google)
