Going online (first public version)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
github: D4Vinci
|
||||
@@ -0,0 +1,82 @@
|
||||
name: Bug report
|
||||
description: Create a bug report to help us address errors in the repository
|
||||
labels: [bug]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Have you searched if there an existing issue for this?
|
||||
description: Please search [existing issues](https://github.com/D4Vinci/Scrapling/labels/bug).
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: "Python version (python --version)"
|
||||
placeholder: "Python 3.8"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: "Scrapling version (scrapling.__version__)"
|
||||
placeholder: "0.1"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Dependencies version (pip3 freeze)"
|
||||
description: >
|
||||
This is the output of the command `pip3 freeze --all`. Note that the
|
||||
actual output might be different as compared to the placeholder text.
|
||||
placeholder: |
|
||||
cssselect==1.2.0
|
||||
lxml==5.3.0
|
||||
orjson==3.10.7
|
||||
...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: "What's your operating system?"
|
||||
placeholder: "Windows 10"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: 'Are you using a separate virtual environment?'
|
||||
description: "Please pay attention to this question"
|
||||
options:
|
||||
- No
|
||||
- Yes
|
||||
default: 0
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Expected behavior"
|
||||
description: "Describe the behavior you expect. May include images or videos."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Actual behavior (Remember to use `debug` parameter)"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps To Reproduce
|
||||
description: Steps to reproduce the behavior.
|
||||
placeholder: |
|
||||
1. In this environment...
|
||||
2. With this config...
|
||||
3. Run '...'
|
||||
4. See error...
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Feature request
|
||||
description: Suggest features, propose improvements, discuss new ideas.
|
||||
labels: [enhancement]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Have you searched if there an existing feature request for this?
|
||||
description: Please search [existing requests](https://github.com/D4Vinci/Scrapling/labels/enhancement).
|
||||
options:
|
||||
- label: I have searched the existing requests
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Feature description"
|
||||
description: >
|
||||
This could include new topics or improving any existing features/implementations.
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Other
|
||||
description: Use this for any other issues. PLEASE do not create blank issues
|
||||
labels: ["awaiting triage"]
|
||||
body:
|
||||
- type: textarea
|
||||
id: issuedescription
|
||||
attributes:
|
||||
label: What would you like to share?
|
||||
description: Provide a clear and concise explanation of your issue.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: extrainfo
|
||||
attributes:
|
||||
label: Additional information
|
||||
description: Is there anything else we should know about this issue?
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1 @@
|
||||
blank_issues_enabled: false
|
||||
@@ -0,0 +1,53 @@
|
||||
<!--
|
||||
You are amazing! Thanks for contributing to Scrapling!
|
||||
Please, DO NOT DELETE ANY TEXT from this template! (unless instructed).
|
||||
-->
|
||||
|
||||
## Proposed change
|
||||
<!--
|
||||
Describe the big picture of your changes here to communicate to the
|
||||
maintainers why we should accept this pull request. If it fixes a bug
|
||||
or resolves a feature request, be sure to link to that issue in the
|
||||
additional information section.
|
||||
-->
|
||||
|
||||
|
||||
### Type of change:
|
||||
<!--
|
||||
What type of change does your PR introduce to Scrapling?
|
||||
NOTE: Please, check at least 1 box!
|
||||
If your PR requires multiple boxes to be checked, you'll most likely need to
|
||||
split it into multiple PRs. This makes things easier and faster to code review.
|
||||
-->
|
||||
|
||||
|
||||
|
||||
- [ ] Dependency upgrade
|
||||
- [ ] Bugfix (non-breaking change which fixes an issue)
|
||||
- [ ] New integration (thank you!)
|
||||
- [ ] New feature (which adds functionality to an existing integration)
|
||||
- [ ] Deprecation (breaking change to happen in the future)
|
||||
- [ ] Breaking change (fix/feature causing existing functionality to break)
|
||||
- [ ] Code quality improvements to existing code or addition of tests
|
||||
- [ ] Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
|
||||
- [ ] Documentation change?
|
||||
|
||||
### Additional information
|
||||
<!--
|
||||
Details are important, and help maintainers processing your PR.
|
||||
Please be sure to fill out additional details, if applicable.
|
||||
-->
|
||||
|
||||
- This PR fixes or closes issue: fixes #
|
||||
- This PR is related to issue:
|
||||
- Link to documentation pull request: **
|
||||
|
||||
### Checklist:
|
||||
* [ ] I have read [CONTRIBUTING.md](/CONTRIBUTING.md).
|
||||
* [ ] This pull request is all my own work -- I have not plagiarized.
|
||||
* [ ] I know that pull requests will not be merged if they fail the automated tests.
|
||||
* [ ] All new Python files are placed inside an existing directory.
|
||||
* [ ] All filenames are in all lowercase characters with no spaces or dashes.
|
||||
* [ ] All functions and variable names follow Python naming conventions.
|
||||
* [ ] All function parameters and return values are annotated with Python [type hints](https://docs.python.org/3/library/typing.html).
|
||||
* [ ] All functions have doc-strings.
|
||||
@@ -0,0 +1,31 @@
|
||||
name: Publish Python 🐍 distributions 📦 to PyPI
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build-n-publish:
|
||||
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x" # Latest available Python version
|
||||
|
||||
- name: Upgrade pip
|
||||
run: python3 -m pip install --upgrade pip
|
||||
|
||||
- name: Install build
|
||||
run: python3 -m pip install --upgrade build twine setuptools
|
||||
|
||||
- name: Build a binary wheel and a source tarball
|
||||
run: python3 -m build --sdist --wheel --outdir dist/
|
||||
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1.10.3
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
@@ -0,0 +1,48 @@
|
||||
name: Tests
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- python-version: "3.6"
|
||||
env:
|
||||
TOXENV: py
|
||||
- python-version: "3.7"
|
||||
env:
|
||||
TOXENV: py
|
||||
- python-version: "3.8"
|
||||
env:
|
||||
TOXENV: py
|
||||
- python-version: "3.9"
|
||||
env:
|
||||
TOXENV: py
|
||||
- python-version: "3.10"
|
||||
env:
|
||||
TOXENV: py
|
||||
- python-version: "3.11"
|
||||
env:
|
||||
TOXENV: py
|
||||
- python-version: "3.12"
|
||||
env:
|
||||
TOXENV: py
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Run tests
|
||||
env: ${{ matrix.env }}
|
||||
run: |
|
||||
pip install -U tox
|
||||
tox
|
||||
Reference in New Issue
Block a user