Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply upstream's PR #250 to "development" branch #1

Merged
merged 6 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ before_install:
# Define TZ as some tests rely on timezone
- export TZ=Europe/Brussels
- pip install --quiet pytest==4.4 pytest-cov pytest-xdist chardet
- pip install ".[mysql]"

install:
- python setup.py install --quiet
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ If you have pip, you can automatically download and install from the [PyPI repos
pip install pattern
```

If you wish to use MySQL support, install specifying the optional extra
requirement:
```
pip install pattern[mysql]
```

If none of the above works, you can make Python aware of the module in three ways:
- Put the pattern folder in the same folder as your script.
- Put the pattern folder in the standard location for modules so it is available to all scripts:
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
install_requires = [
"future",
"backports.csv",
"mysqlclient",
"beautifulsoup4",
"lxml",
"feedparser",
Expand All @@ -149,5 +148,8 @@
"cherrypy" if sys.version >= "3" else "cherrypy==17.4.1",
"requests"
],
extras_require = {
'mysql': ["mysqlclient"],
},
zip_safe = False
)