-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project to use latest build tools and requirements, closes #13
- Loading branch information
1 parent
e27a62b
commit 66327c3
Showing
5 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies - Windows | ||
run: choco install wget | ||
|
@@ -29,8 +29,11 @@ jobs: | |
env: | ||
PYTHONUTF8: 1 | ||
|
||
- uses: pre-commit/[email protected] | ||
if: matrix.os == 'ubuntu-latest' | ||
|
||
- name: Test Coverage | ||
run: coveralls --service=github | ||
if: matrix.os == 'ubuntu-latest' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/pylint | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pylint | ||
args: | ||
- -d import-error | ||
- -d duplicate-code | ||
- -d too-many-positional-arguments | ||
- repo: https://github.com/ambv/black | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
# pylint: disable = C0111 | ||
from setuptools import find_packages, setup | ||
|
||
with open("README.md", "r") as f: | ||
with open("README.md", "r", encoding="utf-8") as f: | ||
DESCRIPTION = f.read() | ||
|
||
setup(name="txtmarker", | ||
version="1.1.0", | ||
author="NeuML", | ||
description="Finds and highlights text in documents", | ||
long_description=DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/neuml/txtmarker", | ||
project_urls={ | ||
"Documentation": "https://github.com/neuml/txtmarker", | ||
"Issue Tracker": "https://github.com/neuml/txtmarker/issues", | ||
"Source Code": "https://github.com/neuml/txtmarker", | ||
}, | ||
license="Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0", | ||
packages=find_packages(where="src/python"), | ||
package_dir={"": "src/python"}, | ||
keywords="pdf highlight text search", | ||
python_requires=">=3.8", | ||
install_requires=[ | ||
"pdfminer.six>=20201018", | ||
"pdf-annotate>=0.11.0" | ||
], | ||
classifiers=[ | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Software Development", | ||
"Topic :: Utilities" | ||
]) | ||
setup( | ||
name="txtmarker", | ||
version="1.1.0", | ||
author="NeuML", | ||
description="Finds and highlights text in documents", | ||
long_description=DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/neuml/txtmarker", | ||
project_urls={ | ||
"Documentation": "https://github.com/neuml/txtmarker", | ||
"Issue Tracker": "https://github.com/neuml/txtmarker/issues", | ||
"Source Code": "https://github.com/neuml/txtmarker", | ||
}, | ||
license="Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0", | ||
packages=find_packages(where="src/python"), | ||
package_dir={"": "src/python"}, | ||
keywords="pdf highlight text search", | ||
python_requires=">=3.9", | ||
install_requires=["pdfminer.six>=20201018", "pdf-annotate>=0.11.0"], | ||
classifiers=[ | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Software Development", | ||
"Topic :: Utilities", | ||
], | ||
) |