Skip to content

Commit f9af632

Browse files
committed
setuptools: Structure module to be compliant with setuptools installation routine
1 parent ee1030e commit f9af632

25 files changed

+112
-32
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@ __pycache__
66
.vscode/
77
.idea/
88
venv/
9+
.venv/
10+
.env/
911

1012
appconfig*
13+
14+
# Python build artifacts
15+
*.egg-info/
16+
build/
17+
dist/

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ source venv/bin/activate
1010
```
1111

1212
And install the dependencies
13+
1314
```sh
1415
pip install -r requirements.txt
1516
```
@@ -18,8 +19,8 @@ pip install -r requirements.txt
1819

1920
You can invoke 3 different parts of the script
2021

21-
```
22+
```sh
2223
python -m main smartglass
2324
python -m main xhome
2425
python -m main xcloud
25-
```
26+
```

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ ms_cv
33
pydantic
44
httpx
55
aiortc
6-
construct
6+
construct
7+
dpkt

setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python
2+
3+
from setuptools import setup, find_packages
4+
5+
setup(
6+
name='xcloud',
7+
version='0.1.0',
8+
description='XCloud Gamestreaming library for python',
9+
author='tuxuser',
10+
author_email='noreply@openxbox.org',
11+
url='https://github.com/OpenXbox/xcloud-python',
12+
packages=find_packages(),
13+
entry_points={'console_scripts': ['xcloud-pcap-reader=xcloud.scripts.pcap_reader:main']},
14+
install_requires=[
15+
"ecdsa",
16+
"ms_cv",
17+
"pydantic",
18+
"httpx",
19+
"aiortc",
20+
"construct",
21+
"dpkt"
22+
]
23+
)
File renamed without changes.

auth/models.py renamed to xcloud/auth/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pydantic import BaseModel
22
from typing import Dict, List, Optional
3-
from auth.constants import XalAppId, XalTitleId, XalRedirectUri,\
3+
from .constants import XalAppId, XalTitleId, XalRedirectUri,\
44
XalQueryDisplay, XalDeviceType, XalUserAgents
55

66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import hashlib
88
import struct
99
from datetime import datetime
10-
11-
from auth import filetimes
1210
from ecdsa import SigningKey, NIST256p
1311

12+
from . import filetimes
13+
1414

1515
class RequestSigner:
1616

0 commit comments

Comments
 (0)