警告
本文最后更新于 2021-06-08,文中内容可能已过时。
项目结构
1
2
3
4
5
6
7
8
9
10
|
├── readme.md
├── wepy
│ ├── ch
│ ├── __init__.py
│ ├── __pycache__
│ ├── requirements.txt
│ ├── setup.py
│ ├── utils
│ ├── __version__.py
│ └── wechat
|
我们的git项目叫做 wepy
,里面的代码放在了 wepy
这个目录,使用以下命令安装
1
2
3
4
5
6
|
git clone git@192.168.1.171:lfang/wepy.git
cd wepy
~/anaconda3/bin/python3 wepy/setup.py install
from wepy.utils.test import hi
hi()
|
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# -*- coding: utf-8 -*-
# @Author: “williamlfang”
# @Date: 2021-06-08 11:11:16
# @Last Modified by: “williamlfang”
# @Last Modified time: 2021-06-08 11:14:11
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# from distutils.core import setup
import setuptools
from setuptools import setup
#with open("README.md", "r") as fh:
# long_description = fh.read()
with open('./wepy/requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name = "wepy",
version = "0.0.1",
author = "william",
author_email = "william.lian.fang@gmail.com",
url = "git@192.168.1.171:lfang/wepy.git",
description = "a python package for WuyaCapital",
install_requires=requirements,
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
packages = setuptools.find_packages(),
py_modules = [
"wepy.wechat",
"wepy.test",
]
)
|
安装步骤
1
2
3
4
5
6
|
git clone git@192.168.1.171:lfang/wepy.git
cd wepy
~/anaconda3/bin/python3 wepy/setup.py install
from wepy.utils.test import hi
hi()
|