Giter Club home page Giter Club logo

log4py's Introduction

log4py

python日志简单实现

主要用于pypi学习

pypi仓库搭建

基于nexus3

  1. 创建pypi-hosted仓库
    hosted仓库用于存储私有模块
  2. 创建pypi-proxy仓库

    代理地址不要加simple proxy仓库用于代理外部仓库

  3. 创建pypi-group仓库
    应该包括hosted和proxy,主要用于对外统一暴露

    可以配置到pip.conf中,后边需要加simple

  4. 本地用户目录下增加~/.pypirc文件
    内容示范:
    [distutils]
    index-servers =
        pypi
     
    [pypi]
    repository:https://pypi.python.org/pypi
    username:your_username
    password:your_password
    

    pypi为自定义上传服务器id类似mavensetting.xml中的server节点,可以在index-servers的值后追加,直接换行即可,无需分割符号

  5. 客户端增加~/.pip/pip.conf文件
    用于配置私服地址,index-url直接写group仓库地址加simple结尾即可
    [global] 
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    [install]
    trusted-host = https://pypi.tuna.tsinghua.edu.cn 
    

发布

参考官方文档

  1. 安装发布工具
    python -m pip install setuptools wheel twine
    
  2. 构建
    python setup.py sdist bdist_wheel
    
  3. 上传
    twine upload -r pypi dist/* 
    

    -r即指明服务器id,可以是.pypirc下的任一可用地址,即可发布到远程仓库

安装

  1. 客户端创建~/.pip/pip.conf
  2. 安装
    pip install xxx
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.