Skip to content

Commit 7ea5f28

Browse files
authored
Merge pull request #36 from mflink3012/master
Added setup.py for easy install with pip
2 parents c2f4a55 + 37421a9 commit 7ea5f28

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,24 @@ Also, architecture makes its integration very easy and the source code, **MIT li
145145
<a name="install"></a>
146146
# :electric_plug: &nbsp;Install
147147

148-
- **Solution 1**, clone the [GitHub repository](https://github.com/jczic/MicroWebSrv2.git) from the terminal:
149-
```sh
150-
> git clone https://github.com/jczic/MicroWebSrv2.git
151-
```
148+
- **Solution 1** Run:
149+
150+
```sh
151+
pip3 install --user git+https://github.com/jczic/MicroWebSrv2.git#egg=MicroWebSrv2
152+
```
153+
154+
- **Solution 2**, clone the [GitHub repository](https://github.com/jczic/MicroWebSrv2.git) from the terminal:
155+
156+
```sh
157+
git clone https://github.com/jczic/MicroWebSrv2.git
158+
```
159+
and run:
160+
161+
```sh
162+
cd MicroWebSrv2 && pip install --user .
163+
```
152164

153-
- **Solution 2**, download the [ZIP file](https://github.com/jczic/MicroWebSrv2/archive/master.zip) and extract it to a folder of your choice.
165+
- **Solution 3**, download the [ZIP file](https://github.com/jczic/MicroWebSrv2/archive/master.zip) and extract it to a folder of your choice.
154166

155167
---
156168

setup.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python
2+
3+
import setuptools
4+
5+
setuptools.setup(
6+
name='MicroWebSrv2',
7+
version='master',
8+
description='Embedded webserver for MicroPython and CPython',
9+
long_description='MicroWebSrv2 is the new powerful embedded Web Server for MicroPython and CPython that supports route handlers, modules like WebSockets or PyhtmlTemplate and a lot of simultaneous requests (in thousands!).',
10+
author='Jean-Christophe Bos',
11+
author_email='[email protected]',
12+
url='https://github.com/jczic/MicroWebSrv2',
13+
download_url='https://github.com/jczic/MicroWebSrv2/archive/master.zip',
14+
packages=[
15+
'MicroWebSrv2',
16+
'MicroWebSrv2/libs',
17+
'MicroWebSrv2/mods',
18+
],
19+
classifiers=[
20+
'Topic :: Software Development :: Embedded Systems',
21+
'Environment :: Web Environment',
22+
'Topic :: Internet :: WWW/HTTP'
23+
],
24+
)

0 commit comments

Comments
 (0)