Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Version Control

    github-distutils 0.1.1

    Download button

    No screenshots available
    Downloads: 155  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Hong MinHee | More programs
    Public Domain / FREE
    June 20th, 2012, 17:55 GMT [view history]
    ROOT / Programming / Version Control

     Read user reviews (0)  Refer to a friend  Subscribe

    github-distutils description

    Distribute/setuptools/distutils command for GitHub

    github-distutils is a tool that provides distribute/setuptools/distutils commands for GitHub. You can use GitHub downloads instead of PyPI downloads for release.

    To use this, follow the instruction.

    Instruction

    First of all your software must be packaged within the standard distribution way: use distutils, Distribute or setuptools. This package contains an extension command for that.

    Then, add this package into setup_requires parameter of your setup() configuration (of setup.py script):

    setup(name='YourPackageName',
     version='1.2.3',
     ...,
     setup_requires=['github-distutils >= 0.1.0'])


    Now there will be github_upload command for your setup.py:

     python setup.py github_upload --help
    Common commands: (see '--help-commands' for more)

    ...

    Options for 'github_upload' command:
     --repository (-R) GitHub repository name e.g. user/reponame
     --username (-u) GitHub username
     --password (-p) GitHub password

    ...

    If -u/--username and -p/--password are not present, it will shows the prompt. -R/--repository is required.

    Upload

    Upload is very easy:

     python setup.py sdist github_upload -R user/reponame register

    By explained:

    sdist
     Makes the source distribution file. If your package name is YourPackageName and its version is 1.2.3, and then its file name becomes YourPackageName-1.2.3.tar.gz.
    github_upload -R user/reponame
     Uploads the built source distribution file into your GitHub repository. It does not mean that it will be version-controlled, but it will be simply uploaded to its downloads page.
    register
     Using the GitHub download URL registers the package of this version into PyPI. The URL of PyPI page will be http://pypi.python.org/YourPackageName/1.2.3

    Defaulting options

    You can make default values for these options by specifying in the setup.cfg configuration file. For example, if you want to default --repository, make setup.cfg file like (hyphens becomes underscores):

    [upload]
    repository = user/reponame


    You can make a shorthand alias as well:

    [aliases]
    release = sdist github_upload register


    You can checkout the source code from its GitHub repository:

     git clone git://github.com/dahlia/github-distutils.git

    If you found a bug, please report it to the issue tracker.

    For Bitbucket users

    Use bitbucket-distutils which is a package by the same author if you are using Bitbucket instead of GitHub.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Allow upper cases for GitHub repository names. [#1 by Xavier Barbosa]
    · Windows compatibility: fixed UnicodeDecodeError for uploads.

      


    TAGS:

    GitHub distutils | GitHub setuptools | GitHub distribute | GitHub | Python | distutils

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM