forked from sebix/python-textile
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
978 additions
and
567 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[flake8] | ||
ignore = | ||
# line too long | ||
E501 | ||
exclude = | ||
build/ |
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,33 @@ | ||
--- | ||
name: python-textile | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint_and_test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"] | ||
image_size: ['true', 'false'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Python flake8 Lint | ||
uses: py-actions/[email protected] | ||
- name: Install dependencies | ||
run: | | ||
imagesize='' | ||
pip install -U pytest pytest-cov coverage codecov | ||
if [[ ${{ matrix.image_size }} == true ]] ; then imagesize='[imagesize]' ; fi | ||
pip install -e ".${imagesize}" | ||
- name: run tests | ||
run: | | ||
pytest | ||
- name: Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_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 |
---|---|---|
|
@@ -21,3 +21,4 @@ develop-eggs | |
.DS_Store | ||
*.swp | ||
.tox | ||
README.txt |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,18 @@ | ||
clean: | ||
$(RM) README.txt | ||
$(RM) -r ./dist ./build | ||
|
||
generate_pypi_README: | ||
${VIRTUAL_ENV}/bin/pytextile README.textile | sed -e 's/^\t//' > README.txt | ||
|
||
build: generate_pypi_README | ||
python -m build | ||
|
||
upload_to_test: build | ||
twine check ./dist/* | ||
twine upload --repository test_textile ./dist/* | ||
|
||
upload_to_prod: build | ||
twine check ./dist/* | ||
# for now, don't actually upload to prod PyPI, just output the command to do so. | ||
@echo "twine upload --repository textile ./dist/*" |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm", "nh3"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "textile" | ||
authors = [ | ||
{ name = "Dennis Burke", email = "[email protected]"} | ||
] | ||
description = 'Textile processing for python.' | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
] | ||
dynamic = ["version",] | ||
dependencies = [ | ||
'nh3', | ||
'regex>1.0; implementation_name != "pypy"', | ||
] | ||
requires-python = '>=3.8' | ||
keywords = ['textile', 'text', 'html markup'] | ||
# Use the following command to generate a README.txt which is compatible with | ||
# pypi's readme rendering: | ||
# pytextile README.textile | sed -e 's/^\t//' > README.txt | ||
readme = {file = 'README.txt', content-type = 'text/markdown'} | ||
|
||
[project.optional-dependencies] | ||
develop = ['pytest', 'pytest-cov'] | ||
imagesize = ['Pillow>=3.0.0',] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/textile/python-textile" | ||
Repository = "https://github.com/textile/python-textile.git" | ||
Issues = "https://github.com/textile/python-textile/issues" | ||
|
||
[project.scripts] | ||
pytextile = "textile.__main__:main" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "textile.__version__"} |
File renamed without changes.
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
Oops, something went wrong.