title: how to run a script using pyproject.toml settings and poetry?
body: <ol>
  <li>I am using poetry to create .whl files. </li>
  <li>I have an ftp sever runing on a remote host. </li>
  <li>I wrote a python script (<code>log_revision.py</code>) which save in a database the git commit, few more parameters and in the end send the the .whl(that poetry created) to the remote server ( each .whl in a different path in the server, the path is save in the db) .</li>
  </ol>
  
  <p>At the moment I run the script manually after each time I run the <code>poetry build</code> commend.
  I know the <code>pyproject.toml</code> has the   <code>[tool.poetry.scripts]</code> but i dont get how can i use it to run a python script.</p>
  
  <p>I tried </p>
  
  <pre><code>[tool.poetry.scripts]
  my-script = "my_package_name:log_revision.py
  </code></pre>
  
  <p>and then <code>poetry run my-script</code> but I allways get an error 
  <code>AttributeError: module 'my_package_namen' has no attribute 'log_revision'</code></p>
  
  <p><strong>1. can some one please help me understand how to run to wish commend?</strong></p>
  
  <p>as a short term option(with out git and params) i tried to use the <code>poetry publish -r http://192.168.1.xxx/home/whl -u hello -p world</code> but i get the following error</p>
  
  <pre><code>[RuntimeError]                                 
  Repository http://192.168.1.xxx/home/whl is not defined  
  </code></pre>
  
  <p><strong>2. what am i doing wring and how can i fix it?</strong></p>
  
  <p>would appricate any help, thx!</p>