-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pyproject.toml to define PyPI package
- Loading branch information
1 parent
ccbeead
commit 58745ba
Showing
9 changed files
with
74 additions
and
58 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 |
---|---|---|
|
@@ -32,12 +32,13 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
cache: 'pip' | ||
cache-dependency-path: '**/pyproject.toml' | ||
check-latest: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Dependencies | ||
- name: Install Node dependencies | ||
run: npm install --include dev | ||
- name: Install Arelle | ||
run: pip install arelle-release . | ||
- name: Install Python dependencies | ||
run: pip install .[dev] | ||
- name: Build viewer js | ||
run: npm run prod | ||
- name: Generate test viewers | ||
|
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 |
---|---|---|
|
@@ -26,10 +26,10 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
cache: 'pip' | ||
cache-dependency-path: '**/pyproject.toml' | ||
check-latest: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements-dev.txt | ||
run: pip install .[dev] | ||
- name: Test with nose2 | ||
run: nose2 |
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,3 +1,2 @@ | ||
include README.md | ||
include requirements.txt | ||
graft iXBRLViewerPlugin/viewer/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[build-system] | ||
requires = ["setuptools~=65.3", "wheel~=0.37", "setuptools_scm[toml]~=7.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ixbrl-viewer" | ||
dynamic = ['version'] | ||
readme = "README.md" | ||
license = {text = "Apache-2.0"} | ||
description = "The Arelle iXBRL Viewer allows iXBRL reports to be viewed interactively in a web browser." | ||
authors = [ | ||
{name = "arelle.org", email = "[email protected]"} | ||
] | ||
keywords = ["xbrl"] | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: End Users/Desktop', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Operating System :: OS Independent', | ||
'Topic :: Text Processing :: Markup :: XML' | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
'arelle_release==2.4.2', | ||
'lxml>=4.6.3,<5.0.0', | ||
'pycountry>=20.7.3,<21.0.0' | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
'mock>=4.0.3,<6.0.0', | ||
'nose2>=0.12.0,<1.0.0' | ||
] | ||
|
||
# https://setuptools.pypa.io/en/latest/userguide/entry_point.html#entry-points-for-plugins | ||
[project.entry-points."arelle.plugin"] | ||
ixbrl-viewer = "iXBRLViewerPlugin:load_plugin_url" | ||
|
||
[project.urls] | ||
"Homepage" = "https://arelle.org/" | ||
"Downloads" = "https://arelle.org/arelle/pub/" | ||
"Documentation" = "https://arelle.org/arelle/documentation/" | ||
"Blog" = "https://arelle.org/arelle/blog/" | ||
"Source Code" = "https://github.com/workiva/ixbrl-viewer" | ||
"Bug Reports" = "https://github.com/workiva/ixbrl-viewer/issues/" | ||
"Support" = "https://groups.google.com/g/arelle-users/" | ||
|
||
[tool.setuptools] | ||
platforms = ["any"] | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
|
||
[tool.setuptools_scm] | ||
tag_regex = "^(?:[\\w-]+-?)?(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$" | ||
write_to = "iXBRLViewerPlugin/_version.py" |
This file was deleted.
Oops, something went wrong.
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