Skip to content

Commit

Permalink
Merge pull request #40 from Morpheus636/main
Browse files Browse the repository at this point in the history
Release V0.1.1
  • Loading branch information
Morpheus636 authored May 15, 2022
2 parents 033ac34 + 802a6db commit aad8bf6
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code_analysis_pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
Expand All @@ -30,7 +30,7 @@ jobs:
run: poetry run isort

- name: Black (Code Formatter)
run: poetry run black .
run: poetry run black src/ tests/

- name: Check for changes
id: changes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code_analysis_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
Expand All @@ -29,7 +29,7 @@ jobs:
run: poetry run isort

- name: Black (Code Formatter)
run: poetry run black .
run: poetry run black src/ tests/

- name: Check for changes
id: changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ dmypy.json
cython_debug/

# Project specific
/redownloads
/redownloads
.idea/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build:
poetry run python build_system/update_version.py
poetry run pyinstaller --hidden-import certifi --onefile ./src/redownload_cli.py --name redownload-cli
poetry run pyinstaller --onefile ./src/redownload_cli.py --name redownload-cli
7 changes: 7 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributing
Contribution documentation for all Morpheus636 projects can be found at https://docs.morpheus636.com/contributing.

## Docs specific to this project:
- This project uses a [Semantic Versioning Workflow](https://docs.morpheus636.com/contributing/semantic-versioning-workflow)
- This project is written in Python. Python-specific contribution docs can be found [here](https://docs.morpheus636.com/contributing/python)
- This project contains some scripts to make development easier. They are documented [here](scripts.md)
6 changes: 0 additions & 6 deletions docs/INDEX.md

This file was deleted.

13 changes: 1 addition & 12 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,5 @@ To submit a Bug Report or Feature Request, please open a [GitHub Issue](https://
To ask a question or get support, you can join my [Discord Server](https://discord.morpheus636.com) or ask in the Redownload section of my
[Forums](https://forums.morpheus636.com)

## Documentation
To view all of the available documentation for this project, please see the [Documents Index](INDEX.md)
This includes information on getting started, the development environment, and more.

## Contributing
If you'd like to work on developing Redownload, you can start by doing the following:

1. Fork this repository
2. git clone your fork to your development machine
3. Set up your [Development Environment](development.md)
4. Pick up a ticket labeled help wanted as outlined in the [tickets](tickets.md) documentation
5. Work on implementing the feature or bugfix in your fork
6. Open a Pull Request back into this repository's main branch.
To contribute to this project, view the Contribution Docs found in [CONTRIBUTING.md](CONTRIBUTING.md)
25 changes: 0 additions & 25 deletions docs/development.md

This file was deleted.

85 changes: 0 additions & 85 deletions docs/tickets.md

This file was deleted.

23 changes: 12 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = ""
authors = ["Josh Levin (Morpheus636) <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.9, <3.10"
python = "^3.10, <3.11"
beautifulsoup4 = "^4.10.0"
requests = "^2.27.1"
certifi = "^2021.10.8"
Expand Down
3 changes: 2 additions & 1 deletion src/redownload/web_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import urllib.request

import bs4
import certifi # To fix SSL issue from issue #31

from . import exceptions

Expand All @@ -13,7 +14,7 @@ def html_from_url(url: str) -> bs4.BeautifulSoup:
:param url: The URL to download HTML from, in a string.
:return: BeautifulSoup object extracted from the url.
"""
request = urllib.request.urlopen(urllib.request.Request(url, headers={"User-Agent": "Mozilla"}))
request = urllib.request.urlopen(urllib.request.Request(url, headers={"User-Agent": "Mozilla"}), cafile=certifi.where())
html_doc = request.read()
html_soup = bs4.BeautifulSoup(html_doc, features="html.parser")
return html_soup
Expand Down

0 comments on commit aad8bf6

Please sign in to comment.