Skip to content

Commit 25c57db

Browse files
authored
Merge pull request #20 from LuisAPI/bug-pypi3
Read from absolute path for requirements list in setup script
2 parents c623e4e + cc62afd commit 25c57db

2 files changed

Lines changed: 125 additions & 4 deletions

File tree

.gitignore

Lines changed: 122 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,123 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
db.sqlite3
61+
db.sqlite3-journal
62+
63+
# Flask stuff:
64+
instance/
65+
.webassets-cache
66+
67+
# Scrapy stuff:
68+
.scrapy
69+
70+
# Sphinx documentation
71+
docs/_build/
72+
73+
# PyBuilder
74+
target/
75+
76+
# Jupyter Notebook
77+
.ipynb_checkpoints
78+
79+
# IPython
80+
profile_default/
81+
ipython_config.py
82+
83+
# pyenv
84+
.python-version
85+
86+
# pipenv
87+
Pipfile.lock
88+
89+
# poetry
90+
poetry.lock
91+
92+
# PEP 582; used by python-next
93+
__pypackages__/
94+
95+
# dotenv
196
.env
2-
dev
3-
__pycache__
97+
.env.*
98+
.venv/
99+
venv/
100+
ENV/
101+
env/
102+
env.bak/
103+
venv.bak/
104+
105+
# VS Code
106+
.vscode/
107+
108+
# mypy
109+
.mypy_cache/
110+
.dmypy.json
111+
dmypy.json
112+
113+
# Pyre type checker
114+
.pyre/
115+
116+
# pytype
117+
.pytype/
118+
119+
# Cython debug symbols
120+
cython_debug/
121+
122+
# Development
123+
dev/

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
import os
55

66
def read_requirements():
7-
with open('requirements.txt') as f:
7+
req_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
8+
with open(req_path) as f:
89
return f.read().splitlines()
910

1011
# Load environment variables
1112
load_dotenv()
12-
AUTHOR_EMAIL = os.getenv('AUTHOR_EMAIL')
13+
AUTHOR_EMAIL = os.getenv('AUTHOR_EMAIL', "default@example.com")
1314

1415
setup(
1516
name='YouTubeWikiBot',

0 commit comments

Comments
 (0)