auto-pypi-setup


Nameauto-pypi-setup JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/Listen180/autopip
SummaryA Python command line tool to automatically setup and upload your package to PyPi.
upload_time2024-01-28 04:28:56
maintainer
docs_urlNone
authorSen LEI
requires_python
licenseBSD 3-clause
keywords python package pypi shell pip clt cli tools auto
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Auto-PyPi Command Line Tool
===========================


|PyPI Version| |PyPI Platform| |PyPI License| |PyPI Doc| 


|Mac OS| |Linux|




Why Should I Use This?
**********************

This is a Python command line tool to automatically setup your (updated version) python package onto PyPi. 

As you may know, PyPi indexes (both real and test index) do not allow you to reuse package name (considering version numner), which means you can not upload your package with the same package name together with an identical version numner. 

In another word, you have to change the version number in your ``setup.py`` file before each time you want to upload your modified package. What's more, you also need to remove the old build and egg folder before you run the setup tools. 

You'll find it not convenient at all if you are uploading and testing your package frequently. Even if you are not going to upload and test frequently, each time you remove the previous setup related folders comes with some risks and is still time-consuming. 

By using this command line tool, you will be all set after a single command ``autopypi``. The only thing you need to care about now is the package version number. 

You could chage the version number in the ``setup.py`` file as usual, but I highly recommend you to change a little bit in your ``setup.py`` file making the version number as an input value from the terminal: 

.. code-block:: python

   version_number = input("Input the new version number you are going to use: ")

   setuptools.setup(
       name="auto_pypi",
       version=version_number,
       author="Sen LEI",
       ...)


By doing this, you just need to run the command ``autopypi``, and specify a version number later when it pops up. 



Usage
*****


Use As A Command Line Tool
--------------------------


- Just run ``autopypi`` in terminal, providing *your package's location* and *new version number* later: 

.. code-block:: shell

   Usage: autopypi [OPTIONS] PKG_DIR

     Python command line tool to setup Python package automatically.  
     Example:      $ autopypi your-package-root-directory -r
     Example:      $ cd your-package-root-directory
                   $ autopypi . -r

   Options:
     -r, --real          Use the real PyPi index (instead of test PyPi).
     --help              Show this message and exit.


- Then you'll be asked to input the username and passcode of PyPi / Test-PyPi as usual. 




Documentation
*************

Check out the latest ``auto_pypi`` documentation at `Read the Docs <https://auto_pypi.readthedocs.io/en/latest/>`_


|

|



-----------------------------------

|Sen LEI Website| |Sen LEI Github|







.. |PyPI Platform| image:: https://img.shields.io/pypi/pyversions/auto_pypi.svg?logo=python&logoColor=white
   :target: https://pypi.python.org/pypi/auto_pypi

.. |PyPI License| image:: https://img.shields.io/github/license/Listen180/auto_pypi.svg
   :target: https://github.com/Listen180/auto_pypi/blob/master/LICENSE

.. |PyPI Version| image:: https://img.shields.io/pypi/v/auto_pypi.svg
   :target: https://pypi.python.org/pypi/auto_pypi

.. |PyPI download| image:: https://img.shields.io/pypi/dm/auto_pypi.svg
   :target: https://pypi.python.org/pypi/auto_pypi

.. |PyPI Doc| image:: https://readthedocs.org/projects/auto_pypi/badge
   :target: https://auto_pypi.readthedocs.io/en/latest/



.. |Sen LEI Github| image:: https://img.shields.io/badge/Github-Sen%20LEI-orange.svg?logo=github&longCache=true&style=flat&logoColor=white
   :target: https://github.com/Listen180

.. |Sen LEI Website| image:: https://img.shields.io/badge/Author-Sen%20LEI-orange.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANUAAADVCAMAAAD3nkWxAAACglBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9xjI0NAAAA1XRSTlMAAQIDBAUGBwgJCgsMDg8REhQXGBkaGxwdHh8gIiMkJSYnKCkqKywtLi8wMTI0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFJTVVZZWltcXV5fYGFkZWZnaGlqb3BxcnN0dXZ3ent8fYCBgoOFh4iKi4yNkJGSk5SVlpeZmpydnp+hoqOmp6ipqqusra6v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O+dD6VKj3N0vy+CSncPcixnHoBCj0Q5jjVQZ1mU44muhDJlgxzfmTKoMuUEg/gtE5o0M5hmKFLKoBZDjVAHgzoUghblDG4JtNjD4NqgRHaEwUWyoMMqulgNHXbTRSt06KGLcAgaZNHNDGiwiG5uhAZVdFMFDR6km1XQoJZuapW0Kzf3T8i6Wg4NSuhmHjTIoJtpUOEkXfwCHZro4nXoUOO4SqFDej+DO50OJXYxuCZocVWUgc2FGh8wqD1woOX88sClUGQDg2mAJikHGERHClTJ7eH4ui+CMkW9Dv9t6HFLP8fWtxgKzfuLY/nzWqiUvddh70qP5HWnRyupJ5Og18VvRHi2yM4c6DZrc/fI93zzJdAv5daNhweHE9KhjeXJmCgScxdULK1YkJsIY4wxxhhjjDHGGGOMMcYYY4wxxhhjjBnhP6hK+cPRlZTHAAAAAElFTkSuQmCC&longCache=true&style=flat&logoColor=white
   :target: https://listen180.github.io/LEI-Sen/



.. |org_repo| image:: https://img.shields.io/badge/-repository-green.svg?logo=github&longCache=true&style=flat&logoColor=white
   :target: https://github.com/auto_pypi/




.. |Mac OS| image:: https://img.shields.io/badge/Mac%20OS-green.svg?logo=apple&longCache=true&style=flat&logoColor=white

.. |Linux| image:: https://img.shields.io/badge/Linux-green.svg?logo=linux&longCache=true&style=flat&logoColor=white

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Listen180/autopip",
    "name": "auto-pypi-setup",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,package,pypi,shell,pip,clt,cli,tools,auto",
    "author": "Sen LEI",
    "author_email": "sen.lei@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/07/11/198b57bc2fecce6b78302bbdc15c652cac3b27eb8b071240ad2fb442ef10/auto-pypi-setup-1.0.0.tar.gz",
    "platform": null,
    "description": "Auto-PyPi Command Line Tool\n===========================\n\n\n|PyPI Version| |PyPI Platform| |PyPI License| |PyPI Doc| \n\n\n|Mac OS| |Linux|\n\n\n\n\nWhy Should I Use This?\n**********************\n\nThis is a Python command line tool to automatically setup your (updated version) python package onto PyPi. \n\nAs you may know, PyPi indexes (both real and test index) do not allow you to reuse package name (considering version numner), which means you can not upload your package with the same package name together with an identical version numner. \n\nIn another word, you have to change the version number in your ``setup.py`` file before each time you want to upload your modified package. What's more, you also need to remove the old build and egg folder before you run the setup tools. \n\nYou'll find it not convenient at all if you are uploading and testing your package frequently. Even if you are not going to upload and test frequently, each time you remove the previous setup related folders comes with some risks and is still time-consuming. \n\nBy using this command line tool, you will be all set after a single command ``autopypi``. The only thing you need to care about now is the package version number. \n\nYou could chage the version number in the ``setup.py`` file as usual, but I highly recommend you to change a little bit in your ``setup.py`` file making the version number as an input value from the terminal: \n\n.. code-block:: python\n\n   version_number = input(\"Input the new version number you are going to use: \")\n\n   setuptools.setup(\n       name=\"auto_pypi\",\n       version=version_number,\n       author=\"Sen LEI\",\n       ...)\n\n\nBy doing this, you just need to run the command ``autopypi``, and specify a version number later when it pops up. \n\n\n\nUsage\n*****\n\n\nUse As A Command Line Tool\n--------------------------\n\n\n- Just run ``autopypi`` in terminal, providing *your package's location* and *new version number* later: \n\n.. code-block:: shell\n\n   Usage: autopypi [OPTIONS] PKG_DIR\n\n     Python command line tool to setup Python package automatically.  \n     Example:      $ autopypi your-package-root-directory -r\n     Example:      $ cd your-package-root-directory\n                   $ autopypi . -r\n\n   Options:\n     -r, --real          Use the real PyPi index (instead of test PyPi).\n     --help              Show this message and exit.\n\n\n- Then you'll be asked to input the username and passcode of PyPi / Test-PyPi as usual. \n\n\n\n\nDocumentation\n*************\n\nCheck out the latest ``auto_pypi`` documentation at `Read the Docs <https://auto_pypi.readthedocs.io/en/latest/>`_\n\n\n|\n\n|\n\n\n\n-----------------------------------\n\n|Sen LEI Website| |Sen LEI Github|\n\n\n\n\n\n\n\n.. |PyPI Platform| image:: https://img.shields.io/pypi/pyversions/auto_pypi.svg?logo=python&logoColor=white\n   :target: https://pypi.python.org/pypi/auto_pypi\n\n.. |PyPI License| image:: https://img.shields.io/github/license/Listen180/auto_pypi.svg\n   :target: https://github.com/Listen180/auto_pypi/blob/master/LICENSE\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/auto_pypi.svg\n   :target: https://pypi.python.org/pypi/auto_pypi\n\n.. |PyPI download| image:: https://img.shields.io/pypi/dm/auto_pypi.svg\n   :target: https://pypi.python.org/pypi/auto_pypi\n\n.. |PyPI Doc| image:: https://readthedocs.org/projects/auto_pypi/badge\n   :target: https://auto_pypi.readthedocs.io/en/latest/\n\n\n\n.. |Sen LEI Github| image:: https://img.shields.io/badge/Github-Sen%20LEI-orange.svg?logo=github&longCache=true&style=flat&logoColor=white\n   :target: https://github.com/Listen180\n\n.. |Sen LEI Website| image:: https://img.shields.io/badge/Author-Sen%20LEI-orange.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANUAAADVCAMAAAD3nkWxAAACglBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9xjI0NAAAA1XRSTlMAAQIDBAUGBwgJCgsMDg8REhQXGBkaGxwdHh8gIiMkJSYnKCkqKywtLi8wMTI0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFJTVVZZWltcXV5fYGFkZWZnaGlqb3BxcnN0dXZ3ent8fYCBgoOFh4iKi4yNkJGSk5SVlpeZmpydnp+hoqOmp6ipqqusra6vsbKztLW2ubu8vsDDxMXGx8jJy8zNzs/Q0dLT1NXW19jZ3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7yOdf5AAAEF0lEQVR42u3da1fVVRAG8Ocgl8BCBQtJir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NDGiwiG5uhAZVdFMFDR6km1XQoJZuapW0Kzf3T8i6Wg4NSuhmHjTIoJtpUOEkXfwCHZro4nXoUOO4SqFDej+DO50OJXYxuCZocVWUgc2FGh8wqD1woOX88sClUGQDg2mAJikHGERHClTJ7eH4ui+CMkW9Dv9t6HFLP8fWtxgKzfuLY/nzWqiUvddh70qP5HWnRyupJ5Og18VvRHi2yM4c6DZrc/fI93zzJdAv5daNhweHE9KhjeXJmCgScxdULK1YkJsIY4wxxhhjjDHGGGOMMcYYY4wxxhhjjBnhP6hK+cPRlZTHAAAAAElFTkSuQmCC&longCache=true&style=flat&logoColor=white\n   :target: https://listen180.github.io/LEI-Sen/\n\n\n\n.. |org_repo| image:: https://img.shields.io/badge/-repository-green.svg?logo=github&longCache=true&style=flat&logoColor=white\n   :target: https://github.com/auto_pypi/\n\n\n\n\n.. |Mac OS| image:: https://img.shields.io/badge/Mac%20OS-green.svg?logo=apple&longCache=true&style=flat&logoColor=white\n\n.. |Linux| image:: https://img.shields.io/badge/Linux-green.svg?logo=linux&longCache=true&style=flat&logoColor=white\n",
    "bugtrack_url": null,
    "license": "BSD 3-clause",
    "summary": "A Python command line tool to automatically setup and upload your package to PyPi.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Listen180/autopip"
    },
    "split_keywords": [
        "python",
        "package",
        "pypi",
        "shell",
        "pip",
        "clt",
        "cli",
        "tools",
        "auto"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f824f7e060d8db6daa45c8859591239f50119b0b9ca4e55f700e45838ba89dbc",
                "md5": "552b1bb8b9510e1319ad21fa4e1d3d1a",
                "sha256": "7b7f3e160cb49e2004b9bc6f9a1b443e57bddf927eb0d5acb8e74eb6b638cb80"
            },
            "downloads": -1,
            "filename": "auto_pypi_setup-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "552b1bb8b9510e1319ad21fa4e1d3d1a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8047,
            "upload_time": "2024-01-28T04:28:54",
            "upload_time_iso_8601": "2024-01-28T04:28:54.921890Z",
            "url": "https://files.pythonhosted.org/packages/f8/24/f7e060d8db6daa45c8859591239f50119b0b9ca4e55f700e45838ba89dbc/auto_pypi_setup-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0711198b57bc2fecce6b78302bbdc15c652cac3b27eb8b071240ad2fb442ef10",
                "md5": "3fb06fcdfb31bb325fcdfc3d57dd4697",
                "sha256": "a5b7374dd90a05a4de5e1f3906d3fb888e6e35263b1cb079b0bfdba606d3846c"
            },
            "downloads": -1,
            "filename": "auto-pypi-setup-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3fb06fcdfb31bb325fcdfc3d57dd4697",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7675,
            "upload_time": "2024-01-28T04:28:56",
            "upload_time_iso_8601": "2024-01-28T04:28:56.823253Z",
            "url": "https://files.pythonhosted.org/packages/07/11/198b57bc2fecce6b78302bbdc15c652cac3b27eb8b071240ad2fb442ef10/auto-pypi-setup-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-28 04:28:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Listen180",
    "github_project": "autopip",
    "github_not_found": true,
    "lcname": "auto-pypi-setup"
}
        
Elapsed time: 0.17599s