Python released!!

Source: Internet
Author: User
Ready to publish your own written python1. Create a folder for the module first

mkdir Nester

2. Create a file named "setup.py" in the new folder

In this file contains metadata about the publication. edit this file to add the following code:

From Distutils.core import setupsetup (name = ' Nester ', Version = ' 1.0.0 ', py_modules = [' Nester '], author = ' Luxury ', aut Hor_email = ' [email protected] ', url = ' luxiaorui.duapp.com ', description = ' xxxxxxxxxx ',)
3. Build a publishing file

Python3 setup.py sdist

4. Install the publication to your local python copy

Sudo/usr/local/bin/python3 setup.py Install

The release is ready.

Register PyPI website

http://pypi.python.org/, register a PyPI ID

Uploading code to PyPI python3 setup.py Register

Need to enter username, password, only this time

Python3 setup.py sdist Upload

Python released!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.